/* ============================================================
   DINLARENTO - Complete Stylesheet
   Line Art Minimal | Elegant, Refined, Architectural
   ============================================================ */


@import url('https://fonts.googleapis.com/css2?family=Gabarito:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ============================================================
   LAYER DEFINITIONS
   ============================================================ */
@layer reset, tokens, base, layout, components, pages, utilities, animations;

/* ============================================================
   RESET
   ============================================================ */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  img, picture, video, canvas, svg { display: block; max-width: 100%; }
  input, button, textarea, select { font: inherit; }
  p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
  ul, ol { list-style: none; }
  a { color: inherit; text-decoration: none; }
  button { cursor: pointer; border: none; background: none; }
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
@layer tokens {
  :root {
    
    --base-ink: #1a1714;
    --base-stone: #8c7b6e;
    --base-cream: #f7f4f0;
    --base-accent: #b5883c;

    
    --ink-deep: color-mix(in oklch, var(--base-ink), black 20%);
    --ink-mid: color-mix(in oklch, var(--base-ink), white 30%);
    --ink-soft: color-mix(in oklch, var(--base-ink), white 55%);
    --ink-muted: color-mix(in oklch, var(--base-ink), white 75%);
    --ink-ghost: color-mix(in oklch, var(--base-ink), white 92%);

    --stone-dark: color-mix(in oklch, var(--base-stone), black 25%);
    --stone-mid: var(--base-stone);
    --stone-light: color-mix(in oklch, var(--base-stone), white 40%);
    --stone-pale: color-mix(in oklch, var(--base-stone), white 70%);

    --cream-deep: color-mix(in oklch, var(--base-cream), var(--base-stone) 12%);
    --cream-base: var(--base-cream);
    --cream-bright: color-mix(in oklch, var(--base-cream), white 60%);

    --accent-warm: color-mix(in oklch, var(--base-accent), var(--base-ink) 15%);
    --accent-base: var(--base-accent);
    --accent-light: color-mix(in oklch, var(--base-accent), white 35%);
    --accent-pale: color-mix(in oklch, var(--base-accent), white 68%);
    --accent-ghost: color-mix(in oklch, var(--base-accent), white 88%);

    
    --color-bg: var(--cream-bright);
    --color-surface: var(--cream-base);
    --color-surface-alt: var(--cream-deep);
    --color-border: color-mix(in oklch, var(--base-stone), white 55%);
    --color-border-strong: color-mix(in oklch, var(--base-stone), white 30%);
    --color-text-primary: var(--ink-deep);
    --color-text-secondary: var(--ink-mid);
    --color-text-muted: var(--ink-soft);
    --color-text-subtle: var(--stone-mid);
    --color-accent: var(--accent-base);
    --color-accent-hover: var(--accent-warm);

    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-md: 1.125rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;
    --text-2xl: 1.875rem;
    --text-3xl: 2.25rem;
    --text-4xl: clamp(2.25rem, 5vw, 3.5rem);
    --text-5xl: clamp(3rem, 7vw, 5rem);
    --text-display: clamp(3.5rem, 9vw, 7rem);

    
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    
    --radius-sm: 2px;
    --radius-md: 6px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    
    --shadow-xs: 0 1px 2px color-mix(in oklch, var(--base-ink), transparent 90%);
    --shadow-sm: 0 1px 3px color-mix(in oklch, var(--base-ink), transparent 88%),
                 0 1px 2px color-mix(in oklch, var(--base-ink), transparent 94%);
    --shadow-md: 0 4px 6px color-mix(in oklch, var(--base-ink), transparent 88%),
                 0 2px 4px color-mix(in oklch, var(--base-ink), transparent 93%);
    --shadow-lg: 0 10px 25px color-mix(in oklch, var(--base-ink), transparent 85%),
                 0 4px 10px color-mix(in oklch, var(--base-ink), transparent 90%),
                 0 1px 3px color-mix(in oklch, var(--base-ink), transparent 95%);
    --shadow-xl: 0 20px 50px color-mix(in oklch, var(--base-ink), transparent 82%),
                 0 8px 20px color-mix(in oklch, var(--base-ink), transparent 88%),
                 0 2px 6px color-mix(in oklch, var(--base-ink), transparent 93%);
    --shadow-accent: 0 8px 30px color-mix(in oklch, var(--base-accent), transparent 72%),
                     0 2px 8px color-mix(in oklch, var(--base-accent), transparent 82%);

    
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-bounce: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

    
    --container-max: 1200px;
    --container-narrow: 800px;
    --nav-height: 72px;
  }
}

/* ============================================================
   BASE
   ============================================================ */
@layer base {
  html {
    font-size: 16px;
  }

  body {
    font-family: 'Inter', sans-serif;
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--color-text-primary);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: 'Gabarito', sans-serif;
    line-height: 1.15;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
  }

  p { line-height: 1.7; }

  strong { font-weight: 600; }

  ::selection {
    background: var(--accent-pale);
    color: var(--color-text-primary);
  }

  :focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
  }
}

