/* ============================================================
   The North Webs — Portada (MODO OSCURO)
   Azul marino profundo · azules de marca · Space Grotesk + Inter
   ============================================================ */

/* ---- Tipografías autoalojadas (sin llamadas a Google · RGPD) ---- */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/inter-400.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/inter-500.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/inter-600.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/inter-700.woff2') format('woff2');}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/spacegrotesk-500.woff2') format('woff2');}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/spacegrotesk-600.woff2') format('woff2');}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/spacegrotesk-700.woff2') format('woff2');}

:root {
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display: 'Space Grotesk', var(--sans);

  --blue: #37B6EF;
  --blue-2: #1E9AD6;
  --blue-ink: #7ccdf5;

  --bg: #0E1822;        /* fondo de página */
  --bg-2: #13212D;      /* secciones alternas */
  --paper: #1A2836;     /* tarjetas */
  --paper-2: #223343;   /* tarjetas sobre paper */
  --deep: #0A121A;      /* footer / lo más oscuro */

  --heading: #EEF4F9;   /* títulos */
  --ink: #D3DFEA;       /* texto */
  --muted: #8EA2B5;     /* texto secundario */
  --line: #2A3A4B;      /* bordes */
  --line-2: #1E2E3C;    /* rellenos sutiles */
  --sel-bg: #123246;    /* chip azulado */

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 26px 64px rgba(0, 0, 0, 0.5);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  color: var(--heading);
}

.wrap { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 24px; }
.page { position: relative; }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 9999px;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  color: #06131d; box-shadow: 0 8px 22px rgba(55, 182, 239, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(55, 182, 239, 0.45); }
.btn-ghost { background: transparent; color: var(--heading); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-2); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  padding: 14px 22px; display: flex; justify-content: space-between; align-items: center;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.navbar.is-scrolled {
  background: rgba(10, 18, 26, 0.78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm); padding-top: 10px; padding-bottom: 10px;
}
@media (min-width: 640px) { .navbar { padding: 18px 32px; } }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; user-select: none; }
.brand__mark { display: inline-flex; filter: drop-shadow(0 3px 8px rgba(30, 154, 214, 0.4)); }
.brand__name {
  font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--heading); line-height: 1; white-space: nowrap;
}
@media (min-width: 640px) { .brand__name { font-size: 23px; } }

.nav-links { display: none; align-items: center; gap: 14px; font-size: 16px; }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-link { color: var(--ink); text-decoration: none; font-weight: 500; transition: color 0.2s ease; }
.nav-link:hover { color: var(--blue); }
.nav-sep { opacity: 0.3; color: var(--muted); }

.nav-cta { display: none; }
@media (min-width: 900px) {
  .nav-cta {
    display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 9999px;
    background: var(--paper-2); color: var(--heading); border: 1px solid var(--line);
    font-size: 15px; font-weight: 600; text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  }
  .nav-cta:hover { background: var(--blue-2); border-color: transparent; color: #06131d; transform: translateY(-1px); }
}

/* Hamburguesa */
.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 34px; height: 34px; padding: 0; border: 0; background: transparent; cursor: pointer; }
@media (min-width: 900px) { .burger { display: none; } }
.burger__bar { display: block; width: 24px; height: 2px; background: var(--heading); border-radius: 2px; transition: all 0.3s ease; }
.burger.is-open .burger__bar--top { transform: rotate(45deg) translateY(7px); }
.burger.is-open .burger__bar--mid { opacity: 0; }
.burger.is-open .burger__bar--bot { transform: rotate(-45deg) translateY(-7px); }

