/* ╔════════════════════════════════════════════════════════════════╗
   ║  BYPIRSYS — MASTER STYLESHEET v2.0                           ║
   ║  Consolidado · Modular · Premium Lineage 2 Edition           ║
   ║  Sin duplicados · Optimizado para producción                 ║
   ╚════════════════════════════════════════════════════════════════╝ */

/* ============================================
   1. FUENTES
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Lato:wght@300;400;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================
   2. DESIGN TOKENS
   ============================================ */
:root {
    /* Tipografía */
    --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Cinzel', 'Times New Roman', serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Escala tipográfica fluida */
    --fs-xs:  clamp(0.75rem,  0.72rem + 0.15vw, 0.8125rem);
    --fs-sm:  clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
    --fs-base: clamp(1rem,    0.96rem + 0.2vw,  1.0625rem);
    --fs-md:  clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
    --fs-lg:  clamp(1.5rem,   1.3rem  + 0.8vw,  2rem);
    --fs-xl:  clamp(2rem,     1.5rem  + 2vw,    3.25rem);
    --fs-2xl: clamp(2.75rem,  2rem    + 3.5vw,  5rem);

    /* Espaciado */
    --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
    --space-4: 1rem;    --space-5: 1.5rem; --space-6: 2rem;
    --space-7: 3rem;    --space-8: 4rem;   --space-9: 6rem;
    --space-10: 8rem;

    /* Radios */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transiciones */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-fast: 150ms;
    --dur: 280ms;
    --dur-slow: 500ms;

    /* Contenedor */
    --container: 1240px;

    /* Paleta Lineage 2 */
    --l2-gold: #c9b990;
    --l2-gold-light: #e8dcc4;
    --l2-gold-dark: #8b7355;
    --l2-teal: #1a5f5f;
    --l2-teal-light: #2d8b8b;
    --l2-dark: #0a0e12;
    --l2-darker: #050709;
    --l2-steel: #1a1f2e;
    --l2-steel-light: #2a3142;

    /* Efectos */
    --glow-gold: 0 0 20px rgba(201, 185, 144, 0.4);
    --glow-teal: 0 0 20px rgba(26, 95, 95, 0.4);
    --border-ornate: 2px solid rgba(201, 185, 144, 0.3);
}

/* Tema oscuro (por defecto) */
[data-theme="dark"] {
    --bg:          #0a0e12;
    --bg-elev:     #111418;
    --bg-elev-2:   #161a20;
    --surface:     rgba(201, 185, 144, 0.03);
    --border:      rgba(201, 185, 144, 0.08);
    --border-strong: rgba(201, 185, 144, 0.14);

    --text:        #e8dcc4;
    --text-muted:  #a89b7a;
    --text-subtle: #6b5f48;

    --accent:      var(--l2-gold);
    --accent-2:    var(--l2-teal-light);
    --accent-soft: rgba(201, 185, 144, 0.12);

    --glow:        radial-gradient(600px circle at 50% 0%, rgba(201,185,144,0.08), transparent 60%);
    --grid-bg:     linear-gradient(to right, rgba(201,185,144,0.03) 1px, transparent 1px) 0 0 / 64px 64px,
                   linear-gradient(to bottom, rgba(201,185,144,0.03) 1px, transparent 1px) 0 0 / 64px 64px;
}

/* Tema claro */
[data-theme="light"] {
    --bg:          #f5f1e8;
    --bg-elev:     #ebe5d6;
    --bg-elev-2:   #e0d8c5;
    --surface:     rgba(139, 115, 85, 0.04);
    --border:      rgba(139, 115, 85, 0.15);
    --border-strong: rgba(139, 115, 85, 0.25);

    --text:        #2a2418;
    --text-muted:  #5a4d38;
    --text-subtle: #8b7355;

    --accent:      #8b6914;
    --accent-2:    #1a5f5f;
    --accent-soft: rgba(139, 105, 20, 0.1);

    --glow:        radial-gradient(600px circle at 50% 0%, rgba(139,105,20,0.08), transparent 60%);
    --grid-bg:     linear-gradient(to right, rgba(139,115,85,0.06) 1px, transparent 1px) 0 0 / 64px 64px,
                   linear-gradient(to bottom, rgba(139,115,85,0.06) 1px, transparent 1px) 0 0 / 64px 64px;
}

/* ============================================
   3. RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color var(--dur) var(--ease),
                color var(--dur) var(--ease);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection { background: var(--accent-soft); color: var(--text); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 10px;
}

/* ============================================
   4. LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.section {
    position: relative;
    padding-block: clamp(2rem, 4vw, 3rem);
}

/* Eliminar padding inferior de secciones que tienen divisor después */
.section + .section-divider + .section {
    padding-top: clamp(1rem, 2vw, 2rem);  /* ✅ Menos padding superior */
}

.section:nth-child(even) {
    background: linear-gradient(to bottom, var(--l2-darker), var(--l2-dark));
}

/* Separadores sutiles entre secciones */
.section:nth-child(even)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(201, 185, 144, 0.15),
        transparent);
}

.section__header {
    max-width: 800px;
    margin-bottom: var(--space-7);
}

.section__header--center {
    text-align: center;
    margin-inline: auto;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    background: linear-gradient(180deg, var(--l2-gold-light), var(--l2-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: var(--space-3);
}

.section__subtitle {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: var(--space-2);
    max-width: 55ch;
}

.section__header--center .section__subtitle {
    margin-inline: auto;
}

/* Grids */
.grid {
    display: grid;
    gap: var(--space-5);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ============================================
   5. COMPONENTES
   ============================================ */

/* Eyebrow (badge superior) */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--l2-teal-light);
    padding: 0.4rem 1.1rem;
    border: 1px solid rgba(26, 139, 139, 0.4);
    background: rgba(26, 95, 95, 0.15);
    backdrop-filter: blur(8px);
    margin-bottom: var(--space-4);
}

.eyebrow::before {
    content: '◈';
    color: var(--l2-gold);
    font-size: 0.75rem;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    transition: all var(--dur) var(--ease);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--l2-gold), var(--l2-gold-dark));
    color: var(--l2-darker);
    border-color: var(--l2-gold);
    box-shadow:
        0 4px 15px rgba(201, 185, 144, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 30px rgba(201, 185, 144, 0.5),
        inset 0 1px 0 rgba(255,255,255,0.4);
}