/* ============================================================
   LAYOUT
   ============================================================ */
@layer layout {
  .content-block {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-6);
  }

  .content-block--narrow {
    max-width: var(--container-narrow);
  }

  .page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  .main-content {
    flex: 1;
  }

  .section-spacing {
    padding-block: var(--space-20);
  }

  .section-spacing--lg {
    padding-block: var(--space-32);
  }

  .section-spacing--sm {
    padding-block: var(--space-12);
  }

  .info-grid {
    display: grid;
    gap: var(--space-8);
  }

  .info-grid--2 { grid-template-columns: 1fr 1fr; }
  .info-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .info-grid--4 { grid-template-columns: repeat(4, 1fr); }

  @media (max-width: 900px) {
    .info-grid--3, .info-grid--4 { grid-template-columns: 1fr 1fr; }
  }

  @media (max-width: 600px) {
    .info-grid--2, .info-grid--3, .info-grid--4 { grid-template-columns: 1fr; }
    .content-block { padding-inline: var(--space-5); }
  }
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent-base), var(--accent-light));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
@layer components {

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: background var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    border-bottom: 1px solid transparent;
  }

  .site-nav.nav-scrolled {
    background: color-mix(in oklch, var(--cream-bright), transparent 5%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--color-border);
  }

  .nav-inner {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
  }

  .nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
    transition: opacity var(--transition-fast);
  }

  .nav-brand:hover { opacity: 0.8; }

  .nav-brand-logo {
    width: 36px;
    height: 36px;
  }

  .nav-brand-name {
    font-family: 'Gabarito', sans-serif;
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--color-text-primary);
    letter-spacing: -0.03em;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
  }

  .nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
  }

  .nav-link:hover, .nav-link.active-nav-link {
    color: var(--color-text-primary);
    background: var(--accent-ghost);
  }

  .nav-link.active-nav-link {
    color: var(--color-accent);
  }

  .nav-cta {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-bg);
    background: var(--color-text-primary);
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    transition: background var(--transition-base), transform var(--transition-bounce), box-shadow var(--transition-base);
    white-space: nowrap;
  }

  .nav-cta:hover {
    background: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-accent);
  }

  .lang-switcher {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-left: var(--space-4);
    border-left: 1px solid var(--color-border);
    padding-left: var(--space-4);
  }

  .lang-btn {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
  }

  .lang-btn:hover { color: var(--color-text-primary); }
  .lang-btn.active { color: var(--color-accent); }

  .lang-divider {
    color: var(--color-border-strong);
    font-size: var(--text-xs);
  }

  
  .nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    gap: 5px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
  }

  .nav-hamburger:hover { background: var(--accent-ghost); }

  .hamburger-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--color-text-primary);
    transition: transform var(--transition-base), opacity var(--transition-fast);
    transform-origin: center;
  }

  
  .mobile-tab-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: color-mix(in oklch, var(--cream-bright), transparent 5%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--color-border);
    padding: var(--space-2) var(--space-4) env(safe-area-inset-bottom, var(--space-2));
    box-shadow: 0 -4px 20px color-mix(in oklch, var(--base-ink), transparent 90%);
  }

  .mobile-tab-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    max-width: 480px;
    margin-inline: auto;
  }

  .mobile-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    color: var(--color-text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color var(--transition-fast), background var(--transition-fast);
    min-width: 44px;
    text-align: center;
  }

  .mobile-tab-item i {
    font-size: 1.1rem;
    transition: transform var(--transition-bounce);
  }

  .mobile-tab-item:hover,
  .mobile-tab-item.active-tab {
    color: var(--color-accent);
    background: var(--accent-ghost);
  }

  .mobile-tab-item.active-tab i {
    transform: translateY(-2px);
  }

  .mobile-tab-lang {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    transition: color var(--transition-fast), background var(--transition-fast);
  }

  .mobile-tab-lang:hover { color: var(--color-accent); background: var(--accent-ghost); }
  .mobile-tab-lang i { font-size: 1.1rem; }

  @media (max-width: 768px) {
    .nav-links, .nav-cta, .lang-switcher { display: none; }
    .nav-hamburger { display: flex; }
    .mobile-tab-bar { display: block; }
    body { padding-bottom: 70px; }
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
@layer components {
  .hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: calc(var(--nav-height) + var(--space-12));
    padding-bottom: var(--space-12);
    position: relative;
    overflow: hidden;
  }

  .hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(135deg, var(--accent-ghost) 0%, transparent 50%),
      radial-gradient(ellipse 80% 60% at 70% 40%, color-mix(in oklch, var(--accent-pale), transparent 50%) 0%, transparent 70%);
    pointer-events: none;
  }

  .hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(var(--color-border) 1px, transparent 1px),
      linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.35;
    pointer-events: none;
  }

  .hero-inner {
    position: relative;
    z-index: 1;
  }

  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-6);
  }

  .hero-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--color-accent);
  }

  .hero-headline {
    font-size: var(--text-display);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--color-text-primary);
    max-width: 14ch;
    margin-bottom: var(--space-8);
  }

  .hero-headline .highlight-text {
    color: var(--color-accent);
    position: relative;
    display: inline-block;
  }

  .hero-headline .highlight-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--accent-light));
    border-radius: var(--radius-full);
  }

  .hero-subtext {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 52ch;
    line-height: 1.6;
    margin-bottom: var(--space-10);
  }

  .hero-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-16);
  }

  
  .hero-cards-row {
    position: relative;
    z-index: 1;
    overflow: hidden;
  }

  .hero-cards-swiper {
    padding: var(--space-4) var(--space-2) var(--space-6);
    overflow: visible !important;
  }

  .hero-mini-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    position: relative;
    overflow: hidden;
    height: 100%;
  }

  .hero-mini-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--accent-light));
    opacity: 0;
    transition: opacity var(--transition-base);
  }

  .hero-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
  }

  .hero-mini-card:hover::before { opacity: 1; }

  .mini-card-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    color: var(--color-accent);
    font-size: 1.1rem;
    transition: border-color var(--transition-base), background var(--transition-base);
  }

  .hero-mini-card:hover .mini-card-icon {
    border-color: var(--color-accent);
    background: var(--accent-ghost);
  }

  .mini-card-title {
    font-family: 'Gabarito', sans-serif;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
    line-height: 1.3;
  }

  .mini-card-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.5;
  }

  .mini-card-arrow {
    position: absolute;
    bottom: var(--space-5);
    right: var(--space-5);
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    transition: all var(--transition-base);
  }

  .hero-mini-card:hover .mini-card-arrow {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--accent-ghost);
    transform: translateX(2px);
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
@layer components {
  .primary-action {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    letter-spacing: 0.02em;
    min-height: 48px;
  }

  .primary-action--filled {
    background: var(--color-text-primary);
    color: var(--color-bg);
    border: 1px solid var(--color-text-primary);
  }

  .primary-action--filled:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
  }

  .primary-action--outline {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-strong);
  }

  .primary-action--outline:hover {
    border-color: var(--color-text-primary);
    background: var(--ink-ghost);
    transform: translateY(-1px);
  }

  .primary-action--accent {
    background: var(--color-accent);
    color: var(--color-bg);
    border: 1px solid var(--color-accent);
  }

  .primary-action--accent:hover {
    background: var(--accent-warm);
    border-color: var(--accent-warm);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
  }
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
@layer components {
  .section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-5);
  }

  .section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: currentColor;
  }

  .section-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-text-primary);
    margin-bottom: var(--space-5);
  }

  .section-title--lg {
    font-size: var(--text-5xl);
  }

  .section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 58ch;
    line-height: 1.6;
    margin-bottom: var(--space-12);
  }

  .section-header {
    margin-bottom: var(--space-12);
  }

  .section-header--center {
    text-align: center;
  }

  .section-header--center .section-label {
    justify-content: center;
  }

  .section-header--center .section-subtitle {
    margin-inline: auto;
  }
}

