/* ==========================================================================
   Latia — estilos de la landing
   Paleta "Núcleo": marino, arena y cian
   ========================================================================== */

:root {
  --navy: #0E2A47;
  --navy-deep: #0A1F35;
  --navy-2: #143657;
  --navy-line: #1F4669;
  --sand: #F4EEE4;
  --sand-2: #EAE1D2;
  --sand-line: #E3D9C8;
  --paper: #FFFDF9;
  --cyan: #22C3D6;
  --cyan-ink: #086B79;      /* cian legible sobre fondos claros */
  --cyan-soft: #E6F6F8;
  --muted: #4B5A6B;         /* texto secundario sobre arena */
  --muted-dark: #C3CFDB;    /* texto secundario sobre marino */
  --muted-dark-2: #A9B8C8;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --container: 1200px;
  --radius-lg: 20px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

a { color: var(--cyan-ink); }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section { padding-top: 96px; padding-bottom: 96px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--sand);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* --- Tipografía ---------------------------------------------------------- */

h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }

.h2 {
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.h3 {
  font-weight: 600;
  font-size: 21px;
  line-height: 1.3;
}

.eyebrow {
  color: var(--cyan-ink);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.on-dark .eyebrow { color: var(--cyan); }

.lead { font-size: 18px; line-height: 1.6; color: var(--muted); }
.on-dark .lead { color: var(--muted-dark); }

.body-muted { font-size: 16px; line-height: 1.6; color: var(--muted); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head--center {
  align-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* --- Marca --------------------------------------------------------------- */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}

.isotipo {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: var(--sand);
}
.isotipo__dot {
  position: absolute;
  right: 6px;
  bottom: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.wordmark__i { position: relative; display: inline-block; }
.wordmark__i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--cyan);
}

.pulse { animation: latiaPulse 1.6s ease-in-out infinite; transform-origin: center; }
@keyframes latiaPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: .75; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* --- Botones ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--cyan { background: var(--cyan); color: var(--navy-deep); }
.btn--cyan:hover { background: #3FD0E0; color: var(--navy-deep); }

.btn--navy { background: var(--navy); color: var(--sand); }
.btn--navy:hover { background: var(--navy-deep); color: var(--sand); }

.btn--outline { border: 1.5px solid var(--navy); color: var(--navy); padding: 0 24px; }
.btn--outline:hover { background: var(--navy); color: var(--sand); }

.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--block { display: flex; width: 100%; min-height: 54px; }

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 238, 228, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
}
.nav__links a:not(.btn) { color: var(--navy); text-decoration: none; }
.nav__links a:not(.btn):hover { color: var(--cyan-ink); }

@media (max-width: 760px) {
  .nav__secondary { display: none; }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 80px;
  padding-bottom: 96px;
}

.hero__copy {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--cyan-soft);
  color: var(--cyan-ink);
  font-size: 14px;
  font-weight: 600;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }

.hero__title {
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero__lead { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 540px; }

.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

.hero__note { font-size: 14px; color: var(--muted); }

.hero__visual {
  flex: 1 1 460px;
  min-width: 0;
  position: relative;
  padding: 24px 0 40px;
}

/* Maqueta de agenda */
.agenda {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--sand-line);
  box-shadow: 0 30px 60px -30px rgba(14, 42, 71, 0.35);
  overflow: hidden;
}
.agenda__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid #EFE7DA;
}
.agenda__title { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.agenda__sub { font-size: 13px; color: var(--muted); }
.agenda__new {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--sand);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.agenda__list { list-style: none; margin: 0; padding: 0; }
.agenda__row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid #F3ECE0;
}
.agenda__row:last-child { border-bottom: 0; }
.agenda__time { font-size: 14px; font-weight: 600; color: var(--muted); }
.agenda__who { display: flex; flex-direction: column; min-width: 0; }
.agenda__name { font-weight: 600; font-size: 15px; }
.agenda__service { font-size: 13px; color: var(--muted); }