.btn--primary:hover::before { left: 100%; }

.btn--ghost {
    background: transparent;
    border-color: rgba(201, 185, 144, 0.4);
    color: var(--l2-gold);
}

.btn--ghost:hover {
    border-color: var(--l2-gold);
    background: rgba(201, 185, 144, 0.1);
    box-shadow: 0 0 30px rgba(201, 185, 144, 0.2);
}

.btn--epic {
    background: linear-gradient(135deg, #f5ebd9, var(--l2-gold));
    color: var(--l2-darker);
    font-size: 0.9rem;
    padding: 1.25rem 3.5rem;
    border: 3px solid var(--l2-gold-light);
    box-shadow:
        0 6px 25px rgba(201, 185, 144, 0.4),
        inset 0 2px 0 rgba(255,255,255,0.5);
}

.btn--epic::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(45deg, var(--l2-gold), var(--l2-teal), var(--l2-gold));
    z-index: -1;
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
}

.btn--epic:hover::after { opacity: 0.6; }

/* Cards */
.card {
    background: linear-gradient(135deg, rgba(26,31,46,0.8), rgba(10,14,18,0.9));
    border: 1px solid rgba(201, 185, 144, 0.2);
    border-radius: 0;
    position: relative;
    padding: var(--space-6);
    overflow: hidden;
    transition: all 0.4s var(--ease);
}

/* Esquinas ornamentales */
.card::before,
.card::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--l2-gold);
    border-style: solid;
    opacity: 0.5;
    transition: all var(--dur) var(--ease);
}

.card::before {
    top: 0; left: 0;
    border-width: 2px 0 0 2px;
}

.card::after {
    bottom: 0; right: 0;
    border-width: 0 2px 2px 0;
}

.card:hover {
    border-color: rgba(201, 185, 144, 0.5);
    transform: translateY(-4px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(201, 185, 144, 0.1);
}

.card:hover::before,
.card:hover::after {
    opacity: 1;
    width: 40px;
    height: 40px;
}

.card__icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(201,185,144,0.15), rgba(26,95,95,0.15));
    border: 1px solid rgba(201, 185, 144, 0.3);
    display: grid;
    place-items: center;
    margin-bottom: var(--space-4);
    font-size: 1.4rem;
}

.card__title {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.4vw, 1.25rem);
    font-weight: 600;
    color: var(--l2-gold);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}

.card__desc {
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.65;
}

.card--capability {
    text-align: center;
}

.card--capability .card__icon {
    margin-inline: auto;
}

/* Divider ornamental */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin: var(--space-6) 0;
    color: var(--l2-gold);
    opacity: 0.5;
}

.divider::before,
.divider::after {
    content: '';
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--l2-gold), transparent);
}

/* ============================================
   6. HEADER & NAVEGACIÓN
   ============================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    padding-block: var(--space-3);
    background: linear-gradient(to bottom, rgba(5,7,9,0.95), rgba(10,14,18,0.85));
    border-bottom: 1px solid rgba(201, 185, 144, 0.2);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: all var(--dur) var(--ease);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--l2-gold);
    text-shadow: 0 2px 10px rgba(201, 185, 144, 0.3);
}

.brand__mark {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--l2-gold), var(--l2-gold-dark));
    color: var(--l2-darker);
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(201, 185, 144, 0.5);
}

.nav__list {
    display: flex;
    gap: var(--space-5);
}

.nav__link {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--l2-gold-light);
    position: relative;
    padding: 0.5rem 0;
    transition: all var(--dur) var(--ease);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--l2-gold), transparent);
    transition: width var(--dur) var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--l2-gold);
    text-shadow: 0 0 10px rgba(201, 185, 144, 0.6);
}

.nav__link:hover::after,
.nav__link.is-active::after {
    width: 100%;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.nav-toggle { display: none; }

/* ============================================
   7. SELECTOR DE IDIOMA
   ============================================ */
.lang-switcher { position: relative; }

.lang-switcher__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    height: 36px;
    background: rgba(201, 185, 144, 0.05);
    border: 1px solid rgba(201, 185, 144, 0.3);
    border-radius: var(--radius-md);
    color: var(--l2-gold);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease);
}

.lang-switcher__trigger:hover,
.lang-switcher__trigger[aria-expanded="true"] {
    border-color: var(--l2-gold);
    background: rgba(201, 185, 144, 0.1);
}

.lang-switcher__flag { font-weight: 600; }

.lang-switcher__chevron {
    width: 14px;
    height: 14px;
    color: var(--l2-gold);
    transition: transform var(--dur-fast) var(--ease);
}

.lang-switcher__trigger[aria-expanded="true"] .lang-switcher__chevron {
    transform: rotate(180deg);
}

/* Menú oculto por defecto */
.lang-switcher__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    padding: 0.35rem;
    background: linear-gradient(135deg, rgba(10,14,18,0.98), rgba(26,31,46,0.95));
    border: 1px solid rgba(201, 185, 144, 0.3);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 60;
    
    /* Estado oculto */
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
    transform-origin: top right;
    pointer-events: none;
    visibility: hidden;
    
    transition: opacity var(--dur-fast) var(--ease),
                transform var(--dur-fast) var(--ease),
                visibility var(--dur-fast) var(--ease);
}