/* ============================================================
   CARD STACK EFFECT
   ============================================================ */
@layer components {
  .card-stack-wrapper {
    position: relative;
  }

  .stacked-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    position: relative;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    box-shadow: var(--shadow-sm);
  }

  .stacked-card::before,
  .stacked-card::after {
    content: '';
    position: absolute;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    background: var(--cream-deep);
    z-index: -1;
  }

  .stacked-card::before {
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
    z-index: -1;
  }

  .stacked-card::after {
    top: 16px;
    left: 16px;
    right: -16px;
    bottom: -16px;
    z-index: -2;
    opacity: 0.5;
  }

  .stacked-card:hover {
    transform: translateY(-4px) translateX(-2px);
    box-shadow: var(--shadow-xl);
  }
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
@layer components {
  .feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    position: relative;
    overflow: hidden;
  }

  .feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
  }

  .feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-light);
  }

  .feature-card:hover::after { opacity: 1; }

  .feature-card-icon {
    width: 48px;
    height: 48px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    color: var(--color-accent);
    font-size: 1.25rem;
    transition: all var(--transition-base);
  }

  .feature-card:hover .feature-card-icon {
    border-color: var(--color-accent);
    background: var(--accent-ghost);
  }

  .feature-card-title {
    font-family: 'Gabarito', sans-serif;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
  }

  .feature-card-text {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.65;
  }
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
@layer components {
  .comparison-section {
    background: var(--color-surface-alt);
  }

  .comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
  }

  .comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
  }

  .comparison-table thead th {
    padding: var(--space-8) var(--space-6);
    text-align: left;
    background: var(--color-surface);
    border-bottom: 2px solid var(--color-border);
    font-family: 'Gabarito', sans-serif;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    position: relative;
  }

  .comparison-table thead th:first-child {
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-family: 'Inter', sans-serif;
  }

  .comparison-table thead th.col-recommended {
    background: color-mix(in oklch, var(--accent-ghost), var(--color-surface) 30%);
  }

  .recommended-badge {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-full);
    padding: var(--space-1) var(--space-3);
    margin-top: var(--space-2);
    font-family: 'Inter', sans-serif;
  }

  .comparison-table tbody tr {
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition-fast);
  }

  .comparison-table tbody tr:last-child { border-bottom: none; }
  .comparison-table tbody tr:hover { background: var(--ink-ghost); }

  .comparison-table tbody td {
    padding: var(--space-5) var(--space-6);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    vertical-align: middle;
  }

  .comparison-table tbody td:first-child {
    font-weight: 600;
    color: var(--color-text-primary);
  }

  .comparison-table tbody td.col-recommended {
    background: color-mix(in oklch, var(--accent-ghost), transparent 40%);
  }

  .check-icon { color: var(--color-accent); font-size: 1rem; }
  .cross-icon { color: var(--stone-light); font-size: 1rem; }
  .partial-icon { color: var(--stone-mid); font-size: 0.85rem; }
}

