/* ==========================================================================
   NÜMA Design System - Red Peruana de Artesanía, Innovación y Cultura
   Identidad Andina Artesanal: Fuego & Terracota Viva (#f23900), Arcilla Negra (#1A100C) & Oro
   ========================================================================== */

/* Variables de Color e Identidad */
:root {
    --color-ivory: #FAFAF8;
    --color-earth: #3F352C;
    --color-terracotta: #f23900;
    --color-terracotta-dark: #c72e00;
    --color-terracotta-light: #ff6238;
    --color-primary: #f23900;
    --color-primary-dark: #1A100C;
    --color-primary-light: #ff5722;
    --color-andes-blue: #f23900; /* Reemplazado por #f23900 */
    --color-andes-dark: #1A100C; /* Reemplazado por Obsidiana / Arcilla Negra */
    --color-gold: #D4AF37;
    --color-gold-light: #E8CA65;
}

/* Suavizado de Fuentes y Reset Base */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--color-ivory);
    color: var(--color-earth);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Glassmorphism de Alta Gama para Header Sticky */
.glass-header {
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(242, 57, 0, 0.08);
    box-shadow: 0 4px 20px -2px rgba(242, 57, 0, 0.04);
}

/* Fondo Hero con Calidez de Barro y Horno Artesanal */
.bg-hero {
    background-image: linear-gradient(rgba(26, 16, 12, 0.82), rgba(15, 9, 7, 0.90)), url('https://images.unsplash.com/photo-1610701596007-11502861dcfa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}

/* Insignia Humana / Sello Institucional Hero (Artesanal y Editorial) */
.human-insignia {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 1.15rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(38, 22, 17, 0.90) 0%, rgba(26, 16, 12, 0.92) 100%);
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.human-insignia .rhombus-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: #f23900;
    color: var(--color-gold);
    font-size: 0.65rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(242, 57, 0, 0.5);
}

/* Placa Legal de Transparencia en Footer (Diseño Editorial Humano) */
.legal-plaque {
    position: relative;
    background: linear-gradient(145deg, rgba(26, 16, 12, 0.96) 0%, rgba(18, 11, 8, 0.92) 100%);
    border-left: 4px solid #f23900;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.15rem 1.35rem;
    border-radius: 0 1rem 1rem 0;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.4);
}

/* Badge de RUC Oficial (Insignia Fiscal Elegante) */
.ruc-credential {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.95rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Enlaces del Header con Subrayado Dinámico */
.nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-earth);
    transition: color 0.25s ease;
    padding-bottom: 0.25rem;
}

.nav-link:hover {
    color: #f23900;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f23900;
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #f23900;
}

/* Botones con Fuego Artesanal */
.btn-primary-flame {
    background-color: #f23900;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.025em;
    border-radius: 0.75rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px -2px rgba(242, 57, 0, 0.4);
}

.btn-primary-flame:hover {
    background-color: #c72e00;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -3px rgba(242, 57, 0, 0.5);
}

.btn-terracotta {
    background-color: #f23900;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.025em;
    border-radius: 0.75rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px -2px rgba(242, 57, 0, 0.35);
}

.btn-terracotta:hover {
    background-color: #c72e00;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -3px rgba(242, 57, 0, 0.45);
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FAFAF8;
}

::-webkit-scrollbar-thumb {
    background: #f23900;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c72e00;
}