/* Menú visible */
.lang-switcher__menu.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
}

.lang-switcher__menu button {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 6px;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-align: left;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease);
}

.lang-switcher__menu button:hover {
    background: var(--surface);
    color: var(--text);
}

.lang-switcher__menu li[aria-selected="true"] button {
    color: var(--text);
    font-weight: 500;
}

.lang-switcher__label { flex: 1; }

.lang-switcher__check {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

/* Animación cascada */
.lang-switcher__menu li {
    opacity: 0;
    transform: translateY(-4px);
}

.lang-switcher__menu.is-open li {
    animation: langOptionIn var(--dur-fast) var(--ease) forwards;
}

.lang-switcher__menu.is-open li:nth-child(1) { animation-delay: 20ms; }
.lang-switcher__menu.is-open li:nth-child(2) { animation-delay: 50ms; }
.lang-switcher__menu.is-open li:nth-child(3) { animation-delay: 80ms; }

@keyframes langOptionIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   8. HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 85svh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(to bottom, rgba(5,7,9,0.7), rgba(10,14,18,0.9)),
        url('../img/hero-bg.jpg') center/cover no-repeat;
    overflow: hidden;
}

/* Partículas animadas */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(2px 2px at 20px 30px, rgba(201,185,144,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(26,95,95,0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(201,185,144,0.2), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(201,185,144,0.3), transparent);
    background-size: 200px 100px;
    animation: stars 100s linear infinite;
    pointer-events: none;
}

/* Glow radial */
.hero::after {
    content: '';
    position: absolute;
    top: -20%; left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(201,185,144,0.12), transparent 60%);
    filter: blur(40px);
    pointer-events: none;
    animation: drift 14s var(--ease) infinite;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    padding: 0 var(--space-5);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    background: linear-gradient(180deg,
        var(--l2-gold-light) 0%,
        var(--l2-gold) 40%,
        var(--l2-gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 10px 40px rgba(201, 185, 144, 0.3);
    margin-bottom: var(--space-6);
}

.hero__subtitle {
    font-family: var(--font-sans);
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(232, 220, 196, 0.85);
    max-width: 580px;
    margin: 0 auto var(--space-7);
    letter-spacing: 0.02em;
}

.hero__actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   9. ABOUT
   ============================================ */
.about__content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: var(--space-5);
    text-align: center;
}

.about__text {
    font-family: var(--font-sans);
    font-size: clamp(1.05rem, 1.4vw, 1.15rem);
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-muted);
}

.about__text:first-child {
    font-size: clamp(1.25rem, 1.8vw, 1.4rem);
    color: var(--text);
    font-weight: 300;
    line-height: 1.6;
}

/* ============================================
   10. LINEAGE 2
   ============================================ */
.lineage {
    background:
        linear-gradient(to bottom, rgba(5,7,9,0.9), rgba(10,14,18,0.95)),
        url('../img/l2-bg.jpg') center/cover no-repeat;
}

.lineage::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(5,7,9,0.8) 100%);
}

.lineage__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-9);
    align-items: center;
    position: relative;
    z-index: 1;
}

.lineage .eyebrow {
    border-color: rgba(201, 185, 144, 0.5);
    background: rgba(201, 185, 144, 0.1);
}

.lineage__text {
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.8;
    color: var(--text-muted);
    margin: var(--space-5) 0;
}

.lineage ul {
    display: grid;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.lineage li {
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    color: var(--text);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 0.75rem 1rem;
    background: rgba(201, 185, 144, 0.05);
    border-left: 3px solid var(--l2-gold);
    transition: all var(--dur) var(--ease);
}

.lineage li:hover {
    background: rgba(201, 185, 144, 0.1);
    transform: translateX(8px);
}

.lineage li::before {
    content: '✦';
    color: var(--l2-gold);
    font-size: 0.875rem;
}

/* Features de Lineage */
.lineage__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-7);
}

.lineage__feature {
    padding: var(--space-4);
    background: rgba(201, 185, 144, 0.03);
    border: 1px solid rgba(201, 185, 144, 0.15);
    transition: all var(--dur) var(--ease);
}

.lineage__feature:hover {
    background: rgba(201, 185, 144, 0.06);
    border-color: rgba(201, 185, 144, 0.3);
    transform: translateY(-2px);
}

.lineage__feature-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
    display: block;
}

.lineage__feature h4 {
    font-family: var(--font-display);
    font-size: var(--fs-base);
    color: var(--l2-gold);
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
}

.lineage__feature p {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Code window */
.code-window {
    background: linear-gradient(135deg, rgba(10,14,18,0.95), rgba(26,31,46,0.9));
    border: 2px solid rgba(201, 185, 144, 0.3);
    border-radius: 0;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.6),
        inset 0 0 60px rgba(201,185,144,0.05);
}

.code-window__bar {
    display: flex;
    gap: 6px;
    padding: 1rem 1.25rem;
    background: rgba(5,7,9,0.8);
    border-bottom: 1px solid rgba(201, 185, 144, 0.2);
}

.code-window__bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--l2-gold-dark), var(--l2-steel));
    border: 1px solid rgba(201, 185, 144, 0.3);
}

.code-window__body {
    padding: var(--space-6);
    line-height: 2;
    color: rgba(232, 220, 196, 0.8);
}

.code-window__body .kw { color: var(--l2-teal-light); font-weight: 600; }
.code-window__body .str { color: var(--l2-gold); }
.code-window__body .cmt { color: var(--text-subtle); font-style: italic; }

/* ============================================
   11. PRINCIPLES
   ============================================ */
.principles__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.principle {
    padding: var(--space-5);
    background: linear-gradient(135deg, rgba(26,31,46,0.6), rgba(10,14,18,0.8));
    border: 1px solid rgba(201, 185, 144, 0.2);
    position: relative;
    transition: all var(--dur) var(--ease);
    cursor: pointer;
}