/* ============================================================
   OVERLAP ZONE
   ============================================================ */
@layer components {
  .overlap-zone {
    position: relative;
    z-index: 1;
  }

  .overlap-zone .overlap-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-12) var(--space-10);
    box-shadow: var(--shadow-xl);
    margin-top: calc(-1 * var(--space-16));
    position: relative;
    z-index: 2;
  }

  .overlap-bg-section {
    background: var(--color-text-primary);
    padding-bottom: var(--space-24);
  }

  .overlap-bg-section .section-title {
    color: var(--cream-bright);
  }

  .overlap-bg-section .section-label {
    color: var(--accent-light);
  }

  .overlap-bg-section .section-subtitle {
    color: var(--stone-pale);
  }
}

/* ============================================================
   IMAGE BLOCKS
   ============================================================ */
@layer components {
  .visual-break {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border);
    display: block;
  }

  .visual-break--tall { height: 520px; }
  .visual-break--short { height: 280px; }

  .image-frame {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px color-mix(in oklch, white, transparent 80%);
    pointer-events: none;
  }

  .image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
  }

  .image-frame:hover img { transform: scale(1.03); }
}

/* ============================================================
   ABOUT / PERSONAS SECTION
   ============================================================ */
@layer components {
  .personas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .persona-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
  }

  .persona-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(2px);
  }

  .persona-card-name {
    font-family: 'Gabarito', sans-serif;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
  }

  .persona-card-desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
  }

  @media (max-width: 640px) {
    .personas-grid { grid-template-columns: 1fr; }
  }
}