/* Overlay móvil */
.mobile-menu {
  position: fixed; inset: 0; z-index: 35;
  background: rgba(10, 18, 26, 0.97);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
@media (min-width: 900px) { .mobile-menu { display: none; } }
.mobile-menu__nav { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.mobile-menu__link { font-family: var(--display); font-size: 30px; font-weight: 600; color: var(--heading); text-decoration: none; transition: color 0.2s ease; }
.mobile-menu__link:hover { color: var(--blue); }
.mobile-menu__link--cta { margin-top: 8px; padding: 12px 26px; border-radius: 9999px; background: var(--blue-2); color: #06131d; font-size: 20px; }

/* ============================================================
   HÉROE
   ============================================================ */
.hero-section { position: relative; display: flex; flex-direction: column; }
@media (min-width: 1024px) { .hero-section { display: block; min-height: 100vh; } }

.video-wrap {
  order: 99; position: relative; overflow: hidden; pointer-events: none;
  width: 100%; aspect-ratio: 1 / 1; background: #0b1620;
}
@media (min-width: 768px) { .video-wrap { aspect-ratio: 16 / 10; } }
@media (min-width: 1024px) { .video-wrap { order: 0; position: absolute; inset: 0; z-index: 0; aspect-ratio: auto; height: 100%; background: transparent; } }
.video { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
@media (min-width: 1024px) { .video { object-position: right bottom; } }

/* Velo oscuro para que el texto claro se lea sobre el vídeo */
.video-scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(14,24,34,0.55) 0%, rgba(14,24,34,0.25) 40%, rgba(14,24,34,0.6) 100%); }
@media (min-width: 1024px) {
  .video-scrim { background: linear-gradient(100deg, rgba(14,24,34,0.94) 0%, rgba(14,24,34,0.82) 38%, rgba(14,24,34,0.4) 64%, rgba(14,24,34,0.1) 82%); }
}

.content-layer {
  position: relative; z-index: 1; display: flex; flex-direction: column; order: 0;
  width: 100%; background: var(--bg); padding-bottom: 30px;
}
@media (min-width: 1024px) { .content-layer { background: transparent; padding-bottom: 0; min-height: 100vh; } }

.hero { width: 100%; max-width: 76rem; margin: 0 auto; padding: 116px 24px 40px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 1024px) { .hero { min-height: 100vh; padding: 116px 24px 64px; } }

.hero__eyebrow {
  display: inline-block; font-family: var(--display); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue);
  background: var(--sel-bg); padding: 6px 14px; border-radius: 9999px; margin-bottom: 20px;
  border: 1px solid rgba(55,182,239,0.2);
}

.hero__title { font-size: clamp(2.6rem, 8vw, 76px); font-weight: 600; letter-spacing: -0.03em; color: var(--heading); line-height: 1.05; margin: 0 0 26px; user-select: none; white-space: pre-wrap; }
.type-cursor { display: inline-block; width: 3px; height: 0.95em; background: var(--blue); vertical-align: middle; margin-left: 3px; border-radius: 2px; }

.hero__desc { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--ink); line-height: 1.7; font-weight: 400; margin: 0 0 40px; max-width: 40rem; }

/* --- Píldoras --- */
.services__title { font-size: 1.45rem; font-weight: 600; margin: 0 0 6px; color: var(--heading); }
.services__subtitle { color: var(--muted); margin: 0 0 24px; }
.services__pills { display: flex; flex-wrap: wrap; gap: 11px; }

.pill {
  display: inline-flex; align-items: center; padding: 12px 22px; border-radius: 9999px;
  font-family: var(--sans); font-size: 1rem; font-weight: 500; cursor: pointer;
  background: var(--paper); color: var(--heading); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pill:hover { border-color: var(--blue); background: var(--paper-2); }
.pill.is-active { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%); color: #06131d; border-color: transparent; box-shadow: 0 8px 20px rgba(55,182,239,0.32); transform: translateY(-1px); }
.pill__check { display: inline-flex; align-items: center; justify-content: center; width: 0; overflow: hidden; opacity: 0; transform: scale(0.2); transition: width 0.2s ease, opacity 0.15s ease; }
.pill.is-active .pill__check { width: 18px; margin-right: 8px; opacity: 1; animation: spring-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
@keyframes spring-in { 0% { transform: scale(0.2);} 60% { transform: scale(1.15);} 100% { transform: scale(1);} }

.services__feedback { margin-top: 20px; }
.feedback-empty { opacity: 0.7; font-style: italic; font-size: 0.8rem; margin: 8px 0 0; color: var(--muted); }
.feedback-active {
  overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 15px 20px; margin-top: 8px; box-shadow: var(--shadow-sm);
  animation: banner-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes banner-in { 0% { opacity: 0; transform: translateY(6px);} 100% { opacity: 1; transform: translateY(0);} }
.feedback-active__text { margin: 0; font-size: 0.95rem; color: var(--heading); font-weight: 600; }
.feedback-active__text span { color: var(--blue); }
.feedback-active__go { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); text-transform: uppercase; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-decoration: none; transition: gap 0.2s ease; }
.feedback-active__go:hover { gap: 10px; }

/* ============================================================
   SECCIONES COMUNES
   ============================================================ */
.section-head { max-width: 44rem; margin: 0 auto 44px; text-align: center; }
.section-eyebrow { display: inline-block; font-family: var(--display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.section-title { font-size: clamp(1.8rem, 4.5vw, 2.7rem); color: var(--heading); margin: 0 0 14px; }
.section-lead { font-size: 1.1rem; color: var(--muted); line-height: 1.6; margin: 0; }

/* Tira de servicios */
.services-strip { padding: 70px 0 20px; background: var(--bg); }
.strip-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 720px) { .strip-grid { grid-template-columns: repeat(3, 1fr); } }
.strip-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.strip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-2); }
.strip-ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px; background: var(--sel-bg); color: var(--blue); font-size: 1.3rem; }
.strip-card h3 { font-size: 1.25rem; color: var(--heading); margin: 0 0 8px; }
.strip-card p { color: var(--muted); line-height: 1.6; margin: 0; font-size: 0.98rem; }

