:root {
        --navy: #003764; --navy-deep: #00294a;
        --red: #ea0029; --red-claro: #ff6f89; --red-dark: #c00021;
        --bg: #f8fafc; --fg: #10213a; --muted: #5b6b80; --border: #e2e8f0;
        --radius: 16px; --shadow: 0 2px 10px rgba(0, 41, 74, 0.08); --shadow-lg: 0 14px 40px rgba(0, 41, 74, 0.14);
        --font-head: "Outfit", "Segoe UI", system-ui, sans-serif;
        --font-body: "Work Sans", system-ui, -apple-system, sans-serif;
      }
      * { box-sizing: border-box; margin: 0; }
      html { scroll-behavior: smooth; }
      html, body { overflow-x: clip; }
      body { font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--fg); background: var(--bg); max-width: 100%; }
      img { max-width: 100%; height: auto; display: block; }
      a { color: inherit; text-decoration: none; }
      h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; }
      .wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

      .btn { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font: 600 15.5px/1 var(--font-head); padding: 15px 28px; border-radius: 999px; border: 0; text-decoration: none; transition: transform 0.2s, background 0.2s, box-shadow 0.2s; }
      .btn svg { width: 18px; height: 18px; }
      .btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(234, 0, 41, 0.35); }
      .btn-red:hover { background: var(--red-dark); transform: translateY(-2px); }
      .btn:focus-visible, a:focus-visible { outline: 3px solid rgba(234, 0, 41, 0.5); outline-offset: 3px; }

      .scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3.5px; z-index: 60; pointer-events: none; }
      .scroll-progress span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--red), #ff5c72); box-shadow: 0 0 10px rgba(234, 0, 41, 0.5); will-change: transform; }

      .nav { position: sticky; top: 0; z-index: 50; background: rgba(248, 250, 252, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); transition: box-shadow 0.25s; }
      .nav.scrolled { box-shadow: 0 6px 24px rgba(0, 41, 74, 0.08); }
      .nav-in { display: flex; align-items: center; gap: 22px; height: 68px; }
      .nav-logo img { height: 34px; width: auto; }
      .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; width: 44px; height: 44px; padding: 10px; background: transparent; border: 0; cursor: pointer; border-radius: 10px; transition: background 0.2s; }
      .nav-toggle:hover { background: rgba(0, 41, 74, 0.06); }
      .nav-toggle span { display: block; height: 2.5px; width: 100%; border-radius: 2px; background: var(--navy); transition: transform 0.28s, opacity 0.2s; }
      .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
      .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
      .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
      .nav-links { display: none; flex-direction: column; gap: 2px; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 10px 20px 22px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
      .nav-links.open { display: flex; }
      .nav-links a { font: 500 16px/1 var(--font-head); color: var(--fg); padding: 15px 4px; border-bottom: 1px solid var(--border); transition: color 0.2s; }
      .nav-links a:hover { color: var(--red); }
      .nav-links-cta { margin-top: 16px; justify-content: center; border-bottom: 0 !important; color: #fff !important; padding: 15px 24px; }
      .nav-cta { display: none; margin-left: auto; padding: 11px 20px; font-size: 14.5px; }
      @media (min-width: 940px) {
        .nav-toggle { display: none; }
        .nav-links { display: flex; flex-direction: row; gap: 26px; margin-left: auto; position: static; background: none; padding: 0; border: 0; box-shadow: none; }
        .nav-links a { padding: 6px 2px; border-bottom: 0; font-size: 15px; }
        .nav-links-cta { display: none; }
        .nav-cta { display: inline-flex; margin-left: 0; }
      }
      @keyframes navDrop { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
      @keyframes navItem { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
      @media (max-width: 939px) {
        .nav-links { text-align: center; padding-top: 14px; padding-bottom: 26px; }
        .nav-links.open { animation: navDrop 0.3s cubic-bezier(0.16, 0.84, 0.44, 1); }
        .nav-links a { justify-content: center; text-align: center; }
        .nav-links.open a { animation: navItem 0.42s cubic-bezier(0.16, 0.84, 0.44, 1) both; }
        .nav-links.open a:nth-child(1) { animation-delay: 0.04s; }
        .nav-links.open a:nth-child(2) { animation-delay: 0.08s; }
        .nav-links.open a:nth-child(3) { animation-delay: 0.12s; }
        .nav-links.open a:nth-child(4) { animation-delay: 0.16s; }
        .nav-links.open a:nth-child(5) { animation-delay: 0.20s; }
        .nav-links.open a:nth-child(6) { animation-delay: 0.24s; }
        .nav-links.open a:nth-child(7) { animation-delay: 0.28s; }
      }

      /* HERO legal */
      .legal-hero { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; position: relative; overflow: hidden; }
      .legal-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.08) 1.3px, transparent 1.3px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(110% 100% at 30% 0%, #000 40%, transparent 82%); mask-image: radial-gradient(110% 100% at 30% 0%, #000 40%, transparent 82%); }
      .legal-hero .wrap { position: relative; z-index: 1; padding: 30px 24px 54px; }
      .back-link { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--font-head); color: rgba(255,255,255,0.72); padding: 14px 0 8px; transition: color 0.2s; }
      .back-link:hover { color: #fff; }
      .back-link svg { width: 16px; height: 16px; }
      .legal-hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: 0.14em; font: 600 12.5px/1 var(--font-head); color: var(--red-claro); margin: 22px 0 16px; }
      .legal-hero .eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--red); border-radius: 2px; }
      .legal-hero h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; letter-spacing: -0.01em; max-width: 820px; }
      .legal-hero .updated { margin-top: 14px; font-size: 14.5px; color: rgba(255,255,255,0.7); }

      /* Contenido legal */
      .legal { background: var(--bg); padding: 56px 0 80px; }
      .legal .doc { max-width: 800px; margin: 0 auto; }
      .legal .lead { font-size: 17.5px; color: var(--muted); }
      .legal h2 { font-size: 20px; color: var(--navy); margin: 40px 0 12px; padding-top: 6px; scroll-margin-top: 84px; }
      .legal h2 .n { color: var(--red); margin-right: 8px; }
      .legal p { margin: 0 0 14px; color: #33435c; }
      .legal ul { margin: 0 0 16px; padding-left: 22px; }
      .legal ol { margin: 0 0 16px; padding-left: 22px; }
      .legal li { margin-bottom: 7px; color: #33435c; }
      .legal a[href^="mailto"] { color: var(--red); font-weight: 600; }
      .legal .mail { display: inline-block; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; font: 600 15.5px/1 var(--font-head); color: var(--navy); margin: 4px 0 16px; box-shadow: var(--shadow); }
      .legal .callout { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--red); border-radius: 12px; padding: 18px 22px; margin: 18px 0; box-shadow: var(--shadow); }
      .legal .callout p:last-child { margin-bottom: 0; }
      .legal .subject { font-weight: 600; color: var(--navy); }
      .legal hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }

      footer.site { background: var(--navy); color: rgba(255,255,255,0.82); padding: 56px 0 0; }
      .foot-grid { display: grid; gap: 34px; grid-template-columns: 1fr; }
      @media (min-width: 760px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
      footer.site img { height: 38px; width: auto; margin-bottom: 14px; background: #fff; padding: 8px 12px; border-radius: 10px; }
      footer.site p { font-size: 15px; }
      footer.site h4 { font: 600 15px/1 var(--font-head); color: #fff; margin-bottom: 10px; }
      footer.site a:hover { color: #fff; }
      .foot-legal { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 44px; padding: 20px 0; }
      .foot-legal .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13.5px; color: rgba(255,255,255,0.6); }

      .to-top { position: fixed; left: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s; }
      .to-top.show { opacity: 1; visibility: visible; transform: none; }
      .to-top:hover { background: var(--red); }
      .to-top svg { width: 22px; height: 22px; }
      @media (prefers-reduced-motion: reduce) { .nav-links.open, .nav-links.open a { animation: none; } html { scroll-behavior: auto; } }

      /* Selector de idioma ES / EN */
      .lang-switch { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: #fff; }
      .lang-switch a { font: 600 12.5px/1 var(--font-head); letter-spacing: 0.03em; text-decoration: none; color: var(--muted); padding: 7px 12px; border-radius: 999px; transition: background 0.2s, color 0.2s; border-bottom: 0 !important; }
      .lang-switch a.active { background: var(--navy); color: #fff; }
      .lang-switch a:hover:not(.active) { color: var(--navy); background: #f1f5f9; }
      @media (max-width: 919px) { .nav-links .lang-switch { align-self: center; margin: 18px auto 0; } }

      /* nav-fix: CTA en una sola línea */
      .btn { white-space: nowrap; }
      .nav-cta { flex: 0 0 auto; white-space: nowrap; }
      @media (min-width: 920px) { .nav-links { gap: 22px; } }