/* ============================================================
   PROCESS / STEPS
   ============================================================ */
@layer components {
  .process-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
  }

  .process-list::before {
    content: '';
    position: absolute;
    top: 28px;
    bottom: 28px;
    left: 20px;
    width: 1px;
    background: linear-gradient(to bottom, var(--color-accent), var(--color-border));
  }

  .process-item {
    display: flex;
    gap: var(--space-6);
    padding: var(--space-6) 0;
    position: relative;
  }

  .process-step-number {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Gabarito', sans-serif;
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--color-accent);
    flex-shrink: 0;
    background: var(--color-bg);
    transition: background var(--transition-base), color var(--transition-base);
  }

  .process-item:hover .process-step-number {
    background: var(--color-accent);
    color: var(--color-bg);
  }

  .process-step-content {}

  .process-step-title {
    font-family: 'Gabarito', sans-serif;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
  }

  .process-step-text {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.65;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
@layer components {
  .site-footer {
    background: var(--color-text-primary);
    color: var(--stone-pale);
    padding-top: var(--space-16);
    padding-bottom: var(--space-8);
    margin-top: auto;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid color-mix(in oklch, var(--stone-pale), transparent 80%);
  }

  .footer-brand-name {
    font-family: 'Gabarito', sans-serif;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--cream-bright);
    margin-bottom: var(--space-4);
    letter-spacing: -0.03em;
  }

  .footer-brand-desc {
    font-size: var(--text-sm);
    line-height: 1.65;
    color: var(--stone-light);
    max-width: 28ch;
    margin-bottom: var(--space-6);
  }

  .footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--stone-light);
    margin-bottom: var(--space-3);
    transition: color var(--transition-fast);
  }

  .footer-contact-item:hover { color: var(--cream-bright); }

  .footer-contact-item i {
    color: var(--accent-light);
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
  }

  .footer-col-title {
    font-family: 'Gabarito', sans-serif;
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--cream-bright);
    margin-bottom: var(--space-5);
    letter-spacing: -0.02em;
  }

  .footer-nav-link {
    display: block;
    font-size: var(--text-sm);
    color: var(--stone-light);
    padding: var(--space-2) 0;
    transition: color var(--transition-fast), transform var(--transition-fast);
    border-bottom: 1px solid transparent;
  }

  .footer-nav-link:hover {
    color: var(--cream-bright);
    transform: translateX(3px);
  }

  .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
  }

  .footer-copyright {
    font-size: var(--text-xs);
    color: var(--stone-mid);
  }

  .footer-legal-links {
    display: flex;
    gap: var(--space-6);
    flex-wrap: wrap;
  }

  .footer-legal-link {
    font-size: var(--text-xs);
    color: var(--stone-mid);
    transition: color var(--transition-fast);
  }

  .footer-legal-link:hover { color: var(--stone-pale); }

  @media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
  }

  @media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
    .footer-bottom { flex-direction: column; text-align: center; }
  }
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
@layer components {
  .contact-form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: start;
  }

  .form-left-col { display: flex; flex-direction: column; gap: var(--space-5); }
  .form-right-col { display: flex; flex-direction: column; gap: var(--space-5); }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .form-label {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
  }

  .form-input,
  .form-textarea {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    color: var(--color-text-primary);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    min-height: 48px;
  }

  .form-input:focus,
  .form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--accent-ghost);
  }

  .form-textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.6;
  }

  .form-bottom {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
  }

  .privacy-check-group {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .privacy-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-accent);
    cursor: pointer;
    flex-shrink: 0;
  }

  .privacy-label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.55;
  }

  .privacy-label a {
    color: var(--color-accent);
    border-bottom: 1px solid var(--accent-light);
    transition: color var(--transition-fast);
  }

  .privacy-label a:hover { color: var(--accent-warm); }

  @media (max-width: 768px) {
    .contact-form-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
  }
}

/* ============================================================
   MAP
   ============================================================ */
@layer components {
  .map-wrapper {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 400px;
  }

  .map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
  }
}

/* ============================================================
   THANKS PAGE
   ============================================================ */