.principle:hover {
    border-color: rgba(201, 185, 144, 0.5);
    transform: translateY(-4px);
}

.principle__number {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--l2-gold);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: var(--space-2);
    transition: all var(--dur) var(--ease);
}

.principle:hover .principle__number {
    opacity: 0.7;
    transform: scale(1.1);
}

.principle__title {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    font-weight: 600;
    color: var(--l2-gold);
    margin-bottom: var(--space-2);
    letter-spacing: 0.03em;
}

.principle__desc {
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   12. METHODOLOGY
   ============================================ */
.methodology__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-8);
    position: relative;
}

/* Línea conectora */
.methodology__steps::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--l2-gold) 20%,
        var(--l2-gold) 80%,
        transparent);
    opacity: 0.2;
    z-index: 0;
}

.methodology__step {
    text-align: center;
    padding: var(--space-5);
    position: relative;
    z-index: 1;
}

.methodology__step-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--l2-teal-light);
    opacity: 0.5;
    line-height: 1;
    margin-bottom: var(--space-2);
    transition: all var(--dur) var(--ease);
}

.methodology__step:hover .methodology__step-number {
    opacity: 1;
    transform: scale(1.2);
    color: var(--l2-gold);
}

.methodology__step-title {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    font-weight: 600;
    color: var(--l2-gold);
    margin-bottom: var(--space-2);
}

.methodology__step-desc {
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   13. STACK
   ============================================ */
.stack__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
}

.stack__item {
    padding: 0.6rem 1.25rem;
    background: rgba(201, 185, 144, 0.05);
    border: 1px solid rgba(201, 185, 144, 0.2);
    transition: all var(--dur) var(--ease);
}

.stack__item:hover {
    background: rgba(201, 185, 144, 0.1);
    border-color: var(--l2-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 185, 144, 0.15);
}

.stack__name {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    color: var(--l2-gold-light);
    letter-spacing: 0.05em;
}

/* ============================================
   14. CTA
   ============================================ */
.cta {
    text-align: center;
    padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); /* ✅ Reducido: arriba 3-5rem, abajo 2-3rem */
    background:
        linear-gradient(to bottom, rgba(10,14,18,0.9), rgba(5,7,9,0.95)),
        url('../img/cta-bg.jpg') center/cover no-repeat;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(201,185,144,0.1) 0%, transparent 70%);
}

.cta__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta .section__title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    margin-bottom: var(--space-5);
}

.cta__text {
    font-family: var(--font-sans);
    font-size: clamp(1.05rem, 1.4vw, 1.15rem);
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: var(--space-5); /* ✅ Reducido de space-7 a space-5 */
}
/* ============================================
   15. FOOTER
   ============================================ */
.site-footer {
    background: linear-gradient(to bottom, var(--l2-dark), var(--l2-darker));
    border-top: 1px solid rgba(201, 185, 144, 0.2);
    padding-block: var(--space-7);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-8);
}

.footer__col h4 {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--l2-gold);
    margin-bottom: var(--space-4);
}

.footer__col a {
    display: block;
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    color: var(--text-muted);
    padding-block: 0.4rem;
    transition: all var(--dur-fast) var(--ease);
}

.footer__col a:hover {
    color: var(--l2-gold);
    padding-left: 8px;
}

.footer__bottom {
    margin-top: var(--space-7);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(201, 185, 144, 0.2);
    text-align: center;
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    color: var(--text-subtle);
}

/* ============================================
   16. ANIMACIONES
   ============================================ */

/* Reveal on scroll */
[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--dur-slow) var(--ease),
                transform var(--dur-slow) var(--ease);
    will-change: opacity, transform;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efecto cascada para grids */
