/* Skedbox — estilos de la web pública, según el Skedbox Brand Kit.
   Colores: Navy para estructura y acciones, Teal para énfasis (nunca como fondo de texto pequeño:
   el teal claro no llega al contraste mínimo; para texto se usa Deep Teal).
   Tipografía: Manrope en titulares, Inter en texto e interfaz, ambas alojadas en /fonts (licencia OFL). */

@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paleta del brand book */
  --navy: #06275A;
  --navy-dark: #031A3D;
  --teal: #0BA7AA;
  --teal-dark: #087C82;
  --white: #FFFFFF;
  --cloud: #F7F9FB;
  --mist: #E4E9EF;
  --slate: #556274;
  --text: #172033;
  /* Chat de WhatsApp (colores de la propia app, no de la marca) */
  --chat-bg: #efeae2;
  --chat-out: #d9fdd3;
  --chat-ink: #111b21;
  --chat-muted: #54656f;
  --chat-btn: #0b7a66;
  /* Tipografía y formas */
  --font-heading: "Manrope", "Inter", Arial, sans-serif;
  --font: "Inter", Arial, sans-serif;
  --font-chat: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 4px 16px rgba(3, 26, 61, 0.06);
  --shadow-float: 0 16px 42px rgba(3, 26, 61, 0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--teal-dark); }
a:hover { color: var(--navy); }
h1, h2, h3 { margin: 0; text-wrap: balance; font-family: var(--font-heading); color: var(--navy); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(32px, env(safe-area-inset-left, 0px));
  padding-right: max(32px, env(safe-area-inset-right, 0px));
}

/* ---------- Cabecera ---------- */
.site-header { border-bottom: 1px solid var(--mist); background: var(--white); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { width: 160px; height: auto; }
.nav { display: flex; gap: 32px; }
.nav a { color: var(--navy); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--teal-dark); }