@layer components {
  .thanks-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--accent-warm) 100%);
    padding: var(--space-20) var(--space-6);
    text-align: center;
  }

  .thanks-hero-title {
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--cream-bright);
    letter-spacing: -0.04em;
    margin-bottom: var(--space-5);
  }

  .thanks-hero-text {
    font-size: var(--text-xl);
    color: color-mix(in oklch, var(--cream-bright), transparent 25%);
    max-width: 44ch;
    margin-inline: auto;
    line-height: 1.55;
  }

  .thanks-content {
    padding: var(--space-16) var(--space-6);
    text-align: center;
    background: var(--color-bg);
  }
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
@layer components {
  .legal-hero {
    padding-top: calc(var(--nav-height) + var(--space-12));
    padding-bottom: var(--space-12);
    border-bottom: 1px solid var(--color-border);
  }

  .legal-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-3);
  }

  .legal-date {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
  }

  .legal-body {
    padding-block: var(--space-16);
  }

  .legal-section {
    margin-bottom: var(--space-10);
    padding-bottom: var(--space-10);
    border-bottom: 1px solid var(--color-border);
  }

  .legal-section:last-child {
    border-bottom: none;
  }

  .legal-summary-box {
    background: var(--accent-ghost);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-5);
    font-weight: 600;
    font-size: var(--text-base);
    color: var(--color-text-primary);
  }

  .legal-section-title {
    font-family: 'Gabarito', sans-serif;
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-5);
    color: var(--color-text-primary);
  }

  .legal-text {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-bottom: var(--space-4);
  }

  .legal-text:last-child { margin-bottom: 0; }

  .legal-list {
    padding-left: var(--space-6);
    margin-bottom: var(--space-4);
  }

  .legal-list li {
    list-style: disc;
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-2);
  }
}

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
@layer components {
  .cookie-trigger {
    position: fixed;
    bottom: calc(var(--space-5) + 70px);
    right: var(--space-5);
    z-index: 8000;
    width: 48px;
    height: 48px;
    background: var(--color-text-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream-bright);
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-bounce), background var(--transition-base);
    cursor: pointer;
  }

  .cookie-trigger:hover {
    transform: scale(1.1);
    background: var(--color-accent);
  }

  .cookie-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: var(--color-accent);
    border: 2px solid var(--color-bg);
    border-radius: var(--radius-full);
    transition: opacity var(--transition-fast);
  }

  .cookie-badge.hidden { opacity: 0; pointer-events: none; }

  .cookie-panel {
    position: fixed;
    bottom: calc(var(--space-5) + 70px + 60px);
    right: var(--space-5);
    width: 340px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    z-index: 7999;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-base), opacity var(--transition-base);
    overflow: hidden;
  }

  .cookie-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .cookie-panel-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-panel-title {
    font-family: 'Gabarito', sans-serif;
    font-weight: 700;
    font-size: var(--text-base);
    color: var(--color-text-primary);
  }

  .cookie-panel-close {
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .cookie-panel-close:hover {
    border-color: var(--color-text-primary);
    color: var(--color-text-primary);
  }

  .cookie-panel-body {
    padding: var(--space-5) var(--space-6);
  }

  .cookie-panel-desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-5);
  }

  .cookie-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border);
  }

  .cookie-toggle-item:last-child { border-bottom: none; }

  .cookie-toggle-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
  }

  .cookie-toggle-desc {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-1);
  }

  .cookie-toggle {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
  }

  .cookie-toggle input { opacity: 0; width: 0; height: 0; }

  .cookie-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--color-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--transition-base);
  }

  .cookie-toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: var(--radius-full);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-xs);
  }

  .cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--color-accent);
  }

  .cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(18px);
  }

  .cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
  }

  .cookie-panel-footer {
    padding: var(--space-4) var(--space-6) var(--space-5);
    display: flex;
    gap: var(--space-3);
    border-top: 1px solid var(--color-border);
  }

  .cookie-btn {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: all var(--transition-base);
    min-height: 44px;
    cursor: pointer;
    border: 1px solid;
  }

  .cookie-btn--accept {
    background: var(--color-text-primary);
    color: var(--color-bg);
    border-color: var(--color-text-primary);
  }

  .cookie-btn--accept:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
  }

  .cookie-btn--save {
    background: transparent;
    color: var(--color-text-secondary);
    border-color: var(--color-border);
  }

  .cookie-btn--save:hover {
    border-color: var(--color-text-primary);
    color: var(--color-text-primary);
  }

  @media (max-width: 768px) {
    .cookie-trigger {
      bottom: calc(70px + var(--space-5));
    }
    .cookie-panel {
      right: var(--space-4);
      left: var(--space-4);
      width: auto;
      bottom: calc(70px + 60px + var(--space-4));
    }
  }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