.grid--3 [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.grid--3 [data-reveal]:nth-child(2) { transition-delay: 100ms; }
.grid--3 [data-reveal]:nth-child(3) { transition-delay: 200ms; }
.grid--3 [data-reveal]:nth-child(4) { transition-delay: 300ms; }
.grid--3 [data-reveal]:nth-child(5) { transition-delay: 400ms; }
.grid--3 [data-reveal]:nth-child(6) { transition-delay: 500ms; }

.grid--2 [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.grid--2 [data-reveal]:nth-child(2) { transition-delay: 150ms; }
.grid--2 [data-reveal]:nth-child(3) { transition-delay: 300ms; }
.grid--2 [data-reveal]:nth-child(4) { transition-delay: 450ms; }

/* Efecto acordeón para principles */
.principles__grid [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.principles__grid [data-reveal]:nth-child(2) { transition-delay: 120ms; }
.principles__grid [data-reveal]:nth-child(3) { transition-delay: 240ms; }
.principles__grid [data-reveal]:nth-child(4) { transition-delay: 360ms; }
.principles__grid [data-reveal]:nth-child(5) { transition-delay: 480ms; }

/* Efecto cascada para methodology */
.methodology__steps [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.methodology__steps [data-reveal]:nth-child(2) { transition-delay: 200ms; }
.methodology__steps [data-reveal]:nth-child(3) { transition-delay: 400ms; }
.methodology__steps [data-reveal]:nth-child(4) { transition-delay: 600ms; }

/* Keyframes */
@keyframes stars {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

@keyframes drift {
    0%, 100% { transform: translate(-50%, 0) scale(1); }
    50%      { transform: translate(-50%, -4%) scale(1.05); }
}

/* Transición de idioma */
[data-i18n] {
    transition: opacity 180ms var(--ease);
}

[data-i18n].is-translating {
    opacity: 0.4;
}

/* ============================================
   17. MENÚ MÓVIL
   ============================================ */
.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: var(--space-4);
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    
    /* Oculto por defecto */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all var(--dur) var(--ease);
}

/* Visible */
.mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-nav a {
    display: block;
    padding: var(--space-3) 0;
    color: var(--text-muted);
}

/* ============================================
   18. RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .lineage__grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }

    .nav { display: none; }
    
    .nav-toggle {
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        border: 1px solid rgba(201, 185, 144, 0.3);
        border-radius: var(--radius-md);
    }
    
    .nav-toggle span {
        display: block;
        width: 14px;
        height: 1.5px;
        background: var(--l2-gold);
        position: relative;
    }
    
    .nav-toggle span::before,
    .nav-toggle span::after {
        content: '';
        position: absolute;
        left: 0;
        width: 14px;
        height: 1.5px;
        background: var(--l2-gold);
    }
    
    .nav-toggle span::before { top: -5px; }
    .nav-toggle span::after  { top:  5px; }
}

@media (max-width: 768px) {
    .principles__grid,
    .methodology__steps {
        grid-template-columns: 1fr;
    }

    .methodology__steps::before { display: none; }
}

@media (max-width: 600px) {
    .footer__grid { grid-template-columns: 1fr; }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
        width: 100%;
    }

    .lang-switcher__menu {
        right: auto;
        left: 0;
        transform-origin: top left;
    }
}

/* ============================================
   19. ACCESIBILIDAD
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   FOOTER — Estilo Lineage 2 / NC Corporation
   ============================================ */
.site-footer {
    background: linear-gradient(to bottom, var(--l2-dark), var(--l2-darker));
    border-top: 1px solid rgba(201, 185, 144, 0.2);
    padding-block: var(--space-9) var(--space-7);
    text-align: center;
    position: relative;
}

/* Redes sociales */
.footer__social {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.footer__social-link {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(201, 185, 144, 0.05);
    border: 1px solid rgba(201, 185, 144, 0.2);
    color: var(--l2-gold-light);
    transition: all var(--dur) var(--ease);
}

.footer__social-link:hover {
    background: rgba(201, 185, 144, 0.15);
    border-color: var(--l2-gold);
    color: var(--l2-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(201, 185, 144, 0.2);
}

.footer__social-link svg {
    width: 20px;
    height: 20px;
}

/* Separadores */
.footer__divider {
    width: 60%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(201, 185, 144, 0.3),
        transparent);
    margin: var(--space-6) auto;
}

/* Links legales */
.footer__legal {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

.footer__legal-link {
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    transition: color var(--dur-fast) var(--ease);
}

.footer__legal-link:hover {
    color: var(--l2-gold);
}

/* Copyright */
.footer__copyright {
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    color: var(--text-subtle);
    margin-bottom: var(--space-5);
    letter-spacing: 0.02em;
}

/* Logo marca */
.footer__brand {
    display: flex;
    justify-content: center;
}

.footer__brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--l2-gold);
    background: linear-gradient(135deg, var(--l2-gold), var(--l2-gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.6;
    transition: opacity var(--dur) var(--ease);
}

.footer__brand-mark:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 600px) {
    .footer__social {
        gap: var(--space-3);
    }

    .footer__social-link {
        width: 42px;
        height: 42px;
    }

    .footer__legal {
        gap: var(--space-3);
    }

    .footer__divider {
        width: 80%;
    }
}

/* ============================================
   SERVICIOS — ACORDEÓN HORIZONTAL PREMIUM
   Animación ultra suave tipo Apple/Linear
   ============================================ */

/* Contenedor principal */
.accordion-horizontal {
    display: flex;
    gap: var(--space-3);
    max-width: 100%;
    margin: 0 auto;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
}

/* Item individual */
.accordion-horizontal__item {
    width: 110px;
    min-width: 110px;
    flex: none;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(26,31,46,0.9), rgba(10,14,18,0.95));
    border: 1px solid rgba(201, 185, 144, 0.15);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    
    /* ✅ Transiciones específicas (más eficientes que 'all') */
    transition: 
        width 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        min-width 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.accordion-horizontal__item:not(.is-active) {
    cursor: pointer;
}

.accordion-horizontal__item:not(.is-active):hover {
    border-color: rgba(201, 185, 144, 0.4);
    transform: translateY(-6px);
}

/* Item activo — expandido */
.accordion-horizontal__item.is-active {
    width: 580px;
    min-width: 580px;
    border-color: rgba(201, 185, 144, 0.6);
    box-shadow: 
        0 0 0 1px rgba(201, 185, 144, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(201, 185, 144, 0.2);
}

/* Trigger (botón) */
.accordion-horizontal__trigger {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-3);
    background: transparent;
    border: none;
    cursor: pointer;
    min-height: 400px;
    width: 100%;
    
    /* ✅ Transiciones suaves para el trigger */
    transition: 
        padding 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        min-height 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        gap 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.accordion-horizontal__item.is-active .accordion-horizontal__trigger {
    min-height: auto;
    padding: var(--space-5) var(--space-6);
    gap: var(--space-3);
}

/* Icono */
.accordion-horizontal__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(201,185,144,0.12), rgba(26,95,95,0.12));
    border: 1px solid rgba(201, 185, 144, 0.25);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    flex-shrink: 0;
    
    /* ✅ Transición suave del icono */
    transition: 
        width 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        font-size 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.accordion-horizontal__item:hover .accordion-horizontal__icon {
    background: linear-gradient(135deg, rgba(201,185,144,0.2), rgba(26,95,95,0.18));
    transform: scale(1.08);
}

.accordion-horizontal__item.is-active .accordion-horizontal__icon {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    background: linear-gradient(135deg, rgba(201,185,144,0.25), rgba(26,95,95,0.2));
    border-color: rgba(201, 185, 144, 0.5);
}

/* Título vertical */
.accordion-horizontal__title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--l2-gold);
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap;
    text-align: left;
    padding-left: 0;
    
    /* ✅ Transición suave para cambio de orientación */
    transition: 
        writing-mode 0s, /* Instantáneo */
        font-size 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        letter-spacing 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        text-transform 0s;
}

.accordion-horizontal__item:hover .accordion-horizontal__title {
    color: var(--l2-gold-light);
}

.accordion-horizontal__item.is-active .accordion-horizontal__title {
    writing-mode: horizontal-tb;
    font-size: clamp(1.15rem, 1.5vw, 1.35rem);
    letter-spacing: 0.02em;
    text-align: left;
    text-transform: none;
}

/* Panel (contenedor del contenido) */
.accordion-horizontal__panel {
    display: grid;
    grid-template-rows: 0fr;
    
    /* ✅ Transición ultra suave usando grid */
    transition: grid-template-rows 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.accordion-horizontal__item.is-active .accordion-horizontal__panel {
    grid-template-rows: 1fr;
}

/* Contenido */
.accordion-horizontal__content {
    overflow: hidden;
    opacity: 0;
    transform: translateX(-30px);
    border-top: 1px solid rgba(201, 185, 144, 0.12);
    
    /* ✅ Transición suave del contenido */
    transition: 
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.accordion-horizontal__item.is-active .accordion-horizontal__content {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.3s; /* ✅ Delay para que aparezca después de expandir */
}

.accordion-horizontal__item.is-active .accordion-horizontal__panel > * {
    padding: var(--space-5) var(--space-6);
}

/* Párrafo */
.accordion-horizontal__content p {
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0 0 var(--space-4) 0;
}

/* Lista */
.accordion-horizontal__list {
    display: grid;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.accordion-horizontal__list li {
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    color: var(--text);
    padding-left: var(--space-4);
    position: relative;
    opacity: 0;
    transform: translateX(-15px);
    
    /* ✅ Transición suave para cada item */
    transition: 
        opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ✅ Stagger effect más suave y espaciado */
.accordion-horizontal__item.is-active .accordion-horizontal__list li:nth-child(1) { 
    transition-delay: 0.5s; 
}
.accordion-horizontal__item.is-active .accordion-horizontal__list li:nth-child(2) { 
    transition-delay: 0.6s; 
}
.accordion-horizontal__item.is-active .accordion-horizontal__list li:nth-child(3) { 
    transition-delay: 0.7s; 
}
.accordion-horizontal__item.is-active .accordion-horizontal__list li:nth-child(4) { 
    transition-delay: 0.8s; 
}

.accordion-horizontal__item.is-active .accordion-horizontal__list li {
    opacity: 1;
    transform: translateX(0);
}

.accordion-horizontal__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--l2-gold);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(201, 185, 144, 0.5);
}

/* ============================================
   RESPONSIVE — MÓVIL
   ============================================ */
@media (max-width: 900px) {
    .accordion-horizontal {
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
    }

    .accordion-horizontal__item,
    .accordion-horizontal__item.is-active {
        width: 100%;
        max-width: 500px;
        min-width: auto;
        min-height: auto;
    }

    .accordion-horizontal__trigger {
        flex-direction: row;
        min-height: auto;
        padding: var(--space-4);
        gap: var(--space-3);
        align-items: center;
    }

    .accordion-horizontal__title {
        writing-mode: horizontal-tb;
        font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    }

    .accordion-horizontal__item.is-active .accordion-horizontal__title {
        font-size: clamp(1rem, 1.4vw, 1.15rem);
    }
}

/* ============================================
   DIVISOR DE SECCIONES — Integrado sin espacio
   ============================================ */
.section-divider {
    position: relative;
    width: 100%;
    height: 0;  /* ✅ Altura 0 para no crear espacio */
    display: block;
    margin: 0;
    padding: 0;
    overflow: visible;  /* ✅ Permitir que el diamante se vea */
}

/* Línea horizontal */
.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(201, 185, 144, 0.3) 25%,
        var(--l2-gold) 48%,
        var(--l2-gold-light) 50%,
        var(--l2-gold) 52%,
        rgba(201, 185, 144, 0.3) 75%,
        transparent 100%);
    z-index: 1;
}

/* Diamante central */
.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--l2-gold-light), var(--l2-gold));
    box-shadow: 
        0 0 25px rgba(201, 185, 144, 0.9),
        0 0 50px rgba(201, 185, 144, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.5);
    z-index: 2;
    animation: diamondPulse 4s ease-in-out infinite;
}