/* ---------- Botones (brand: radio 10 px, 600, min. 44 px) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-md);
  font-family: var(--font); font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; background: var(--mist); color: var(--slate);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--mist); }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--cloud); color: var(--navy); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn[disabled] { background: var(--mist); color: var(--slate); cursor: not-allowed; }

/* ---------- Portada ---------- */
.hero { padding: 80px 0 96px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--teal-dark); }
.h1 { font-size: 58px; line-height: 1.05; letter-spacing: -0.02em; font-weight: 650; }
.lead { font-size: 19px; line-height: 1.55; color: var(--slate); max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.note { font-size: 14px; line-height: 1.5; color: var(--slate); max-width: 48ch; }
.hero-demo { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.caption { font-size: 13px; color: var(--slate); text-align: center; }

/* Teléfono con la conversación */
.phone { width: 372px; max-width: 100%; height: 780px; border-radius: 44px; background: var(--navy-dark); padding: 12px; box-shadow: var(--shadow-float); }
.phone-screen { height: 100%; border-radius: 34px; overflow: hidden; background: var(--chat-bg); display: flex; flex-direction: column; }
.chat-head { background: var(--white); padding: 16px 14px 12px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #e9edef; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.chat-name { font-size: 15px; font-weight: 600; color: var(--chat-ink); font-family: var(--font-chat); }
.chat-sub { font-size: 12px; color: var(--chat-muted); font-family: var(--font-chat); }
.chat { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; font-family: var(--font-chat); color: var(--chat-ink); overflow: hidden; }
.msg { max-width: 84%; padding: 7px 9px 5px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); font-size: 13.5px; line-height: 1.35; }
.msg-in { align-self: flex-start; background: var(--white); border-radius: 0 10px 10px 10px; }
.msg-out { align-self: flex-end; background: var(--chat-out); border-radius: 10px 0 10px 10px; }
.msg time { display: block; font-size: 10.5px; color: var(--chat-muted); text-align: right; margin-top: 2px; }
.msg-group { align-self: flex-start; width: 84%; display: flex; flex-direction: column; gap: 3px; }
.msg-group .msg { max-width: none; }
.wa-btn { display: block; width: 100%; background: var(--white); border: 0; border-radius: 8px; padding: 9px 8px; text-align: center; color: var(--chat-btn); font-weight: 500; font-size: 13.5px; font-family: inherit; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); cursor: default; }
.chat-input { padding: 8px 10px 12px; background: #f0f2f5; display: flex; align-items: center; gap: 8px; }
.chat-field { flex: 1; background: var(--white); border-radius: 20px; padding: 10px 14px; font-size: 13.5px; color: #8696a0; font-family: var(--font-chat); }
.chat-send { width: 38px; height: 38px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section-tight { padding-top: 0; }
.section-alt { background: var(--cloud); }
.section-in { display: flex; flex-direction: column; gap: 56px; }
.intro { display: flex; flex-direction: column; gap: 16px; max-width: 760px; min-width: 0; }
.h2 { font-size: 40px; line-height: 1.12; letter-spacing: -0.015em; font-weight: 650; }
.text { font-size: 18px; line-height: 1.55; color: var(--slate); }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.cols2-center { align-items: center; }

.fact { border-top: 2px solid var(--teal); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.fact h3 { font-size: 19px; font-weight: 600; line-height: 1.25; }
.fact p { color: var(--slate); }

.list-title { font-size: 14px; font-weight: 600; color: var(--teal-dark); padding-bottom: 12px; }
.row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-top: 1px solid var(--mist); }
.row:last-child { border-bottom: 1px solid var(--mist); }
.row h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.row p { color: var(--slate); }

.step { display: flex; flex-direction: column; gap: 14px; }
.step-num { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--navy); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; font-family: var(--font-heading); }
.step h3 { font-size: 20px; font-weight: 600; line-height: 1.25; }
.step p { color: var(--slate); line-height: 1.55; }

.bullets { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; color: var(--slate); }

.samples { background: var(--chat-bg); border-radius: var(--radius-lg); padding: 28px 24px; display: flex; flex-direction: column; gap: 22px; font-family: var(--font-chat); color: var(--chat-ink); min-width: 0; }
.sample { display: flex; flex-direction: column; gap: 3px; }
.sample-label { font-size: 12px; color: var(--chat-muted); margin-bottom: 4px; font-family: var(--font); font-weight: 600; }
.sample .msg { max-width: none; align-self: stretch; font-size: 14px; line-height: 1.4; padding: 8px 10px 6px; }

/* Banda del piloto */
.band { background: var(--navy-dark); color: var(--white); border-radius: var(--radius-xl); padding: 64px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.band .eyebrow { color: var(--teal); }
.band .h2 { color: var(--white); }
.band .text { color: #c9d3df; font-size: 17px; }
.band-facts { display: flex; flex-direction: column; }
.band-fact { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.18); display: flex; flex-direction: column; gap: 4px; }
.band-fact:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.band-fact h3 { font-size: 18px; font-weight: 600; color: var(--white); }
.band-fact p { font-size: 15px; color: #b5c2d1; line-height: 1.45; }

/* Preguntas */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; }
.faq > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.faq h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.faq p { color: var(--slate); line-height: 1.55; }

/* Contacto */
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.contact-ways { display: flex; flex-direction: column; gap: 10px; color: var(--slate); margin-top: 8px; }
.form { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 32px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form input[type="text"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; min-height: 46px; border: 1px solid #d8e0e8; border-radius: var(--radius-md); padding: 0 13px;
  font-family: inherit; font-size: 15px; background: var(--white); color: var(--text);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--teal); outline: 0; box-shadow: 0 0 0 3px rgba(11, 167, 170, 0.14); }
.form textarea { min-height: 96px; padding: 12px 13px; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--slate); }
.check input { margin: 3px 0 0; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--navy); }
.check label { font-weight: 400; margin: 0; font-size: 14px; color: var(--slate); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { font-size: 14px; color: #9b2c2c; }
.form-ok h3 { font-size: 22px; font-weight: 600; }
.form-ok p { color: var(--slate); }
[hidden] { display: none !important; }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--mist); padding: 40px 0 48px; font-size: 14px; color: var(--slate); }
.footer-in { display: flex; flex-direction: column; gap: 20px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-brand img { width: 128px; height: auto; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; border-top: 1px solid var(--mist); padding-top: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--slate); text-decoration: none; }
.site-footer a:hover { color: var(--navy); }

/* ---------- Páginas legales y de gracias ---------- */
.legal { padding: 64px 0 96px; }
.legal-in { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.h1-legal { font-size: 44px; }
.updated { font-size: 14px; color: var(--slate); }
.legal h2 { font-size: 24px; font-weight: 600; line-height: 1.25; margin-top: 24px; }
.legal p, .legal li { color: var(--slate); line-height: 1.6; }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.legal ul.data { list-style: none; padding: 0; border-top: 1px solid var(--mist); gap: 0; }
.legal ul.data li { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--mist); }
.legal ul.data span { font-size: 14px; font-weight: 600; color: var(--text); }
.legal .actions { margin-top: 16px; }
.table-wrap { overflow-x: auto; margin: 8px 0; }
.cookies-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.cookies-table th, .cookies-table td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--mist); color: var(--slate); line-height: 1.45; }
.cookies-table th { color: var(--text); font-weight: 600; border-bottom: 2px solid var(--navy); }
.cookies-table td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; }

/* ---------- Móvil ---------- */
@media (max-width: 960px) {
  .hero-in, .cols2, .cols3, .faq, .contact, .band { grid-template-columns: 1fr; }
  .nav { display: none; }
  .logo img { width: 136px; }
  .h1 { font-size: 40px; }
  .h1-legal { font-size: 34px; }
  .h2 { font-size: 32px; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .wrap { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
  .band { padding: 40px 24px; gap: 32px; }
  .phone { width: 340px; height: 720px; }
  .hero { padding: 48px 0 72px; }
  .section { padding: 72px 0; }
  .section-tight { padding-top: 0; }
  .form { padding: 24px 20px; }
  .legal ul.data li { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