/* ============================================================
   CALCULADORA
   ============================================================ */
.calc { padding: 84px 0; background: var(--bg-2); }
.calc-card { max-width: 46rem; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 30px 28px 34px; position: relative; overflow: hidden; }
@media (min-width: 640px) { .calc-card { padding: 38px 40px 42px; } }

.calc-progress { height: 5px; border-radius: 9999px; background: var(--line-2); overflow: hidden; margin-bottom: 16px; }
.calc-progress-bar { display: block; height: 100%; width: 25%; border-radius: 9999px; background: linear-gradient(90deg, var(--blue), var(--blue-2)); transition: width 0.4s cubic-bezier(0.16,1,0.3,1); }

.calc-steps-nav { display: none; list-style: none; margin: 0 0 26px; padding: 0; gap: 8px; }
@media (min-width: 640px) { .calc-steps-nav { display: flex; } }
.calc-steps-nav li { flex: 1; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); padding-top: 10px; border-top: 2px solid var(--line); transition: color 0.3s ease, border-color 0.3s ease; }
.calc-steps-nav li.is-current { color: var(--blue); border-color: var(--blue); }
.calc-steps-nav li.is-done { color: var(--heading); border-color: var(--blue-2); }

.calc-step { display: none; animation: step-in 0.4s cubic-bezier(0.16,1,0.3,1) both; }
.calc-step.is-active { display: block; }
@keyframes step-in { 0% { opacity: 0; transform: translateX(14px);} 100% { opacity: 1; transform: translateX(0);} }

.calc-step-title { font-size: 1.35rem; color: var(--heading); margin: 0 0 6px; }
.calc-step-help { color: var(--muted); margin: 0 0 22px; line-height: 1.55; font-size: 0.98rem; }

.calc-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 10px; padding: 30px 20px; margin-bottom: 20px; cursor: pointer;
  border: 2px dashed var(--line); border-radius: 16px; background: var(--line-2);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.calc-drop:hover, .calc-drop.is-drag { border-color: var(--blue); background: var(--sel-bg); }
