@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap");

/* ============================================================
   DESIGN TOKENS — light navy/red theme
============================================================ */
:root {

  /* ---- Base colour: navy ramp ---- */
  --navy-900: #011024;
  --navy-800: #011a39;
  --navy-700: #012148;
  --navy-600: #012a5c;
  --navy-500: #0b3a75;
  --navy-400: #1d5296;
  --navy-300: #4a7ab5;
  --navy-200: #a9c2dd;
  --navy-100: #dce7f3;
  --navy-050: #f1f6fc;

  /* ---- Base colour: institutional red ---- */
  --red-700: #8d0819;
  --red-600: #b40b22;
  --red-500: #cc1128;
  --red-300: #e8737f;
  --red-100: #fbe3e6;

  /* ---- Base colour: sky accent ---- */
  --sky-400: #9fd3f2;
  --sky-200: #d3ecfa;

  /* ---- Base colour: neutrals ---- */
  --white:    #ffffff;
  --gray-050: #f7f8fa;
  --gray-100: #eef0f4;
  --gray-200: #dfe3ea;
  --gray-400: #98a2b3;
  --gray-600: #5a6577;
  --gray-800: #2b3444;
  --black:    #0a0d12;

  /* ---- Semantic: surfaces ---- */
  --surface-page: var(--white);
  --surface-alt: var(--gray-050);
  --surface-card: var(--white);
  --surface-tint: var(--navy-050);
  --surface-seal: var(--navy-100);
  --surface-inverse: var(--navy-700);
  --surface-inverse-deep: var(--navy-900);

  /* ---- Semantic: text ---- */
  --text-heading: var(--navy-800);
  --text-body: var(--gray-600);
  --text-strong: var(--gray-800);
  --text-muted: var(--gray-400);
  --text-accent: var(--red-600);
  --text-on-inverse: var(--white);
  --text-on-inverse-soft: var(--navy-200);
  --text-link: var(--navy-600);
  --text-link-hover: var(--red-600);

  /* ---- Semantic: action ---- */
  --action-primary: var(--red-600);
  --action-primary-hover: var(--red-700);
  --action-secondary: var(--navy-700);
  --action-secondary-hover: var(--navy-800);
  --action-quiet-bg: var(--navy-050);
  --focus-ring: var(--sky-400);
  --focus-ring-shadow: 0 0 0 3px rgba(159, 211, 242, .5);

  /* ---- Semantic: lines ---- */
  --border-subtle: var(--gray-200);
  --border-strong: var(--navy-200);
  --border-inverse: rgba(255, 255, 255, .18);
  --rule-accent: var(--red-600);

  /* ---- Semantic: status ---- */
  --status-success: #0f7a4d;
  --status-success-bg: #e6f4ed;
  --status-warning: #a86400;
  --status-warning-bg: #fdf3e2;
  --status-error: var(--red-600);
  --status-error-bg: var(--red-100);

  /* ---- Semantic: WhatsApp ---- */
  --whatsapp: #12925c;
  --whatsapp-hover: #0f7a4d;

  /* ---- Type: families ---- */
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* ---- Type: weights ---- */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
  --weight-black: 900;

  /* ---- Type: size scale ---- */
  --text-hero: clamp(40px, 6vw, 72px);
  --text-h1: 44px;
  --text-h2: 34px;
  --text-h3: 22px;
  --text-h4: 18px;
  --text-lead: 20px;
  --text-body-lg: 17px;
  --text-body-md: 15.5px;
  --text-body-sm: 14px;
  --text-caption: 12.5px;
  --text-eyebrow: 12px;

  /* ---- Type: leading ---- */
  --leading-tight: 1.05;
  --leading-snug: 1.2;
  --leading-normal: 1.45;
  --leading-relaxed: 1.65;

  /* ---- Type: tracking ---- */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-eyebrow: 0.16em;

  /* ---- Spacing: 4px base ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-28: 112px;

  /* ---- Layout ---- */
  --section-y: var(--space-28);
  --section-y-compact: var(--space-20);
  --gutter: var(--space-6);
  --grid-gap: var(--space-6);
  --container-max: 1180px;
  --container-narrow: 760px;
  --header-height: 66px;

  /* ---- Radii ---- */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* ---- Borders ---- */
  --border-hairline: 1px;
  --border-medium: 2px;
  --rule-thick: 4px;

  /* ---- Shadows: cool, navy-tinted ---- */
  --shadow-xs: 0 1px 2px rgba(1, 26, 57, .06);
  --shadow-sm: 0 2px 6px rgba(1, 26, 57, .07);
  --shadow-md: 0 8px 24px rgba(1, 26, 57, .09);
  --shadow-lg: 0 18px 44px rgba(1, 26, 57, .14);
  --shadow-inverse: 0 18px 44px rgba(0, 0, 0, .35);
  --shadow-inset-line: inset 0 -1px 0 var(--border-subtle);

  /* ---- Background treatments ---- */
  --sheen-navy: radial-gradient(120% 90% at 15% 10%, var(--navy-600), var(--navy-900));
  --overlay-navy: linear-gradient(180deg, rgba(1, 26, 57, .85), rgba(1, 16, 36, .95));

  /* ---- Motion ---- */
  --ease-standard: cubic-bezier(.2, .6, .2, 1);
  --ease-out: cubic-bezier(.16, .84, .44, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;
  --transition-control:
    background-color var(--duration-base) var(--ease-standard),
    color var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
}

/* -- Compatibility layer: old token names consumed by existing component rules -- */
:root {
  --bg:           var(--surface-page);
  --bg-elev-1:    var(--surface-alt);
  --bg-elev-2:    var(--surface-tint);
  --text:         var(--text-heading);
  --text-mid:     var(--text-body);
  --text-dim:     var(--text-muted);
  --accent:       var(--action-primary);
  --accent-hover: var(--action-primary-hover);
  --accent-soft:  var(--red-100);
  --error:        var(--status-error);
  --navy:         var(--navy-800);
  --navy-light:   var(--navy-700);
  --navy-mid:     var(--navy-600);
  --gold:         var(--action-primary);
  --gold-light:   var(--action-primary-hover);
  --gold-pale:    var(--red-100);
  --gray-warm:    var(--surface-alt);
  --gray-mid:     var(--text-muted);
  --gray-text:    var(--text-body);
  --text-dark:    var(--text-heading);
  --font-serif:   var(--font-display);
  --font-sans:    var(--font-display);
  --transition:   var(--transition-control);
  --container:    var(--container-max);
}

    /* ============================================================
       RESET
    ============================================================ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    html {
      scroll-behavior: smooth;
      font-size: 16px;
      -webkit-text-size-adjust: 100%;
    }

    body {
      font-family: var(--font-body);
      background: var(--surface-page);
      color: var(--text-body);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow-x: hidden;
      min-height: 100vh;
    }

    img, svg { display: block; max-width: 100%; }
    a { color: inherit; text-decoration: none; }
    ul { list-style: none; }
    button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

    ::selection { background: var(--accent); color: var(--bg); }

    /* ============================================================
       HIDE LEGACY DECORATIVE ELEMENTS
       (guilloche pattern, hero-right ornate stamp, floating badges)
    ============================================================ */
    .guilloche-bg { display: none !important; }
    .hero-right { display: none !important; }
    .stamp-container, .stamp-shimmer, .stamp-svg { display: none !important; }
    .hero-badge { display: none !important; }

    /* ============================================================
       LAYOUT — container & section padding
    ============================================================ */
    .container {
      width: 100%;
      max-width: var(--container);
      padding: 0 1.5rem;
      margin: 0 auto;
    }

    .section-pad {
      padding: 6.5rem 0;
      position: relative;
    }
    @media (max-width: 768px) {
      .section-pad { padding: 4.5rem 0; }
    }

    .section-header-center {
      text-align: center;
      max-width: 720px;
      margin: 0 auto 4rem;
    }

    /* ============================================================
       TYPOGRAPHY
    ============================================================ */
    h1, h2, h3, h4 {
      font-family: var(--font-sans);
      font-weight: 500;
      line-height: 1.1;
      letter-spacing: -0.025em;
      color: var(--text);
    }

    .section-label {
      display: inline-block;
      font-family: var(--font-mono);
      font-size: 0.8125rem;
      font-weight: 400;
      letter-spacing: 0;
      text-transform: lowercase;
      color: var(--accent);
      margin-bottom: 1.25rem;
    }
    .section-label::before { content: "// "; color: var(--text-dim); }

    .section-title {
      font-family: var(--font-sans);
      font-size: clamp(2rem, 4.8vw, 3.25rem);
      font-weight: 500;
      letter-spacing: -0.035em;
      margin-bottom: 1rem;
      color: var(--text);
    }
    .section-title.light { color: var(--text); }

    .section-subtitle {
      font-family: var(--font-sans);
      font-size: 1.0625rem;
      color: var(--text-mid);
      max-width: 580px;
      line-height: 1.65;
      margin: 0 auto;
    }
    .section-subtitle.light { color: var(--text-mid); }

    /* ============================================================
       BUTTONS
    ============================================================ */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.875rem 1.5rem;
      border-radius: 999px;
      font-family: var(--font-sans);
      font-size: 0.9375rem;
      font-weight: 500;
      letter-spacing: -0.005em;
      transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
      cursor: pointer;
      white-space: nowrap;
      border: 1px solid transparent;
    }
    .btn-primary {
      background: var(--accent);
      color: var(--bg);
      border-color: var(--accent);
    }
    .btn-primary:hover {
      background: var(--accent-hover);
      border-color: var(--accent-hover);
      transform: translateY(-1px);
    }
    .btn-outline {
      background: transparent;
      color: var(--text);
      border-color: var(--border-strong);
    }
    .btn-outline:hover {
      border-color: var(--border-strong);
      background: var(--surface-tint);
    }
    .btn-nav {
      display: inline-flex;
      align-items: center;
      padding: 0.5rem 1.125rem;
      border: 1px solid var(--border-strong);
      border-radius: 999px;
      font-family: var(--font-sans);
      font-size: 0.875rem;
      font-weight: 500;
      color: var(--text);
      transition: all var(--transition);
    }
    .btn-nav:hover {
      background: var(--accent);
      color: var(--bg);
      border-color: var(--accent);
    }

    /* ============================================================
       NAVBAR
    ============================================================ */
    #navbar {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      background: rgba(255,255,255,0.92);
      backdrop-filter: blur(16px) saturate(180%);
      -webkit-backdrop-filter: blur(16px) saturate(180%);
      border-bottom: 1px solid transparent;
      transition: border-color var(--transition), background var(--transition);
    }
    #navbar.scrolled {
      border-bottom-color: var(--border);
      background: rgba(255,255,255,0.98);
    }
    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 64px;
      gap: 2rem;
    }
    .nav-logo {
      font-family: var(--font-sans);
      font-weight: 600;
      font-size: 1.0625rem;
      letter-spacing: -0.025em;
      color: var(--text);
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }
    .nav-logo span {
      color: var(--accent);
      font-weight: 400;
    }
    /* Symbol icon — navbar */
    .nav-symbol { display: block; width: 36px; height: 36px; flex-shrink: 0; }
    .nav-symbol--dark { display: none; }
    [data-theme="dark"] .nav-symbol--light { display: none; }
    [data-theme="dark"] .nav-symbol--dark  { display: block; }
    /* Horizontal logo — footer */
    .footer-logo-wrap { line-height: 0; }
    .footer-logo { display: block; max-width: 100%; height: auto; }
    .footer-logo--dark { display: none; }
    [data-theme="dark"] .footer-logo--light { display: none; }
    [data-theme="dark"] .footer-logo--dark  { display: block; }
    .nav-links {
      display: flex;
      gap: 1.25rem;
      align-items: center;
    }
    .nav-links a {
      font-size: 0.875rem;
      color: var(--text-mid);
      transition: color var(--transition);
    }
    .nav-links a:hover { color: var(--text); }

    .nav-right { display: flex; align-items: center; gap: 1rem; }

    .lang-toggle {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: var(--text-dim);
    }
    .lang-toggle button {
      color: var(--text-dim);
      transition: color var(--transition);
      padding: 0.125rem 0.25rem;
      font-family: inherit;
      font-size: inherit;
    }
    .lang-toggle button.active { color: var(--accent); }
    .lang-toggle button:hover { color: var(--text); }
    .lang-toggle span { color: var(--border-strong); }

    .hamburger {
      display: none;
      width: 32px; height: 32px;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      padding: 0;
    }
    .hamburger span {
      display: block;
      height: 1.5px;
      width: 22px;
      background: var(--text);
      transition: transform var(--transition), opacity var(--transition);
      margin: 0 auto;
      border-radius: 1px;
    }
    .hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

    .mobile-nav {
      position: fixed;
      inset: 64px 0 0 0;
      background: var(--bg);
      padding: 2.5rem 1.5rem;
      z-index: 99;
      transform: translateX(100%);
      transition: transform var(--transition);
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
      border-top: 1px solid var(--border);
    }
    .mobile-nav.open { transform: translateX(0); }
    .mobile-nav-link {
      font-size: 1.625rem;
      font-weight: 500;
      letter-spacing: -0.025em;
      color: var(--text);
    }
    .mobile-nav-link:hover { color: var(--accent); }

    @media (max-width: 1100px) {
      .nav-links, .nav-right { display: none; }
      .hamburger { display: flex; }
    }
    .nav-links a { font-size: 0.8125rem; }

    /* ============================================================
       HERO — single-column, big type
    ============================================================ */
    #hero {
      padding: 9rem 0 6rem;
      position: relative;
    }
    .hero-grid {
      display: block;
      width: 100%;
      max-width: var(--container);
      padding: 0 1.5rem;
      margin: 0 auto;
    }
    .hero-left {
      max-width: 880px;
      position: relative;
      z-index: 1;
      padding: 0;
      background: none;
    }
    .hero-eyebrow {
      font-family: var(--font-mono);
      font-size: 0.8125rem;
      font-weight: 400;
      letter-spacing: 0;
      color: var(--accent);
      margin-bottom: 1.5rem;
      text-transform: lowercase;
    }
    .hero-eyebrow::before { content: "// "; color: var(--text-dim); }
    .hero-title {
      font-family: var(--font-sans);
      font-size: clamp(2.5rem, 7vw, 5.5rem);
      font-weight: 500;
      letter-spacing: -0.045em;
      line-height: 1;
      margin-bottom: 1.75rem;
      color: var(--text);
      max-width: 18ch;
    }
    .hero-title em {
      font-style: normal;
      color: var(--accent);
      font-weight: 500;
    }
    .hero-subtitle {
      font-size: 1.125rem;
      color: var(--text-mid);
      max-width: 580px;
      line-height: 1.6;
      margin-bottom: 2.5rem;
    }
    .hero-ctas {
      display: flex;
      gap: 0.75rem;
      flex-wrap: wrap;
    }
    @media (max-width: 600px) {
      #hero { padding: 7rem 0 4rem; }
    }

    /* ============================================================
       TRUST BAR
    ============================================================ */
    #trust-bar {
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      padding: 1.5rem 0;
    }
    .trust-bar-inner {
      display: flex;
      align-items: center;
      gap: 1.25rem;
      flex-wrap: wrap;
    }
    .trust-bar-label {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      text-transform: lowercase;
      letter-spacing: 0;
      color: var(--text-dim);
      white-space: nowrap;
    }
    .trust-bar-label::before { content: "// "; color: var(--text-dim); }
    .trust-divider { display: none; }
    .trust-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
    .trust-pill {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      padding: 0.375rem 0.75rem;
      background: var(--bg-elev-1);
      border: 1px solid var(--border);
      border-radius: 999px;
      color: var(--text-mid);
      transition: border-color var(--transition);
    }
    .trust-pill:hover { border-color: var(--border-strong); }

    /* ============================================================
       SERVICES — grid with hairline dividers
    ============================================================ */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: var(--border);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      overflow: hidden;
    }
    .service-card {
      background: var(--bg);
      padding: 2rem 1.75rem;
      display: flex;
      flex-direction: column;
      gap: 0.875rem;
      transition: background var(--transition);
    }
    .service-card:hover { background: var(--bg-elev-1); }
    .service-icon {
      width: 38px; height: 38px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--border-strong);
      border-radius: var(--radius-sm);
      margin-bottom: 0.5rem;
    }
    .service-icon svg { stroke: var(--accent); width: 20px; height: 20px; }
    .service-card h3 {
      font-family: var(--font-sans);
      font-size: 1.0625rem;
      font-weight: 500;
      letter-spacing: -0.02em;
    }
    .service-card p {
      font-size: 0.9375rem;
      color: var(--text-mid);
      line-height: 1.6;
      flex: 1;
    }
    .service-tag {
      font-family: var(--font-mono);
      font-size: 0.6875rem;
      text-transform: lowercase;
      letter-spacing: 0;
      color: var(--text-dim);
      padding-top: 0.25rem;
    }
    .service-tag::before { content: "// "; color: var(--text-dim); }

    @media (max-width: 900px) {
      .services-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 600px) {
      .services-grid { grid-template-columns: 1fr; }
    }

    /* ============================================================
       WHY-US
    ============================================================ */
    #why-us { background: var(--bg); }
    .why-us-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
      max-width: 980px;
      margin: 0 auto;
    }
    .why-card {
      padding: 2rem;
      background: var(--bg-elev-1);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      transition: border-color var(--transition);
    }
    .why-card:hover { border-color: var(--border-strong); }
    .why-card-icon {
      font-size: 1.25rem;
      width: 42px; height: 42px;
      display: flex; align-items: center; justify-content: center;
      background: var(--accent-soft);
      border-radius: var(--radius-sm);
      margin-bottom: 0.5rem;
    }
    .why-card h3 {
      font-family: var(--font-sans);
      font-size: 1.125rem;
      font-weight: 500;
      letter-spacing: -0.02em;
    }
    .why-card p {
      font-size: 0.9375rem;
      color: var(--text-mid);
      line-height: 1.6;
    }
    @media (max-width: 700px) {
      .why-us-grid { grid-template-columns: 1fr; }
    }

    /* ============================================================
       PROCESS — vertical timeline w/ hairlines
    ============================================================ */
    .process-timeline {
      display: flex;
      flex-direction: column;
      max-width: 720px;
      margin: 0 auto;
    }
    .process-step {
      display: flex;
      gap: 1.5rem;
      padding: 2rem 0;
      border-bottom: 1px solid var(--border);
      align-items: flex-start;
    }
    .process-step:first-child { padding-top: 0; }
    .process-step:last-child { border-bottom: none; padding-bottom: 0; }
    .process-dot {
      flex-shrink: 0;
      width: 38px; height: 38px;
      display: flex; align-items: center; justify-content: center;
      font-family: var(--font-mono);
      font-size: 0.875rem;
      font-weight: 500;
      color: var(--accent);
      border: 1px solid var(--border-strong);
      border-radius: 999px;
    }
    .process-step h3 {
      font-family: var(--font-sans);
      font-size: 1.125rem;
      font-weight: 500;
      letter-spacing: -0.02em;
      margin-bottom: 0.5rem;
    }
    .process-step p {
      font-size: 0.9375rem;
      color: var(--text-mid);
      line-height: 1.6;
    }

    /* ============================================================
       FAQ
    ============================================================ */
    .faq-container {
      max-width: 760px;
      margin: 0 auto;
      border-top: 1px solid var(--border);
    }
    .faq-item {
      border-bottom: 1px solid var(--border);
    }
    .faq-question {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
      padding: 1.5rem 0;
      text-align: left;
      font-family: var(--font-sans);
      font-size: 1.0625rem;
      font-weight: 500;
      color: var(--text);
      letter-spacing: -0.015em;
      transition: color var(--transition);
      cursor: pointer;
    }
    .faq-question:hover { color: var(--accent); }
    .faq-icon {
      width: 20px; height: 20px;
      flex-shrink: 0;
      color: var(--text-dim);
      transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), color var(--transition);
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .faq-icon svg { width: 16px; height: 16px; }
    .faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent); }
    .faq-answer {
      display: grid;
      grid-template-rows: 0fr;
      transition: grid-template-rows 300ms ease;
    }
    .faq-answer > p {
      overflow: hidden;
      font-size: 0.9375rem;
      color: var(--text-mid);
      line-height: 1.7;
    }
    .faq-item.open .faq-answer { grid-template-rows: 1fr; }
    .faq-item.open .faq-answer > p { padding-bottom: 1.5rem; }

    /* ============================================================
       CONTACT
    ============================================================ */
    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1.2fr;
      gap: 4rem;
      align-items: start;
    }
    .contact-quote {
      font-family: var(--font-sans);
      font-size: 1.5rem;
      font-weight: 400;
      font-style: normal;
      color: var(--text);
      letter-spacing: -0.02em;
      line-height: 1.3;
      padding-left: 1rem;
      border-left: 2px solid var(--accent);
      margin-bottom: 2.5rem;
    }
    .contact-details {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }
    .contact-detail {
      display: flex;
      gap: 0.875rem;
      align-items: flex-start;
    }
    .contact-detail-icon {
      font-size: 1.125rem;
      width: 28px;
      flex-shrink: 0;
      filter: grayscale(0.3);
      opacity: 0.85;
    }
    .contact-detail strong {
      display: block;
      font-family: var(--font-mono);
      font-size: 0.75rem;
      text-transform: lowercase;
      letter-spacing: 0;
      color: var(--text-dim);
      font-weight: 400;
      margin-bottom: 0.25rem;
    }
    .contact-detail strong::before { content: "// "; color: var(--text-dim); }
    .contact-detail > div {
      color: var(--text-mid);
      font-size: 0.9375rem;
      line-height: 1.55;
    }
    .contact-detail a {
      color: var(--text-mid) !important;
      text-decoration: underline !important;
      text-decoration-color: var(--accent-soft) !important;
      text-underline-offset: 3px;
      text-decoration-thickness: 1px;
      transition: color var(--transition), text-decoration-color var(--transition);
    }
    .contact-detail a:hover {
      color: var(--accent) !important;
      text-decoration-color: var(--accent) !important;
    }

    .contact-form {
      background: var(--bg-elev-1);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 2rem;
      position: relative;
    }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    .form-group { margin-bottom: 1.25rem; }
    .form-group label {
      display: block;
      font-family: var(--font-mono);
      font-size: 0.75rem;
      text-transform: lowercase;
      letter-spacing: 0;
      color: var(--text-dim);
      margin-bottom: 0.5rem;
      font-weight: 400;
    }
    .form-group label::before { content: "// "; color: var(--text-dim); }
    .form-group input,
    .form-group select,
    .form-group textarea {
      width: 100%;
      padding: 0.75rem 1rem;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      color: var(--text);
      font-family: var(--font-sans);
      font-size: 0.9375rem;
      transition: border-color var(--transition);
    }
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
      outline: none;
      border-color: var(--accent);
    }
    .form-group textarea {
      min-height: 120px;
      resize: vertical;
      line-height: 1.5;
    }
    .form-group ::placeholder { color: var(--text-dim); }
    .form-group select option { background: var(--bg-elev-2); color: var(--text); }

    .form-success {
      display: none;
      text-align: center;
      padding: 2rem;
      color: var(--text);
      font-size: 0.9375rem;
    }
    .form-success.visible { display: block; }
    #contactForm button[type="submit"] svg { stroke: currentColor; }

    @media (max-width: 900px) {
      .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
      .form-row { grid-template-columns: 1fr; }
    }

    /* ============================================================
       FOOTER
    ============================================================ */
    #footer {
      border-top: 1px solid var(--border);
      padding: 4rem 0 2rem;
      background: var(--bg);
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 1.5fr 1fr 1fr;
      gap: 3rem;
      margin-bottom: 3rem;
    }
    .footer-brand { max-width: 360px; }
    .footer-brand .nav-logo {
      display: block;
      margin-bottom: 1rem;
      font-size: 1.125rem;
    }
    .footer-tagline {
      color: var(--text-mid);
      font-style: italic;
      margin-bottom: 1rem;
      font-size: 0.9375rem;
    }
    .footer-brand p {
      color: var(--text-dim);
      font-size: 0.875rem;
      line-height: 1.6;
    }
    .footer-col h4 {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      text-transform: lowercase;
      letter-spacing: 0;
      color: var(--text-dim);
      font-weight: 400;
      margin-bottom: 1rem;
    }
    .footer-col h4::before { content: "// "; color: var(--text-dim); }
    .footer-links {
      display: flex;
      flex-direction: column;
      gap: 0.625rem;
    }
    .footer-links a {
      font-size: 0.9375rem;
      color: var(--text-mid);
      transition: color var(--transition);
    }
    .footer-links a:hover { color: var(--accent); }

    .social-links {
      display: flex;
      gap: 0.5rem;
      margin-top: 1.5rem;
    }
    .social-link {
      width: 36px; height: 36px;
      display: flex; align-items: center; justify-content: center;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      transition: all var(--transition);
    }
    .social-link:hover {
      border-color: var(--accent);
      background: var(--accent-soft);
    }
    .social-link svg {
      width: 16px; height: 16px;
      fill: var(--text-mid) !important;
      transition: fill var(--transition);
    }
    .social-link:hover svg { fill: var(--accent) !important; }

    .footer-bottom {
      padding-top: 2rem;
      border-top: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
    }
    .footer-legal, .footer-copyright {
      font-size: 0.8125rem;
      color: var(--text-dim);
      line-height: 1.6;
    }

    @media (max-width: 800px) {
      .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
      .footer-bottom { flex-direction: column; align-items: flex-start; }
    }

    /* ============================================================
       WHATSAPP FLOAT
    ============================================================ */
    .whatsapp-float {
      position: fixed;
      bottom: 1.5rem;
      right: 1.5rem;
      width: 52px; height: 52px;
      border-radius: 50%;
      background: var(--whatsapp);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: var(--shadow-md);
      z-index: 50;
      transition: transform var(--transition), box-shadow var(--transition);
    }
    .whatsapp-float svg {
      width: 26px; height: 26px;
      fill: #ffffff !important;
    }
    .whatsapp-float:hover {
      transform: scale(1.06);
      box-shadow: 0 12px 40px rgba(18,146,92,0.30);
    }

    /* ============================================================
       FADE-IN ANIMATIONS
    ============================================================ */
    .fade-in, .fade-in-left, .fade-in-right {
      opacity: 0;
      transition: opacity 600ms ease, transform 600ms ease;
      will-change: opacity, transform;
    }
    .fade-in { transform: translateY(12px); }
    .fade-in-left { transform: translateX(-12px); }
    .fade-in-right { transform: translateX(12px); }
    .fade-in.visible,
    .fade-in-left.visible,
    .fade-in-right.visible {
      opacity: 1;
      transform: none;
    }
    .delay-1.visible { transition-delay: 60ms; }
    .delay-2.visible { transition-delay: 120ms; }
    .delay-3.visible { transition-delay: 180ms; }
    .delay-4.visible { transition-delay: 240ms; }
    .delay-5.visible { transition-delay: 300ms; }
    .delay-6.visible { transition-delay: 360ms; }

    @media (prefers-reduced-motion: reduce) {
      .fade-in, .fade-in-left, .fade-in-right {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
      }
      html { scroll-behavior: auto; }
    }

    /* ============================================================
       STATS SECTION (en cifras)
    ============================================================ */
    #stats { padding: 4rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1px;
      background: var(--border);
    }
    .stat-tile {
      background: var(--bg);
      padding: 2rem 1.5rem;
      text-align: left;
    }
    .stat-tile .stat-num {
      font-family: var(--font-sans);
      font-size: clamp(2.25rem, 4.5vw, 3.5rem);
      font-weight: 500;
      letter-spacing: -0.04em;
      line-height: 1;
      color: var(--accent);
      margin-bottom: 0.5rem;
    }
    .stat-tile .stat-label {
      font-family: var(--font-mono);
      font-size: 0.8125rem;
      color: var(--text-mid);
      letter-spacing: 0;
      text-transform: lowercase;
      line-height: 1.4;
    }
    .stat-tile .stat-label::before { content: "// "; color: var(--text-dim); }
    @media (max-width: 700px) {
      .stats-grid { grid-template-columns: repeat(2, 1fr); }
    }

    /* ============================================================
       SUB-PAGE HERO (smaller than home hero)
    ============================================================ */
    .sub-hero {
      padding: 8rem 0 4rem;
      border-bottom: 1px solid var(--border);
    }
    .sub-hero .container { position: relative; z-index: 1; }
    .sub-hero h1 {
      font-family: var(--font-sans);
      font-size: clamp(2.25rem, 5.5vw, 4rem);
      font-weight: 500;
      letter-spacing: -0.04em;
      line-height: 1.05;
      max-width: 22ch;
      margin-bottom: 1.5rem;
    }
    .sub-hero h1 em {
      font-style: normal;
      color: var(--accent);
    }
    .sub-hero .lede {
      font-size: 1.125rem;
      color: var(--text-mid);
      max-width: 640px;
      line-height: 1.6;
    }

    /* ============================================================
       BREADCRUMB
    ============================================================ */
    .breadcrumb {
      display: flex;
      gap: 0.5rem;
      align-items: center;
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: var(--text-dim);
      margin-bottom: 1.5rem;
      letter-spacing: 0;
      text-transform: lowercase;
    }
    .breadcrumb a {
      color: var(--text-mid);
      transition: color var(--transition);
    }
    .breadcrumb a:hover { color: var(--accent); }
    .breadcrumb span.sep { color: var(--text-dim); }
    .breadcrumb span.current { color: var(--accent); }

    /* ============================================================
       PROSE / LONG-FORM CONTENT
    ============================================================ */
    .prose {
      max-width: 760px;
      margin: 0 auto;
    }
    .prose h2 {
      font-family: var(--font-sans);
      font-size: clamp(1.5rem, 3vw, 2rem);
      font-weight: 500;
      letter-spacing: -0.03em;
      margin: 3.5rem 0 1rem;
      color: var(--text);
    }
    .prose h2:first-child { margin-top: 0; }
    .prose h3 {
      font-family: var(--font-sans);
      font-size: 1.25rem;
      font-weight: 500;
      letter-spacing: -0.02em;
      margin: 2.5rem 0 0.75rem;
      color: var(--text);
    }
    .prose p {
      font-size: 1rem;
      color: var(--text-mid);
      line-height: 1.7;
      margin-bottom: 1.25rem;
    }
    .prose strong { color: var(--text); font-weight: 500; }
    .prose em { font-style: italic; color: var(--text); }
    .prose a {
      color: var(--accent);
      text-decoration: underline;
      text-decoration-color: var(--accent-soft);
      text-underline-offset: 3px;
      transition: text-decoration-color var(--transition);
    }
    .prose a:hover { text-decoration-color: var(--accent); }
    .prose ul, .prose ol {
      list-style: none;
      padding-left: 0;
      margin-bottom: 1.5rem;
    }
    .prose ul li, .prose ol li {
      font-size: 1rem;
      color: var(--text-mid);
      line-height: 1.65;
      padding-left: 1.5rem;
      position: relative;
      margin-bottom: 0.625rem;
    }
    .prose ul li::before {
      content: "▸";
      position: absolute;
      left: 0;
      color: var(--accent);
      font-size: 0.875rem;
      top: 0.15rem;
    }
    .prose ol { counter-reset: item; }
    .prose ol li::before {
      counter-increment: item;
      content: counter(item) ".";
      position: absolute;
      left: 0;
      color: var(--accent);
      font-family: var(--font-mono);
      font-size: 0.875rem;
      top: 0.05rem;
    }
    .prose blockquote {
      border-left: 2px solid var(--accent);
      padding: 0.5rem 0 0.5rem 1.25rem;
      margin: 1.5rem 0;
      color: var(--text);
      font-size: 1.0625rem;
      font-style: italic;
      line-height: 1.55;
    }
    .prose hr {
      border: none;
      border-top: 1px solid var(--border);
      margin: 3rem 0;
    }

    /* CALLOUT (info/warning boxes inside prose) */
    .callout {
      background: var(--bg-elev-1);
      border: 1px solid var(--border);
      border-left: 3px solid var(--accent);
      padding: 1.25rem 1.5rem;
      border-radius: var(--radius-md);
      margin: 1.5rem 0;
    }
    .callout-label {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      text-transform: lowercase;
      color: var(--accent);
      margin-bottom: 0.5rem;
    }
    .callout-label::before { content: "// "; color: var(--text-dim); }
    .callout p { margin-bottom: 0; color: var(--text-mid); }
    .callout p + p { margin-top: 0.75rem; }

    /* ============================================================
       DOCUMENT CATALOG (used in /documentos.html)
    ============================================================ */
    .doc-categories {
      display: flex;
      flex-direction: column;
      gap: 3rem;
    }
    .doc-category h2 {
      font-family: var(--font-sans);
      font-size: 1.5rem;
      font-weight: 500;
      letter-spacing: -0.02em;
      margin-bottom: 0.5rem;
    }
    .doc-category .doc-cat-issuer {
      font-family: var(--font-mono);
      font-size: 0.8125rem;
      color: var(--accent);
      margin-bottom: 1.5rem;
    }
    .doc-category .doc-cat-issuer::before { content: "// emisor: "; color: var(--text-dim); }
    .doc-list {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1px;
      background: var(--border);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      overflow: hidden;
    }
    .doc-item {
      background: var(--bg);
      padding: 1.25rem 1.5rem;
      transition: background var(--transition);
    }
    .doc-item:hover { background: var(--bg-elev-1); }
    .doc-item-name {
      font-family: var(--font-sans);
      font-weight: 500;
      font-size: 0.9375rem;
      color: var(--text);
      margin-bottom: 0.25rem;
      letter-spacing: -0.01em;
    }
    .doc-item-desc {
      font-size: 0.8125rem;
      color: var(--text-dim);
      line-height: 1.5;
    }
    @media (max-width: 700px) {
      .doc-list { grid-template-columns: 1fr; }
    }

    /* ============================================================
       CTA BAR (full-width, end of subpage)
    ============================================================ */
    .cta-bar {
      padding: 5rem 0;
      border-top: 1px solid var(--border);
      text-align: center;
    }
    .cta-bar h2 {
      font-family: var(--font-sans);
      font-size: clamp(1.75rem, 3.5vw, 2.5rem);
      font-weight: 500;
      letter-spacing: -0.03em;
      margin-bottom: 1rem;
      max-width: 18ch;
      margin-left: auto;
      margin-right: auto;
    }
    .cta-bar h2 em { font-style: normal; color: var(--accent); }
    .cta-bar p {
      font-size: 1.0625rem;
      color: var(--text-mid);
      max-width: 540px;
      margin: 0 auto 2rem;
      line-height: 1.6;
    }
    .cta-bar .cta-actions {
      display: flex;
      gap: 0.75rem;
      justify-content: center;
      flex-wrap: wrap;
    }

    /* ============================================================
       TWO-COL CARD GRID (for landing pages)
    ============================================================ */
    .feature-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
    }
    .feature-card {
      padding: 1.75rem;
      background: var(--bg-elev-1);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
    }
    .feature-card h3 {
      font-size: 1.0625rem;
      font-weight: 500;
      letter-spacing: -0.02em;
      margin-bottom: 0.75rem;
    }
    .feature-card p {
      font-size: 0.9375rem;
      color: var(--text-mid);
      line-height: 1.6;
    }
    @media (max-width: 700px) {
      .feature-grid { grid-template-columns: 1fr; }
    }

    /* ============================================================
       FOOTER COVERAGE (city quick-links)
    ============================================================ */
    .footer-coverage {
      padding: 2rem 0;
      margin-bottom: 0;
      border-top: 1px solid var(--border);
    }
    .footer-coverage h4 {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      text-transform: lowercase;
      letter-spacing: 0;
      color: var(--text-dim);
      font-weight: 400;
      margin-bottom: 1rem;
    }
    .footer-coverage h4::before { content: "// "; color: var(--text-dim); }
    .coverage-group {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.75rem;
    }
    .coverage-group:last-child { margin-bottom: 0; }
    .coverage-label {
      font-family: var(--font-mono);
      font-size: 0.6875rem;
      text-transform: lowercase;
      color: var(--text-dim);
      letter-spacing: 0;
      min-width: 70px;
    }
    .coverage-pill {
      display: inline-block;
      font-family: var(--font-mono);
      font-size: 0.75rem;
      padding: 0.3rem 0.7rem;
      background: var(--bg-elev-1);
      border: 1px solid var(--border);
      border-radius: 999px;
      color: var(--text-mid);
      transition: all var(--transition);
    }
    .coverage-pill:hover {
      border-color: var(--accent);
      color: var(--accent);
    }
    @media (max-width: 600px) {
      .coverage-label { min-width: 100%; margin-bottom: 0.25rem; }
    }

    /* ============================================================
       DROPDOWN NAV (Apostilla en el extranjero)
    ============================================================ */
    .nav-dropdown {
      position: relative;
    }
    .nav-dropdown-toggle {
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
    }
    .nav-dropdown-toggle .caret {
      font-size: 0.7rem;
      color: var(--text-dim);
      transition: transform var(--transition), color var(--transition);
    }
    .nav-dropdown:hover .nav-dropdown-toggle,
    .nav-dropdown:focus-within .nav-dropdown-toggle {
      color: var(--text);
    }
    .nav-dropdown:hover .nav-dropdown-toggle .caret,
    .nav-dropdown:focus-within .nav-dropdown-toggle .caret {
      transform: rotate(180deg);
      color: var(--accent);
    }
    .nav-submenu {
      display: none;
      position: absolute;
      top: calc(100% + 0.5rem);
      left: -0.75rem;
      background: var(--bg-elev-2);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 0.5rem 0;
      min-width: 240px;
      list-style: none;
      z-index: 200;
      margin: 0;
      box-shadow: var(--shadow-lg);
    }
    .nav-dropdown:hover > .nav-submenu,
    .nav-dropdown:focus-within > .nav-submenu {
      display: block;
    }
    .nav-submenu::before {
      /* invisible bridge so cursor can move from toggle to submenu */
      content: "";
      position: absolute;
      top: -0.5rem;
      left: 0;
      right: 0;
      height: 0.5rem;
    }
    .nav-submenu-item {
      position: relative;
      list-style: none;
    }
    .nav-submenu-item > a {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.55rem 1.25rem;
      font-size: 0.875rem;
      color: var(--text-mid);
      white-space: nowrap;
      transition: background var(--transition), color var(--transition);
      text-decoration: none;
    }
    .nav-submenu-item > a:hover {
      background: var(--bg-elev-1);
      color: var(--text);
    }
    .nav-submenu-item.has-submenu > a::after {
      content: "▸";
      color: var(--text-dim);
      font-size: 0.65rem;
      margin-left: 1rem;
    }
    .nav-submenu-item:hover.has-submenu > a::after,
    .nav-submenu-item:focus-within.has-submenu > a::after {
      color: var(--accent);
    }
    .nav-subsubmenu {
      display: none;
      position: absolute;
      top: -0.5rem;
      left: 100%;
      background: var(--bg-elev-2);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 0.5rem 0;
      min-width: 200px;
      list-style: none;
      z-index: 201;
      margin: 0 0 0 0.25rem;
      box-shadow: var(--shadow-lg);
    }
    .nav-submenu-item:hover > .nav-subsubmenu,
    .nav-submenu-item:focus-within > .nav-subsubmenu {
      display: block;
    }
    .nav-subsubmenu li { list-style: none; }
    .nav-subsubmenu a {
      display: block;
      padding: 0.45rem 1.25rem;
      font-size: 0.8125rem;
      color: var(--text-mid);
      white-space: nowrap;
      transition: background var(--transition), color var(--transition);
      text-decoration: none;
    }
    .nav-subsubmenu a:hover {
      background: var(--bg-elev-1);
      color: var(--accent);
    }

    /* ============================================================
       MOBILE NAV ACCORDION (for dropdown in mobile drawer)
    ============================================================ */
    .mobile-nav-group {
      display: flex;
      flex-direction: column;
      width: 100%;
    }
    .mobile-nav-group-toggle {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      padding: 0;
      background: none;
      border: none;
      cursor: pointer;
      font-family: inherit;
      font-size: 1.625rem;
      font-weight: 500;
      letter-spacing: -0.025em;
      color: var(--text);
      text-align: left;
    }
    .mobile-nav-group-toggle .caret {
      font-size: 1rem;
      color: var(--text-dim);
      transition: transform var(--transition);
    }
    .mobile-nav-group-toggle[aria-expanded="true"] .caret {
      transform: rotate(180deg);
      color: var(--accent);
    }
    .mobile-nav-group-content {
      display: none;
      flex-direction: column;
      gap: 0.75rem;
      margin: 1rem 0 0.5rem 0;
      padding-left: 1rem;
      border-left: 1px solid var(--border);
    }
    .mobile-nav-group[data-open="true"] .mobile-nav-group-content {
      display: flex;
    }
    .mobile-nav-subgroup {
      display: flex;
      flex-direction: column;
    }
    .mobile-nav-subgroup-toggle {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      padding: 0.25rem 0;
      background: none;
      border: none;
      cursor: pointer;
      font-family: inherit;
      font-size: 1.125rem;
      font-weight: 500;
      color: var(--text-mid);
      text-align: left;
    }
    .mobile-nav-subgroup-toggle .caret {
      font-size: 0.8125rem;
      color: var(--text-dim);
      transition: transform var(--transition);
    }
    .mobile-nav-subgroup-toggle[aria-expanded="true"] {
      color: var(--text);
    }
    .mobile-nav-subgroup-toggle[aria-expanded="true"] .caret {
      transform: rotate(180deg);
      color: var(--accent);
    }
    .mobile-nav-subgroup-content {
      display: none;
      flex-direction: column;
      gap: 0.4rem;
      margin: 0.5rem 0 0.5rem 0.5rem;
      padding-left: 0.75rem;
      border-left: 1px solid var(--border);
    }
    .mobile-nav-subgroup[data-open="true"] .mobile-nav-subgroup-content {
      display: flex;
    }
    .mobile-nav-sublink {
      font-size: 1rem;
      color: var(--text-mid);
      padding: 0.25rem 0;
      transition: color var(--transition);
    }
    .mobile-nav-sublink:hover { color: var(--accent); }
    .mobile-nav-sublink-solo {
      font-size: 1.125rem;
      font-weight: 500;
      color: var(--text-mid);
      padding: 0.25rem 0;
    }

    /* ============================================================
       TESTIMONIALS SECTION
    ============================================================ */
    .testimonials-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
      max-width: 1100px;
      margin: 0 auto;
    }
    .testimonial-card {
      background: var(--bg-elev-1);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 1.75rem 1.5rem;
      display: flex;
      flex-direction: column;
      transition: border-color var(--transition), transform var(--transition);
    }
    .testimonial-card:hover {
      border-color: var(--border-strong);
      transform: translateY(-2px);
    }
    .testimonial-stars {
      color: var(--accent);
      font-size: 0.9375rem;
      letter-spacing: 0.15em;
      margin-bottom: 1rem;
      line-height: 1;
    }
    .testimonial-quote {
      font-family: var(--font-sans);
      font-size: 0.9375rem;
      color: var(--text);
      line-height: 1.6;
      margin: 0 0 1.5rem;
      padding: 0;
      border: none;
      font-style: normal;
      flex: 1;
      position: relative;
    }
    .testimonial-quote::before {
      content: "\201C";
      color: var(--accent);
      font-family: var(--font-serif);
      font-size: 2rem;
      line-height: 0;
      vertical-align: -0.6rem;
      margin-right: 0.15rem;
      opacity: 0.6;
    }
    .testimonial-quote::after {
      content: "\201D";
      color: var(--accent);
      font-family: var(--font-serif);
      font-size: 2rem;
      line-height: 0;
      vertical-align: -0.6rem;
      margin-left: 0.15rem;
      opacity: 0.6;
    }
    .testimonial-author {
      margin-top: auto;
      padding-top: 1rem;
      border-top: 1px solid var(--border);
    }
    .testimonial-author strong {
      display: block;
      color: var(--text);
      font-weight: 500;
      font-size: 0.9375rem;
      letter-spacing: -0.01em;
      margin-bottom: 0.25rem;
    }
    .testimonial-author span {
      color: var(--text-dim);
      font-family: var(--font-mono);
      font-size: 0.7rem;
      letter-spacing: 0;
      text-transform: lowercase;
    }
    .testimonial-author span::before { content: "// "; color: var(--text-dim); }
    .testimonials-disclaimer {
      max-width: 760px;
      margin: 3rem auto 0;
      text-align: center;
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: var(--text-dim);
      line-height: 1.5;
    }
    @media (max-width: 900px) {
      .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 600px) {
      .testimonials-grid { grid-template-columns: 1fr; }
    }