/* Animación del diamante */
@keyframes diamondPulse {
    0%, 100% {
        box-shadow: 
            0 0 25px rgba(201, 185, 144, 0.9),
            0 0 50px rgba(201, 185, 144, 0.5),
            inset 0 0 10px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow: 
            0 0 35px rgba(201, 185, 144, 1),
            0 0 70px rgba(201, 185, 144, 0.7),
            inset 0 0 15px rgba(255, 255, 255, 0.7);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .section-divider::before {
        left: 15%;
        right: 15%;
    }
    
    .section-divider::after {
        width: 14px;
        height: 14px;
    }
}
/* ============================================
   FLUJO DE SECCIONES CON DIVISOR
   ============================================ */

/* Secciones adyacentes sin espacio extra */
.section + .section {
    margin-top: 0;
}

/* Divisor no afecta el flujo */
.section-divider {
    display: block;
    margin: 0;
    padding: 0;
}

/* Asegurar que el diamante no cause overflow */
.section-divider::after {
    overflow: visible;
}
/* ============================================
   FOOTER — LAYOUT EN COLUMNAS (Compacto)
   ============================================ */

.site-footer {
    background: linear-gradient(to bottom, var(--l2-dark), var(--l2-darker));
    border-top: 1px solid rgba(201, 185, 144, 0.2);
    padding: var(--space-5) 0 var(--space-4); /* Compacto */
}

/* Grid de columnas */
.footer__grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-3); /* Muy poco espacio */
}

/* Columna Redes Sociales (izquierda) */
.footer__col--social {
    justify-self: start;
}