.calc-drop.has-file { border-style: solid; border-color: var(--blue-2); background: var(--paper-2); }
.calc-drop-ico { width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #06131d; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700; }
.calc-drop-text { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.calc-drop-text b { color: var(--heading); }
.calc-drop-text small { color: var(--muted); opacity: 0.85; }

.calc-field { display: block; margin-bottom: 16px; }
.calc-field > span { display: block; font-size: 0.9rem; font-weight: 600; color: var(--heading); margin-bottom: 7px; }
.calc-field input, .calc-field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px;
  font-family: var(--sans); font-size: 1rem; color: var(--ink); background: var(--bg); resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.calc-field input::placeholder, .calc-field textarea::placeholder { color: #61738a; }
.calc-field input:focus, .calc-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(55,182,239,0.18); }

.calc-group-label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--heading); margin: 6px 0 10px; }
.calc-opts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.calc-opt { padding: 10px 18px; border-radius: 9999px; border: 1px solid var(--line); background: var(--bg); font-family: var(--sans); font-size: 0.95rem; font-weight: 500; color: var(--ink); cursor: pointer; transition: all 0.18s ease; }
.calc-opt:hover { border-color: var(--blue); color: var(--heading); }
.calc-opt.is-on { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #06131d; border-color: transparent; box-shadow: 0 6px 16px rgba(55,182,239,0.3); }

.calc-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; }
.calc-consent { font-size: 0.8rem; color: var(--muted); margin: 4px 0 0; }
.calc-error { color: #ff8098; font-size: 0.88rem; margin: 12px 0 0; font-weight: 500; }

.calc-loading { text-align: center; padding: 40px 10px; }
.calc-loading p { color: var(--muted); margin: 16px 0 0; }
.calc-spinner { display: inline-block; width: 42px; height: 42px; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.calc-result-badge { display: inline-block; font-family: var(--display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); background: var(--sel-bg); padding: 6px 14px; border-radius: 9999px; margin-bottom: 18px; }
.calc-result-body { color: var(--ink); line-height: 1.7; font-size: 1rem; }
.calc-result-body h4 { font-family: var(--display); font-size: 1.05rem; color: var(--heading); margin: 18px 0 6px; }
.calc-result-body p { margin: 0 0 10px; }
.calc-result-body ul { margin: 0 0 12px; padding-left: 20px; }
.calc-result-body li { margin-bottom: 6px; }
.calc-result-body strong { color: var(--blue-ink); }
.calc-result-body a { color: var(--blue); }
.calc-result-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.calc-result-foot { font-size: 0.8rem; color: var(--muted); margin: 16px 0 0; }

/* ============================================================
   CREADORES
   ============================================================ */
.makers { padding: 84px 0; background: var(--bg); }
.makers-grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 40rem; margin: 0 auto; }
@media (min-width: 620px) { .makers-grid { grid-template-columns: repeat(2, 1fr); } }
.maker-card { text-align: center; padding: 34px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.maker-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-2); }
.maker-avatar { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), #24506e); color: #06131d; font-family: var(--display); font-weight: 700; font-size: 1.4rem; margin-bottom: 16px; box-shadow: 0 8px 20px rgba(55,182,239,0.28); }
.maker-card h3 { font-size: 1.3rem; color: var(--heading); margin: 0 0 4px; }
.maker-role { color: var(--muted); margin: 0; font-size: 0.95rem; }