/* ============================================================
   UTILITY CLASSES — inline-style replacements (FASE 0)
   Estas clases reemplazan atributos style="" repetidos en el
   HTML. Sin cambio visual; valores copiados literalmente.
============================================================ */

/* Mobile nav CTA wrapper — patrón A1, 41 páginas */
.mn-cta { margin-top: 1.5rem; }

/* Footer legal — nombre empresa — patrón B, 41 páginas */
.footer-company { color: var(--text-muted); }

/* Narrow centered container — patrones K, R, 38 páginas */
.narrow-centered { max-width: 760px; margin: 0 auto; }

/* Prose con margen superior — patrón L, 26 páginas */
.prose--spaced { margin-top: 3rem; }

/* Container con z-index — patrones D+E, 5× index.html */
.container-raised { position: relative; z-index: 1; }

/* Section-header-center del contacto — patrón F, 1× index.html */
.shc-contact { margin-bottom: 3.5rem; }

/* Ícono del estado de éxito del formulario — patrón G, 1× index.html */
.form-success-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }

/* Disclaimer de privacidad bajo el formulario — patrón I, 1× index.html */
.form-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  text-align: center;
}

/* SVG <defs> invisible — patrón M, 1× index.html */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Nota al pie de tabla — patrón N, 1× courier-internacional.html */
.table-note { font-size: 0.875rem; color: var(--text-dim); }