.footer__social {
    display: flex;
    gap: var(--space-2);
}

.footer__social-link {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(201, 185, 144, 0.05);
    border: 1px solid rgba(201, 185, 144, 0.2);
    color: var(--l2-gold-light);
    transition: all var(--dur) var(--ease);
}

.footer__social-link:hover {
    background: rgba(201, 185, 144, 0.15);
    border-color: var(--l2-gold);
    color: var(--l2-gold);
    transform: translateY(-2px);
}

.footer__social-link svg {
    width: 18px;
    height: 18px;
}

/* Columna Links Legales (centro) */
.footer__col--legal {
    justify-self: center;
    width: 100%;
}

.footer__legal {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer__legal-link {
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    color: var(--text-muted);
    transition: color var(--dur-fast) var(--ease);
    white-space: nowrap;
}

.footer__legal-link:hover {
    color: var(--l2-gold);
}

/* Columna vacía (derecha) - para balance */
.footer__col--empty {
    /* Solo para balance visual */
}

/* Sección inferior - Divider + Copyright */
.footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2); /* Muy poco espacio entre divider y copyright */
}

.footer__divider {
    width: 40%;
    max-width: 300px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(201, 185, 144, 0.3),
        transparent);
}

.footer__copyright {
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    color: var(--text-subtle);
    margin: 0;
    letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
        text-align: center;
    }
    
    .footer__col--social,
    .footer__col--legal {
        justify-self: center;
    }
    
    .footer__col--empty {
        display: none;
    }
    
    .footer__social {
        justify-content: center;
    }
    
    .footer__legal {
        gap: var(--space-2);
    }
    
    .footer__divider {
        width: 60%;
    }
}

@media (max-width: 480px) {
    .footer__legal {
        flex-direction: column;
        gap: var(--space-1);
    }
    
    .footer__social-link {
        width: 32px;
        height: 32px;
    }
    
    .footer__social-link svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   SECCIÓN DE PRODUCTOS — TEMA LINEAGE 2
   Basado en services.php
   ============================================ */

.products {
    position: relative;
}

/* ============================================
   FILTROS DE CATEGORÍA (estilo acordeón)
   ============================================ */
.products-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
    margin-bottom: var(--space-8);
}

.products-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.9), rgba(10, 14, 18, 0.95));
    border: 1px solid rgba(201, 185, 144, 0.2);
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    position: relative;
    overflow: hidden;
}

.products-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 185, 144, 0.2), transparent);
    transition: left 0.5s;
}

.products-filter-btn:hover::before {
    left: 100%;
}

.products-filter-btn:hover {
    border-color: rgba(201, 185, 144, 0.5);
    color: var(--l2-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 185, 144, 0.15);
}

.products-filter-btn.is-active {
    background: linear-gradient(135deg, var(--l2-gold), var(--l2-gold-dark));
    border-color: var(--l2-gold);
    color: var(--l2-darker);
    box-shadow: 
        0 4px 15px rgba(201, 185, 144, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.products-filter-icon {
    font-size: 0.875rem;
    color: var(--l2-gold);
}

.products-filter-btn.is-active .products-filter-icon {
    color: var(--l2-darker);
}

.products-filter-count {
    background: rgba(201, 185, 144, 0.15);
    padding: 0.125rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font-mono);
    border-radius: 2px;
}

.products-filter-btn.is-active .products-filter-count {
    background: rgba(10, 14, 18, 0.2);
    color: var(--l2-darker);
}

/* ============================================
   GRID DE PRODUCTOS
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

/* ============================================
   CARD DE PRODUCTO (basado en .card de services)
   ============================================ */
.product-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Badges superiores */
.product-badges {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    z-index: 3;
}

.product-badge {
    padding: 0.4rem 0.85rem;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid;
}

.product-badge--featured {
    background: linear-gradient(135deg, var(--l2-gold), var(--l2-gold-dark));
    border-color: var(--l2-gold-light);
    color: var(--l2-darker);
    box-shadow: 0 4px 15px rgba(201, 185, 144, 0.4);
}

.product-badge--new {
    background: linear-gradient(135deg, var(--l2-teal-light), var(--l2-teal));
    border-color: var(--l2-teal-light);
    color: var(--l2-gold-light);
    box-shadow: 0 4px 15px rgba(26, 95, 95, 0.4);
}

/* Badge de categoría */
.product-category-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: rgba(10, 14, 18, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--l2-gold);
    padding: 0.4rem 0.85rem;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 3;
    border: 1px solid rgba(201, 185, 144, 0.4);
}

.product-category-icon {
    color: var(--l2-gold);
    font-size: 0.875rem;
}

.product-category-name {
    color: var(--l2-gold-light);
}

/* Imagen */
.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.8), rgba(10, 14, 18, 0.9));
    border-bottom: 1px solid rgba(201, 185, 144, 0.2);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.variants-indicator {
    position: absolute;
    bottom: var(--space-4);
    right: var(--space-4);
    background: rgba(10, 14, 18, 0.9);
    backdrop-filter: blur(10px);
    color: var(--l2-gold);
    padding: 0.4rem 0.85rem;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(201, 185, 144, 0.4);
}

/* Contenido */
.product-content {
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.4vw, 1.3rem);
    font-weight: 600;
    color: var(--l2-gold);
    letter-spacing: 0.03em;
    margin: 0 0 var(--space-3) 0;
    line-height: 1.3;
}

.product-description {
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 0 var(--space-4) 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Features (igual que services) */
.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-5) 0;
    display: grid;
    gap: var(--space-2);
}

.product-features li {
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    color: var(--text);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 0.5rem 0.75rem;
    background: rgba(201, 185, 144, 0.03);
    border-left: 2px solid var(--l2-gold);
    transition: all var(--dur) var(--ease);
}