.contact-band { text-align: center; margin-top: 48px; }
.contact-band p { font-family: var(--display); font-size: 1.3rem; color: var(--heading); margin: 0 0 8px; font-weight: 600; }
.contact-mail { font-size: 1.4rem; font-weight: 700; color: var(--blue); text-decoration: none; border-bottom: 2px solid transparent; transition: border-color 0.2s ease; }
.contact-mail:hover { border-color: var(--blue); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--deep); color: #9db0c2; padding: 44px 0; border-top: 1px solid var(--line); }
.footer-inner { text-align: center; }
.brand--footer { justify-content: center; margin-bottom: 14px; }
.brand--footer .brand__name { color: #fff; }
.footer-tag { color: #8296aa; margin: 0 0 8px; font-size: 0.95rem; }
.footer-legal { color: #6a7f93; font-size: 0.85rem; margin: 0; }
.footer-legal a { color: #b9c8d7; text-decoration: none; }
.footer-legal a:hover { color: #fff; }

/* ============================================================
   CHATBOT
   ============================================================ */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
.chat-toggle { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #06131d; box-shadow: 0 12px 30px rgba(30,154,214,0.5); display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease; }
.chat-toggle:hover { transform: scale(1.05); }
.chat-toggle svg { width: 27px; height: 27px; position: absolute; transition: opacity 0.2s ease, transform 0.2s ease; }
.chat-toggle-close { opacity: 0; transform: rotate(-45deg); }
.chat.is-open .chat-toggle-open { opacity: 0; transform: rotate(45deg); }
.chat.is-open .chat-toggle-close { opacity: 1; transform: rotate(0); }
.chat-toggle-pulse { position: absolute; inset: 0; border-radius: 50%; background: var(--blue); opacity: 0.5; animation: pulse 2.2s ease-out infinite; z-index: -1; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.8); opacity: 0; } }
.chat.is-open .chat-toggle-pulse { display: none; }

.chat-panel {
  position: absolute; right: 0; bottom: 74px; width: min(90vw, 370px);
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(0.98); pointer-events: none;
  transform-origin: bottom right; transition: opacity 0.25s ease, transform 0.25s ease;
}
.chat.is-open .chat-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(135deg, #17293a, var(--deep)); color: #fff; border-bottom: 1px solid var(--line); }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-2)); display: inline-flex; align-items: center; justify-content: center; }
.chat-head-info { display: flex; flex-direction: column; line-height: 1.3; }
.chat-head-info b { font-family: var(--display); font-size: 0.98rem; color: #fff; }
.chat-status { font-size: 0.75rem; color: #9fb2c4; display: inline-flex; align-items: center; gap: 6px; }
.chat-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,0.25); }

.chat-log { padding: 18px; height: 320px; max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; background: var(--bg-2); }
.chat-msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: 0.94rem; line-height: 1.5; }
.chat-msg p { margin: 0 0 6px; } .chat-msg p:last-child { margin: 0; }
.chat-msg-bot { align-self: flex-start; background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.chat-msg-user { align-self: flex-end; background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #06131d; border-bottom-right-radius: 5px; }
.chat-msg-typing { display: inline-flex; gap: 4px; }
.chat-msg-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink-dot 1.2s infinite; }
.chat-msg-typing span:nth-child(2) { animation-delay: 0.2s; } .chat-msg-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink-dot { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 0; background: var(--bg-2); }
.chat-suggest.is-hidden { display: none; }
.chat-suggest button { padding: 8px 13px; border-radius: 9999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 0.82rem; cursor: pointer; transition: all 0.15s ease; }
.chat-suggest button:hover { border-color: var(--blue); color: var(--blue); }

.chat-form { display: flex; gap: 8px; padding: 14px 16px; background: var(--bg-2); }
.chat-form input { flex: 1; padding: 11px 15px; border: 1px solid var(--line); border-radius: 9999px; font-family: var(--sans); font-size: 0.94rem; background: var(--bg); color: var(--ink); }
.chat-form input::placeholder { color: #61738a; }
.chat-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(55,182,239,0.18); }
.chat-form button { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #06131d; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.chat-form button svg { width: 20px; height: 20px; }
.chat-foot { text-align: center; font-size: 0.72rem; color: var(--muted); margin: 0; padding: 0 16px 12px; background: var(--bg-2); }

/* ============================================================
   REVEAL / ANIMACIONES
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); animation: drop-in 0.6s ease forwards; }
.reveal--eyebrow  { animation-delay: 0.02s; }
.reveal--headline { animation-delay: 0.10s; }
.reveal--desc     { animation-delay: 0.20s; }
.reveal--services { animation-delay: 0.30s; }
@keyframes drop-in { to { opacity: 1; transform: translateY(0); } }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].is-in { opacity: 1; transform: translateY(0); }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.animate-blink { animation: blink 1s step-end infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, [data-reveal] { opacity: 1; transform: none; animation: none; transition: none; }
  .feedback-active, .calc-step { animation: none; }
  .pill.is-active .pill__check { animation: none; }
  .animate-blink, .chat-toggle-pulse { animation: none; }
}

/* ============================================================
   LOGO (imagen real) + ACENTO ITÁLICO
   ============================================================ */
.brand__img { display: block; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.45)) drop-shadow(0 0 7px rgba(55,182,239,0.28)); }

/* ---- Franja de confianza (héroe) ---- */
.reveal--trust { animation-delay: 0.26s; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: -18px 0 34px; padding: 0; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.hero-trust svg { color: var(--blue); flex-shrink: 0; }

.section-title em, .founders-promise em, .pledge-title em { font-style: italic; color: #E6C79E; font-weight: 600; }

/* ---- Sección "Sin compromiso" ---- */
.pledge { padding: 30px 0 84px; background: var(--bg); }
.pledge-card {
  max-width: 62rem; margin: 0 auto; display: flex; align-items: center; gap: 30px;
  padding: 36px 40px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(55,182,239,0.09), rgba(26,40,54,0.55));
  border: 1px solid rgba(55,182,239,0.32);
  box-shadow: 0 0 44px rgba(55,182,239,0.08), var(--shadow-md);
}
@media (max-width: 720px) { .pledge-card { flex-direction: column; text-align: center; padding: 32px 24px; gap: 22px; } }
.pledge-seal {
  flex-shrink: 0; width: 84px; height: 84px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(55,182,239,0.12); border: 1px solid rgba(55,182,239,0.4); color: var(--blue);
  box-shadow: 0 0 30px rgba(55,182,239,0.2);
}
.pledge-seal svg { width: 42px; height: 42px; }
.pledge-body { flex: 1; }
.pledge-body .section-eyebrow { margin-bottom: 10px; }
.pledge-title { font-size: clamp(1.5rem, 3.5vw, 2.1rem); color: var(--heading); margin: 0 0 12px; }
.pledge-text { color: var(--muted); line-height: 1.65; margin: 0 0 18px; }
.pledge-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pledge-points li { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 500; font-size: 0.96rem; }
@media (max-width: 720px) { .pledge-points { align-items: center; } }
.pledge-points svg { color: var(--blue); flex-shrink: 0; }

/* ============================================================
   VENTAJAS (6 principios)
   ============================================================ */
.diff { padding: 84px 0; background: var(--bg); }
.diff-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .diff-grid { grid-template-columns: repeat(3, 1fr); } }
.diff-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.diff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-2); }
.diff-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--sel-bg); color: var(--blue); margin-bottom: 16px; }
.diff-icon svg { width: 24px; height: 24px; }
.diff-title { font-size: 1.2rem; color: var(--heading); margin: 0 0 8px; }
.diff-text { color: var(--muted); line-height: 1.6; margin: 0; font-size: 0.96rem; }
.diff-num { position: absolute; top: 18px; right: 20px; font-family: var(--display); font-size: 0.85rem; color: var(--line); font-weight: 700; letter-spacing: 0.05em; }