/* Callout centrado y estrecho — patrón O, 1× documentos.html */
.callout--narrow { max-width: 760px; margin: 0 auto 4rem; }

/* Párrafo de body suelto (fuera de .prose) — patrón P, 1× documentos.html */
.prose-p {
  font-size: 0.9375rem;
  color: var(--text-mid);
  max-width: 760px;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

/* Separador hr centrado y estrecho — patrón Q, 1× documentos.html */
.hr-narrow {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 760px;
  margin: 5rem auto 4rem;
}

/* Asterisco requerido en labels — patrón C, 4× index.html */
.required { color: var(--accent); }

/* ============================================================
   DARK THEME — [data-theme="dark"] on <html>
   Token values from peruapostilla.css §1b; same variable names
   as :root so every component rule resolves without changes.
============================================================ */
[data-theme="dark"] {

  /* navy ramp — roles inverted: 900 = lightest tint */
  --navy-900: #dbe6f4;
  --navy-800: #c3d3e8;
  --navy-700: #a9c2dd;
  --navy-600: #8ba9cb;
  --navy-500: #6e8fb5;
  --navy-400: #4f7099;
  --navy-300: #37547a;
  --navy-200: #24384f;
  --navy-100: #16263f;
  --navy-050: #101d33;

  /* red — brightened one step for dark fields */
  --red-700: #ff9aa5;
  --red-600: #ff6b7d;
  --red-500: #cc1128;
  --red-300: #e01631;
  --red-100: #331119;

  /* sky accent — unchanged */
  --sky-400: #9fd3f2;
  --sky-200: #6fb4dd;

  /* neutrals — inverted */
  --white:    #0a1322;
  --gray-050: #060c17;
  --gray-100: #16263f;
  --gray-200: #26364f;
  --gray-400: #93a4bb;
  --gray-600: #bccbdd;
  --gray-800: #eff4fa;
  --black:    #ffffff;

  /* surfaces */
  --surface-page: #0a1322;
  --surface-alt: #060c17;
  --surface-card: #101d33;
  --surface-tint: #16263f;
  --surface-seal: #1b2942;
  --surface-inverse: #16263f;
  --surface-inverse-deep: #060c17;

  /* text */
  --text-heading: #eff4fa;
  --text-body: #bccbdd;
  --text-strong: #ffffff;
  --text-muted: #93a4bb;
  --text-accent: #ff6b7d;
  --text-on-inverse: #eff4fa;
  --text-on-inverse-soft: #bccbdd;
  --text-link: #ff6b7d;
  --text-link-hover: #ff9aa5;

  /* action */
  --action-primary: #cc1128;
  --action-primary-hover: #e01631;
  --action-secondary: #1d5296;
  --action-secondary-hover: #2a63ab;
  --action-quiet-bg: #16263f;
  --focus-ring: #9fd3f2;
  --focus-ring-shadow: 0 0 0 3px rgba(159, 211, 242, .38);

  /* lines */
  --border-subtle: #26364f;
  --border-strong: #5f789e;
  --border-inverse: rgba(255, 255, 255, .14);
  --rule-accent: #ff6b7d;

  /* status */
  --status-success: #5fd39b;
  --status-success-bg: #0e2a1f;
  --status-warning: #f2b45c;
  --status-warning-bg: #2a1e08;
  --status-error: #ff8a95;
  --status-error-bg: #2b0d12;

  /* WhatsApp */
  --whatsapp: #0d7a4b;
  --whatsapp-hover: #109059;

  /* shadows — deeper on dark fields */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .45);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, .5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .55);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, .62);
  --shadow-inverse: 0 18px 44px rgba(0, 0, 0, .7);
  --shadow-inset-line: inset 0 -1px 0 var(--border-subtle);

  /* background treatments */
  --sheen-navy: radial-gradient(120% 90% at 15% 10%, #16263f, #060c17);
  --overlay-navy: linear-gradient(180deg, rgba(6, 12, 23, .85), rgba(6, 12, 23, .96));

  color-scheme: dark;
}

/* -- Dark-mode component overrides: hardcoded values not covered by the token layer -- */

/* Navbar frosted glass — literal background must flip */
[data-theme="dark"] #navbar { background: rgba(6, 12, 23, 0.92); }
[data-theme="dark"] #navbar.scrolled { background: rgba(6, 12, 23, 0.98); }

/* Primary button text & nav hover — color: var(--bg) = dark surface in dark mode */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-nav:hover { color: #ffffff; }

/* Text selection */
[data-theme="dark"] ::selection { background: var(--navy-200); color: var(--text-heading); }

/* ============================================================
   THEME TOGGLE BUTTON
============================================================ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: none;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Show moon in light mode (click to go dark); sun in dark mode (click to go light) */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }