: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.12; }
      .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-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.45); }
      .btn-ghost:hover { background: rgba(255,255,255,0.22); }
      .btn-shine { position: relative; overflow: hidden; }
      .btn-shine::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%); transform: translateX(-120%); animation: shine 3.2s ease-in-out infinite; }
      @keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
      .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.86); 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, .nav-links a.active { 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; }
      }

      /* HERO */
      .hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--navy-deep), var(--navy) 55%, #00223e); }
      .hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.08) 1.4px, transparent 1.4px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(120% 100% at 20% 0%, #000 45%, transparent 82%); mask-image: radial-gradient(120% 100% at 20% 0%, #000 45%, transparent 82%); }
      .hero::after { content: ""; position: absolute; top: -140px; right: -120px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(234,0,41,0.42), transparent 62%); filter: blur(6px); pointer-events: none; }
      .hero-in { position: relative; z-index: 1; padding: 30px 24px 78px; }
      .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; }
      .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: 26px 0 18px; }
      .eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--red); border-radius: 2px; }
      .hero h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 700; letter-spacing: -0.02em; line-height: 0.98; }
      .hero h1 em { color: var(--red); font-style: normal; }
      .hero .lead { margin-top: 20px; font-size: clamp(17px, 2.2vw, 21px); color: rgba(255,255,255,0.82); max-width: 640px; }
      .hero-ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }

      section { position: relative; }
      .band { padding: 74px 0; }
      .band.tight { padding: 54px 0; }
      .section-eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font: 600 12.5px/1 var(--font-head); color: var(--red); margin-bottom: 14px; }
      .h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
      .band p.intro { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 640px; }

      /* 5 razones */
      .reasons { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 42px; }
      @media (min-width: 720px) { .reasons { grid-template-columns: 1fr 1fr; } }
      .reason { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 28px 28px; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
      .reason:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
      .reason .num { font-family: "Outfit", sans-serif; font-weight: 700; font-size: 120px; line-height: 1; color: rgba(234,0,41,0.08); position: absolute; top: -6px; right: 6px; pointer-events: none; }
      .reason-ic { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: rgba(234,0,41,0.09); color: var(--red); margin-bottom: 16px; }
      .reason-ic svg { width: 27px; height: 27px; }
      .reason h3 { font-size: 20px; color: var(--navy); margin-bottom: 8px; position: relative; }
      .reason p { font-size: 15.5px; color: var(--muted); position: relative; }
      /* La 5.ª ocupa todo el ancho y se realza */
      @media (min-width: 720px) { .reason.wide { grid-column: 1 / -1; } }
      .reason.wide { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); border-color: transparent; }
      .reason.wide h3 { color: #fff; }
      .reason.wide p { color: rgba(255,255,255,0.8); }
      .reason.wide .reason-ic { background: rgba(255,255,255,0.14); color: #fff; }
      .reason.wide .num { color: rgba(255,255,255,0.1); }

      /* Video (LinkedIn embed) */
      .video-band { background: #fff; }
      .li-embed { max-width: 504px; margin: 30px auto 0; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
      .li-embed iframe { display: block; width: 100%; height: 440px; border: 0; }
      .video-cap { margin-top: 16px; font-size: 14.5px; color: var(--muted); text-align: center; }

      /* CTA */
      .cta { background: var(--bg); padding: 20px 0 90px; }
      .cta-card { background: linear-gradient(120deg, var(--red), #ff3355); color: #fff; border-radius: 22px; padding: 56px 40px; text-align: center; position: relative; overflow: hidden; }
      .cta-card::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.16) 1.3px, transparent 1.3px); background-size: 20px 20px; -webkit-mask-image: radial-gradient(90% 120% at 50% 0%, #000 35%, transparent 75%); mask-image: radial-gradient(90% 120% at 50% 0%, #000 35%, transparent 75%); }
      .cta-card > * { position: relative; z-index: 1; }
      .cta-card h2 { font-size: clamp(26px, 3.6vw, 38px); }
      .cta-card p { color: rgba(255,255,255,0.9); margin: 12px auto 26px; max-width: 540px; }
      .cta-card .btn-white { background: #fff; color: var(--red); }
      .cta-card .btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.2); }

      [data-reveal] { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: opacity 0.55s ease-out, transform 0.55s ease-out, filter 0.55s ease-out; }
      [data-reveal].in { opacity: 1; transform: none; filter: none; }

      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) {
        [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
        html { scroll-behavior: auto; }
        .btn-shine::after { display: none; }
      }
      /* ===== Menú móvil: centrado + entrada con stagger (UX: 150-300ms, ease-out) ===== */
      @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; }
        .nav-links.open a:nth-child(8) { animation-delay: 0.32s; }
        .nav-links.open a:nth-child(9) { animation-delay: 0.36s; }
      }
      @media (prefers-reduced-motion: reduce) { .nav-links.open, .nav-links.open a { animation: none; } }

      /* 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; } }