.status {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.status--consulta { background: var(--navy); color: var(--sand); }
.status--espera { background: #F1E6D2; color: #6B4A12; }
.status--confirmada { background: var(--cyan-soft); color: var(--cyan-ink); }
.status--reagendada { border: 1px solid #B9AE9C; color: var(--muted); padding: 4px 11px; }

.float-card {
  position: absolute;
  display: flex;
  border-radius: 16px;
}
.float-card--reminder {
  left: -28px;
  bottom: 0;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  max-width: 290px;
  background: var(--navy);
  color: var(--sand);
  box-shadow: 0 20px 40px -20px rgba(10, 31, 53, 0.6);
}
.float-card__icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--cyan);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.float-card__text { display: flex; flex-direction: column; gap: 2px; }
.float-card__title { font-weight: 600; font-size: 14px; }
.float-card__sub { font-size: 13px; color: var(--muted-dark-2); }

.float-card--money {
  right: -12px;
  top: 0;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--sand-line);
  box-shadow: 0 16px 32px -20px rgba(14, 42, 71, 0.4);
}
.float-card__label { font-size: 12px; color: var(--muted); font-weight: 500; }
.float-card__amount { font-family: var(--font-display); font-weight: 700; font-size: 20px; }

@media (max-width: 600px) {
  .float-card--reminder { left: 8px; }
  .float-card--money { right: 8px; }
  .agenda__row { grid-template-columns: 48px minmax(0, 1fr); }
  .agenda__row .status { grid-column: 2; justify-self: start; }
}

/* --- Bloques oscuros ----------------------------------------------------- */

.on-dark { background: var(--navy); color: var(--sand); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.problem-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: 18px;
  background: var(--navy-2);
  border: 1px solid var(--navy-line);
}
.problem-card__num { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--cyan); }
.problem-card p { font-size: 16px; line-height: 1.6; color: var(--muted-dark); }

/* --- Cómo funciona ------------------------------------------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 2px solid var(--navy);
}
.step--last { border-top-color: var(--cyan); }
.step__num { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; }

/* --- Módulos ------------------------------------------------------------- */

.bg-sand-2 { background: var(--sand-2); }

.modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.module {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--sand-line);
}
.module__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}
.module__title { font-weight: 600; font-size: 22px; }
.module__benefit { font-size: 17px; font-weight: 600; }

/* --- Para quién ---------------------------------------------------------- */

.audience {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}
.audience__copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.chips {
  flex: 1 1 460px;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.chip {
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid var(--sand-line);
  font-weight: 600;
  font-size: 16px;
}

/* --- Precio -------------------------------------------------------------- */

.pricing { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.pricing .section-head { margin-bottom: 0; }

.billing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--navy-2);
  border: 1px solid var(--navy-line);
}
.billing-toggle button {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.billing-toggle button[aria-pressed="true"] { background: var(--cyan); color: var(--navy-deep); }
.billing-toggle__save { font-size: 13px; }

.price-card {
  width: 100%;
  max-width: 560px;
  border-radius: 24px;
  background: var(--paper);
  color: var(--navy);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.price-card__ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--cyan);
  color: var(--navy-deep);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}
.price-card__body { padding: 36px 36px 32px; display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 480px) { .price-card__body { padding: 28px 22px 24px; } }

.price-card__plan { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.price-card__amount-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.price-card__amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.price-card__per { font-size: 17px; color: var(--muted); font-weight: 500; }
.price-card__note { font-size: 15px; color: var(--muted); }
.price-card__fine { font-size: 14px; color: var(--muted); }
.price-card__head { display: flex; flex-direction: column; gap: 8px; }
.price-card__nocard { margin-top: -16px; text-align: center; font-size: 14px; color: var(--muted); }

.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.features { display: flex; flex-direction: column; gap: 14px; }
.features ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.features li { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.features svg { flex: none; color: var(--cyan-ink); }

.limits {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 16px;
  background: var(--sand);
}
.limits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}
.limit { display: flex; flex-direction: column; gap: 2px; }
.limit__num { font-family: var(--font-display); font-weight: 700; font-size: 26px; }
.limit__label { font-size: 14px; color: var(--muted); }

.pricing__more { font-size: 16px; color: var(--muted-dark); text-align: center; }
.pricing__more a { color: var(--cyan); font-weight: 600; }
.pricing__more a:hover { color: var(--sand); }

/* --- Preguntas frecuentes ------------------------------------------------ */

.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px 48px;
}
@media (max-width: 400px) { .faq { grid-template-columns: 1fr; } }
.faq__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid #D8CCB8;
}
.faq__q { font-weight: 600; font-size: 19px; line-height: 1.35; }

/* --- CTA final ----------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--navy);
  color: var(--sand);
  padding: 72px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.cta__ring {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 2px solid var(--navy-line);
}
.cta__dot {
  position: absolute;
  right: 120px;
  top: 70px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
}
.cta__title {
  font-weight: 700;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 720px;
  position: relative;
}
.cta .lead { max-width: 520px; position: relative; }
.cta__note { font-size: 14px; color: var(--muted-dark-2); }
@media (max-width: 480px) { .cta { padding: 56px 22px; } }

/* --- Footer -------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--sand-line); }
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 32px;
  font-size: 14px;
  color: var(--muted);
}
.footer .wordmark { font-size: 20px; color: var(--navy); }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--navy); }