@layer animations {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   UTILITIES
   ============================================================ */
@layer utilities {
  .text-accent { color: var(--color-accent); }
  .text-muted { color: var(--color-text-muted); }
  .text-center { text-align: center; }
  .text-balance { text-wrap: balance; }

  .bg-surface { background: var(--color-surface); }
  .bg-surface-alt { background: var(--color-surface-alt); }
  .bg-ink { background: var(--color-text-primary); }

  .border-top { border-top: 1px solid var(--color-border); }
  .border-bottom { border-bottom: 1px solid var(--color-border); }

  .divider-line {
    height: 1px;
    background: var(--color-border);
    margin-block: var(--space-8);
  }

  .number-accent {
    font-family: 'Gabarito', sans-serif;
    font-size: var(--text-display);
    font-weight: 800;
    color: var(--accent-pale);
    line-height: 1;
    letter-spacing: -0.06em;
    display: block;
  }

  .tag-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: var(--space-1) var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    background: var(--color-surface);
    transition: all var(--transition-fast);
  }

  .tag-pill:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
  }

  .tag-pill--accent {
    border-color: var(--accent-light);
    color: var(--color-accent);
    background: var(--accent-ghost);
  }

  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  @media (max-width: 768px) {
    .hide-mobile { display: none !important; }
  }

  @media (min-width: 769px) {
    .hide-desktop { display: none !important; }
  }
}

/* ============================================================
   SWIPER OVERRIDES
   ============================================================ */
.hero-cards-swiper .swiper-slide {
  height: auto;
}

.hero-cards-swiper .swiper-pagination {
  bottom: 0;
}

.hero-cards-swiper .swiper-pagination-bullet {
  background: var(--color-border-strong);
  opacity: 1;
}

.hero-cards-swiper .swiper-pagination-bullet-active {
  background: var(--color-accent);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-16);
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
}

.page-hero-inner { position: relative; z-index: 1; }

.page-hero-title {
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.page-hero-subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  max-width: 52ch;
  line-height: 1.55;
}

/* ============================================================
   PROPUESTA FORMATIVA PAGE
   ============================================================ */
.module-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.module-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

.module-number {
  font-family: 'Gabarito', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.module-title {
  font-family: 'Gabarito', sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.module-topics {
  padding-left: var(--space-5);
  margin-bottom: var(--space-4);
}

.module-topics li {
  list-style: disc;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
  line-height: 1.55;
}

.module-format-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
}

/* ============================================================
   PRIMER PASO (TU PRIMER PASO)
   ============================================================ */
.primer-paso-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  text-align: center;
  transition: box-shadow var(--transition-base);
}

.primer-paso-card:hover { box-shadow: var(--shadow-lg); }

.primer-paso-icon {
  width: 64px;
  height: 64px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: var(--space-5);
  font-size: 1.5rem;
  color: var(--color-accent);
  transition: all var(--transition-base);
}

.primer-paso-card:hover .primer-paso-icon {
  border-color: var(--color-accent);
  background: var(--accent-ghost);
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 1024px) {
  :root { --nav-height: 64px; }

  .hero-headline { font-size: clamp(2.5rem, 7vw, 5rem); }
}

@media (max-width: 768px) {
  .section-spacing { padding-block: var(--space-16); }
  .section-spacing--lg { padding-block: var(--space-20); }

  .hero-section {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-10));
    padding-bottom: var(--space-8);
  }

  .hero-actions { flex-direction: column; align-items: flex-start; }

  .overlap-zone .overlap-card {
    padding: var(--space-8) var(--space-6);
    margin-top: calc(-1 * var(--space-10));
  }

  .comparison-table thead th,
  .comparison-table tbody td { padding: var(--space-4); }

  .page-hero { padding-top: calc(var(--nav-height) + var(--space-10)); }
  .page-hero-title { font-size: var(--text-3xl); }
}

@media (max-width: 480px) {
  .hero-headline { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .section-title { font-size: var(--text-3xl); }
}