/* ============================================================
   PROCESO (línea de tiempo)
   ============================================================ */
.process { padding: 84px 0; background: var(--bg-2); }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 44rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--blue), rgba(55,182,239,0.05)); }
.timeline-step { position: relative; padding: 0 0 30px 42px; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg-2); border: 3px solid var(--blue); box-shadow: 0 0 0 4px rgba(55,182,239,0.12); }
.timeline-phase { font-family: var(--display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.timeline-title { font-size: 1.2rem; color: var(--heading); margin: 4px 0 6px; }
.timeline-text { color: var(--muted); line-height: 1.6; margin: 0; font-size: 0.96rem; }

/* ============================================================
   COMPARADOR (tabla)
   ============================================================ */
.compare { padding: 84px 0; background: var(--bg); }
.compare-table { max-width: 54rem; margin: 0 auto; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 1fr 1.35fr 1.35fr; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: center; }
.compare-row:last-child { border-bottom: 0; }
.compare-head { background: var(--paper); font-family: var(--display); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.compare-head span { color: var(--muted); }
.compare-head .compare-col-good { color: var(--blue); }
.compare-row:not(.compare-head) { font-size: 0.92rem; }
.compare-crit { color: var(--heading); font-weight: 600; }
.compare-bad { color: var(--muted); }
.compare-bad::before { content: "✕ "; color: #ff8098; font-weight: 700; }
.compare-good { color: var(--ink); }
.compare-good::before { content: "✓ "; color: #4ade80; font-weight: 700; }

/* ============================================================
   FUNDADORES
   ============================================================ */
.founders { padding: 84px 0; background: var(--bg-2); }
.founders-grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 46rem; margin: 0 auto; }
@media (min-width: 620px) { .founders-grid { grid-template-columns: repeat(2, 1fr); } }
.founder-card { text-align: center; padding: 34px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.founder-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-2); }
.founder-avatar { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), #24506e); color: #06131d; font-family: var(--display); font-weight: 700; font-size: 1.4rem; margin-bottom: 16px; box-shadow: 0 8px 20px rgba(55,182,239,0.28); }
.founder-name { font-size: 1.25rem; color: var(--heading); margin: 0 0 4px; }
.founder-role { color: var(--blue); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 12px; }
.founder-bio { color: var(--muted); line-height: 1.6; margin: 0; font-size: 0.95rem; }
.founders-promise { position: relative; max-width: 44rem; margin: 32px auto 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px 28px 22px 56px; box-shadow: var(--shadow-sm); }
.founders-promise-mark { position: absolute; left: 20px; top: 10px; font-family: var(--display); font-size: 2.6rem; color: var(--blue); line-height: 1; }
.founders-promise p { margin: 0; color: var(--ink); line-height: 1.65; }

/* ============================================================
   FAQ (acordeón)
   ============================================================ */
.faq { padding: 84px 0; background: var(--bg); }
.faq-list { max-width: 44rem; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 4px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--display); font-size: 1.05rem; font-weight: 600; color: var(--heading); transition: color 0.2s ease; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }
.faq-item[open] summary { color: var(--blue); }
.faq-plus { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: var(--blue); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.faq-plus::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-plus::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item[open] .faq-plus::after { transform: rotate(90deg); opacity: 0; }
.faq-body { padding: 0 4px 20px; }
.faq-body p { margin: 0; color: var(--muted); line-height: 1.65; }
.faq-body b { color: var(--heading); }

/* ============================================================
   BANNER DE COOKIES
   ============================================================ */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  max-width: 720px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 20px 22px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px;
  animation: banner-in 0.4s cubic-bezier(0.16,1,0.3,1) both;
}
.cookie-banner__text { flex: 1 1 320px; color: var(--ink); font-size: 0.9rem; line-height: 1.55; margin: 0; }
.cookie-banner__text a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn { padding: 10px 18px; border-radius: 9999px; font-family: var(--sans); font-size: 0.9rem; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: all 0.18s ease; }
.cookie-btn--reject { background: transparent; color: var(--muted); border-color: var(--line); }
.cookie-btn--reject:hover { color: var(--heading); background: var(--paper-2); }
.cookie-btn--accept { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #06131d; }
.cookie-btn--accept:hover { transform: translateY(-1px); }

/* ============================================================
   CONSENTIMIENTO EN LA CALCULADORA
   ============================================================ */
.calc-consent-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 0; font-size: 0.85rem; color: var(--muted); line-height: 1.45; cursor: pointer; }
.calc-consent-check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--blue); flex-shrink: 0; cursor: pointer; }
.calc-consent-check a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   PÁGINAS LEGALES
   ============================================================ */