.product-features li:hover {
    background: rgba(201, 185, 144, 0.08);
    transform: translateX(4px);
}

.feature-check {
    color: var(--l2-gold);
    font-size: 0.75rem;
}

/* Precios */
.product-pricing {
    margin: auto 0 var(--space-5) 0;
    padding: var(--space-4);
    background: rgba(201, 185, 144, 0.03);
    border: 1px solid rgba(201, 185, 144, 0.15);
    border-left: 3px solid var(--l2-gold);
}

.price-from, .price-single {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.price-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    width: 100%;
    margin-bottom: 0.25rem;
}

.price-amount {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    font-weight: 700;
    background: linear-gradient(180deg, var(--l2-gold-light), var(--l2-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    letter-spacing: -0.01em;
}

.price-currency {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Acciones */
.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.btn--sm {
    padding: 0.75rem 1.25rem;
    font-size: 0.7rem;
}

/* ============================================
   CTA DE PRODUCTOS (igual que services)
   ============================================ */
.products-cta {
    text-align: center;
    padding: var(--space-7) var(--space-5);
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.6), rgba(10, 14, 18, 0.8));
    border: 1px solid rgba(201, 185, 144, 0.2);
    position: relative;
}

.products-cta::before,
.products-cta::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--l2-gold);
    border-style: solid;
    opacity: 0.5;
}

.products-cta::before {
    top: 0; left: 0;
    border-width: 2px 0 0 2px;
}

.products-cta::after {
    bottom: 0; right: 0;
    border-width: 0 2px 2px 0;
}

.products-cta .cta-text {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    font-weight: 300;
    color: var(--text-muted);
    margin: 0 0 var(--space-5) 0;
}

.btn-arrow {
    transition: transform 0.3s var(--ease);
    margin-left: var(--space-2);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ============================================
   MODAL DE COMPRA RÁPIDA
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.modal[hidden] {
    display: none;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 9, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s var(--ease);
    padding: 0;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: rgba(201, 185, 144, 0.1);
    border: 1px solid rgba(201, 185, 144, 0.3);
    color: var(--l2-gold);
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease);
    z-index: 2;
}

.modal-close:hover {
    background: rgba(201, 185, 144, 0.2);
    border-color: var(--l2-gold);
    transform: rotate(90deg);
}

.modal-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid rgba(201, 185, 144, 0.15);
    background: rgba(201, 185, 144, 0.03);
}

.modal-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--l2-gold);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    letter-spacing: 0.03em;
}

.modal-icon {
    font-size: 1.25rem;
    color: var(--l2-gold);
}

.modal-body {
    padding: var(--space-6);
}

.quick-buy-product {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4);
    background: rgba(201, 185, 144, 0.03);
    border: 1px solid rgba(201, 185, 144, 0.15);
    margin-bottom: var(--space-5);
}

.qb-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid rgba(201, 185, 144, 0.3);
}

.qb-info {
    flex: 1;
}

.qb-name {
    margin: 0 0 var(--space-2) 0;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--l2-gold);
    letter-spacing: 0.02em;
}

.qb-price {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(180deg, var(--l2-gold-light), var(--l2-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.qb-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(201, 185, 144, 0.03);
    border: 1px solid rgba(201, 185, 144, 0.2);
    padding: 0.25rem;
}

.qty-btn {
    background: rgba(201, 185, 144, 0.08);
    border: 1px solid rgba(201, 185, 144, 0.2);
    color: var(--l2-gold);
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease);
}

.qty-btn:hover {
    background: rgba(201, 185, 144, 0.2);
    border-color: var(--l2-gold);
}

#qb-qty {
    width: 60px;
    background: transparent;
    border: none;
    color: var(--l2-gold);
    text-align: center;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
}

#qb-qty:focus {
    outline: none;
}

.modal-footer {
    padding: var(--space-5) var(--space-6);
    border-top: 1px solid rgba(201, 185, 144, 0.15);
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
}

/* ============================================
   NOTIFICACIONES
   ============================================ */
.notification {
    position: fixed;
    top: var(--space-6);
    right: var(--space-6);
    padding: var(--space-4) var(--space-5);
    color: var(--l2-darker);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    z-index: 1000;
    animation: slideInRight 0.4s var(--ease);
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    border: 2px solid;
}

.notification-success {
    background: linear-gradient(135deg, var(--l2-gold), var(--l2-gold-dark));
    border-color: var(--l2-gold-light);
    box-shadow: 0 8px 30px rgba(201, 185, 144, 0.4);
}

.notification-error {
    background: linear-gradient(135deg, #8b3a3a, #5a2020);
    border-color: #c97070;
    color: var(--l2-gold-light);
    box-shadow: 0 8px 30px rgba(139, 58, 58, 0.4);
}

.notification-info {
    background: linear-gradient(135deg, var(--l2-teal-light), var(--l2-teal));
    border-color: var(--l2-teal-light);
    color: var(--l2-gold-light);
    box-shadow: 0 8px 30px rgba(26, 95, 95, 0.4);
}

.notification-icon {
    font-size: 1.25rem;
    font-weight: bold;
}

.notification-message {
    flex: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--space-5);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    
    .product-actions {
        grid-template-columns: 1fr;
    }
    
    .products-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: var(--space-2);
        -webkit-overflow-scrolling: touch;
        margin-bottom: var(--space-6);
    }
    
    .products-filter-btn {
        flex-shrink: 0;
    }
    
    .notification {
        top: var(--space-4);
        right: var(--space-4);
        left: var(--space-4);
        max-width: none;
    }
    
    .modal-content {
        margin: var(--space-3);
    }
    
    .modal-body,
    .modal-header,
    .modal-footer {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
}

@media (max-width: 480px) {
    .product-content {
        padding: var(--space-4);
    }
    
    .price-amount {
        font-size: 1.75rem;
    }
    
    .qb-image {
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}