.legal-top { position: sticky; top: 0; z-index: 10; background: rgba(10,18,26,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.legal-top__inner { max-width: 60rem; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-back { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color 0.2s ease; }
.legal-back:hover { color: var(--blue); }
.legal-wrap { max-width: 48rem; margin: 0 auto; padding: 48px 24px 96px; }
.legal-wrap h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--heading); margin: 0 0 8px; }
.legal-updated { color: var(--muted); font-size: 0.88rem; margin: 0 0 40px; }
.legal-wrap h2 { font-size: 1.3rem; color: var(--heading); margin: 38px 0 12px; }
.legal-wrap h3 { font-size: 1.05rem; color: var(--heading); margin: 24px 0 8px; }
.legal-wrap p, .legal-wrap li { color: var(--ink); line-height: 1.7; font-size: 1rem; }
.legal-wrap p { margin: 0 0 14px; }
.legal-wrap ul { margin: 0 0 16px; padding-left: 22px; }
.legal-wrap li { margin-bottom: 7px; }
.legal-wrap a { color: var(--blue); }
.legal-wrap strong { color: var(--heading); }
.legal-note { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 12px; padding: 16px 20px; margin: 0 0 22px; color: var(--muted); font-size: 0.92rem; }
.legal-toc { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin: 0 0 34px; }
.legal-toc ul { margin: 0; padding-left: 18px; }
.legal-toc a { color: var(--ink); }

/* Enlaces legales del pie */
.footer-legal-links { margin: 12px 0 0; font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; }
.footer-legal-links a { color: #9db0c2; text-decoration: none; }
.footer-legal-links a:hover { color: #fff; }
