/* =========================================================
   CorteZea · Landing
   Paleta inspirada en la costa: océano, cielo, arena, piedra
   ========================================================= */

:root {
  /* Azules / mar (mar de La Paz: turquesa apagado, azul grisáceo) */
  --ocean: #235366;          /* azul mar profundo, ligeramente grisáceo */
  --ocean-700: #1C4253;      /* más oscuro (footer / banda CTA) */
  --ocean-soft: #2A6276;     /* azul medio */
  --turquoise: #2E97A6;      /* turquesa costa (apagado, natural) */
  --turquoise-600: #25808D;

  /* Cielo / espuma */
  --sky: #DCE9F1;            /* azul cielo muy suave */
  --sky-200: #C6DBE8;
  --foam: #FAFBF9;           /* blanco espuma, levemente cálido */
  --white: #ffffff;

  /* Arena / piedra (cálidos, como la foto) */
  --sand: #E7D9BE;           /* arena dorada */
  --sand-200: #F3ECDB;       /* arena clara (fondo de sección) */
  --stone: #B6B2A8;          /* gris piedra cálido */
  --stone-200: #E4DFD5;      /* borde claro cálido */

  /* Texto */
  --ink: #233A44;            /* slate profundo (montañas / mar) */
  --muted: #586A71;          /* texto secundario */

  /* Sistema */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 16px rgba(35, 83, 102, .06);
  --shadow: 0 14px 40px rgba(35, 83, 102, .10);
  --shadow-lg: 0 28px 60px rgba(35, 83, 102, .16);
  --container: 1140px;
  --gap: clamp(1.5rem, 4vw, 3rem);

  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--foam);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }

a { color: var(--ocean); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--turquoise-600); }

img, svg { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--ocean);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(135deg, var(--turquoise) 0%, var(--ocean-soft) 90%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(46, 151, 166, .28);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(46, 151, 166, .36); color: #fff; }

.btn--ghost {
  background: rgba(255, 255, 255, .7);
  color: var(--ocean);
  border-color: var(--stone-200);
}
.btn--ghost:hover { border-color: var(--turquoise); color: var(--ocean); background: #fff; transform: translateY(-2px); }

.btn--whatsapp {
  background: #fff;
  color: var(--ink);
  border-color: var(--stone-200);
  box-shadow: var(--shadow-sm);
}
.btn--whatsapp:hover { border-color: #25D366; color: var(--ink); transform: translateY(-2px); }
.btn--whatsapp-light {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.35);
  box-shadow: none;
}
.btn--whatsapp-light:hover { background: rgba(255,255,255,.22); color: #fff; }

.btn--block { width: 100%; }

/* Botón desactivado (ej. WhatsApp aún no disponible) */
.btn.is-disabled { opacity: .55; cursor: not-allowed; }
.btn.is-disabled:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--stone-200); }

/* ---------- Eyebrow / títulos de sección ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--turquoise-600);
  background: rgba(46, 151, 166, .1);
  padding: .35rem .8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.eyebrow--ocean { color: var(--ocean); background: rgba(35, 83, 102, .08); }

.section__title { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.section__text { color: var(--muted); font-size: 1.06rem; max-width: 56ch; }
.section__text--center { margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 253, 254, .82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(199, 205, 210, .35);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__mark { border-radius: 9px; flex: none; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.32rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand__accent { color: var(--turquoise-600); }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__accent { color: var(--turquoise); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 1.9rem); }
.nav > a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .98rem;
  color: var(--ink);
}
.nav > a:not(.btn):hover { color: var(--turquoise-600); }
.nav__cta { padding: .6rem 1.2rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2.5px; border-radius: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(46,151,166,.18), transparent 60%),
    linear-gradient(180deg, var(--sky) 0%, var(--foam) 78%);
  padding: clamp(3rem, 7vw, 5.5rem) 0 7rem;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.hero__title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--muted);
  max-width: 44ch;
  margin-bottom: 1.8rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.8rem; }
.hero__trust {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem;
  color: var(--muted); font-size: .92rem;
}
.hero__trust li { position: relative; padding-left: 1.3rem; }
.hero__trust li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--turquoise-600); font-weight: 700;
}

/* Phone mockup */
.hero__art { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(310px, 82vw);
  background: linear-gradient(160deg, #103b50, #0b2c3d);
  border-radius: 38px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
}
.phone__notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 22px; background: #0b2c3d; border-radius: 0 0 14px 14px; z-index: 3;
}
.phone__chat {
  background: #eef6f1;
  border-radius: 26px;
  overflow: hidden;
  min-height: 460px;
  display: flex; flex-direction: column;
}
.chat__head {
  display: flex; align-items: center; gap: .65rem;
  background: var(--ocean);
  color: #fff;
  padding: 1.4rem 1rem .8rem;
}
.chat__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--turquoise);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: #04303f;
  flex: none;
}
.chat__head strong { display: block; font-size: .95rem; font-family: var(--font-head); }
.chat__head small { font-size: .75rem; opacity: .8; }
.chat__body {
  padding: 1rem .85rem;
  display: flex; flex-direction: column; gap: .55rem;
  background:
    linear-gradient(rgba(238,246,241,.92), rgba(238,246,241,.92));
  flex: 1;
}
.bubble {
  max-width: 82%;
  padding: .6rem .8rem;
  border-radius: 16px;
  font-size: .86rem;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  animation: bubbleIn .5s both;
}
.bubble--in { align-self: flex-start; background: #fff; border-bottom-left-radius: 5px; color: var(--ink); }
.bubble--out { align-self: flex-end; background: #d6f3dd; border-bottom-right-radius: 5px; color: #11402a; }
.bubble--soft { background: #c9eed7; }
.bubble:nth-child(1) { animation-delay: .2s; }
.bubble:nth-child(2) { animation-delay: .6s; }
.bubble:nth-child(3) { animation-delay: 1s; }
.bubble:nth-child(4) { animation-delay: 1.4s; }
.bubble:nth-child(5) { animation-delay: 1.8s; }

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.floating-card {
  position: absolute;
  bottom: 18px; left: -8px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: .8rem 1rem;
  display: flex; align-items: center; gap: .65rem;
  font-size: .82rem;
  animation: floaty 4s ease-in-out infinite;
}
.floating-card strong { display: block; font-family: var(--font-head); font-size: .85rem; }
.floating-card small { color: var(--muted); }
.floating-card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--turquoise); box-shadow: 0 0 0 4px rgba(46,151,166,.2); flex: none; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Wave divider */
.wave-divider { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.wave-divider svg { width: 100%; height: clamp(60px, 8vw, 110px); }
.wave-divider path { fill: var(--foam); }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--sand { background: var(--sand-200); }
.section--sky { background: var(--sky); }

.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3.2rem); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.grid-2--contact { align-items: start; }

/* Stat cards (qué es) */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card {
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.stat-card strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--ocean); margin-bottom: .25rem; }
.stat-card span { color: var(--muted); font-size: .92rem; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
}
.feature {
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(46,151,166,.4); }
.feature__icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(46,151,166,.16), rgba(35,83,102,.12));
  margin-bottom: 1rem;
}
.feature__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--ocean); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Audience */
.audience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.audience__item {
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  padding: 1.6rem 1rem;
  text-align: center;
  font-size: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.audience__item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.audience__item span {
  display: block;
  margin-top: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  color: var(--ink);
}

/* Steps */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--turquoise), var(--ocean-soft));
  color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 18px rgba(46,151,166,.3);
}
.step h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Plans */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}
.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plan--featured {
  border: 1.5px solid var(--turquoise);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #fff, #f4fbfc);
}
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--turquoise), var(--ocean-soft));
  color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: .75rem;
  letter-spacing: .04em;
  padding: .35rem .9rem; border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(46,151,166,.3);
}
.plan__name { font-size: 1.3rem; }
.plan__price { font-family: var(--font-head); font-weight: 700; color: var(--ocean); font-size: 1.05rem; margin-bottom: .4rem; }
.plan__desc { color: var(--muted); font-size: .95rem; }
.plan__list { list-style: none; margin: 1rem 0 1.6rem; padding: 0; display: grid; gap: .6rem; }
.plan__list li { position: relative; padding-left: 1.6rem; color: var(--ink); font-size: .95rem; }
.plan__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--turquoise-600); font-weight: 700;
}
.plan__cta { margin-top: auto; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(700px 300px at 15% 20%, rgba(46,151,166,.35), transparent 60%),
    linear-gradient(120deg, var(--ocean) 0%, var(--ocean-700) 100%);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.cta-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.6rem;
}
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .3rem; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Contacto */
.contact-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; align-items: center; gap: .9rem; }
.contact-list__icon {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: var(--sky);
  border-radius: 12px; font-size: 1.2rem;
}
.contact-list small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.contact-list a, .contact-list span { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.contact-list a:hover { color: var(--turquoise-600); }

.contact-form {
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.2rem);
  box-shadow: var(--shadow);
  display: grid; gap: 1rem;
}
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--foam);
  border: 1.5px solid var(--stone-200);
  border-radius: var(--radius-sm);
  padding: .8rem .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--turquoise);
  box-shadow: 0 0 0 4px rgba(46,151,166,.16);
}
.field textarea { resize: vertical; }
.form-note { font-size: .9rem; margin: 0; min-height: 1.2em; }
.form-note.is-ok { color: var(--turquoise-600); }
.form-note.is-error { color: #c0492f; }

/* Privacy */
.privacy { max-width: 760px; margin: 0 auto; text-align: center; }
.privacy .section__text { margin-inline: auto; max-width: 68ch; }

/* ---------- Footer ---------- */
.footer { background: var(--ocean); color: rgba(255,255,255,.82); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
}
.footer__brand p { margin-top: .9rem; color: rgba(255,255,255,.72); font-size: .95rem; max-width: 34ch; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer__nav, .footer__contact { display: flex; flex-direction: column; gap: .6rem; }
.footer a { color: rgba(255,255,255,.82); font-size: .95rem; }
.footer a:hover { color: var(--turquoise); }
.footer__contact span { font-size: .95rem; color: rgba(255,255,255,.72); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 1.2rem 0; font-size: .88rem; color: rgba(255,255,255,.65); }

/* ---------- Reveal on scroll ----------
   Solo se ocultan si hay JS (clase .js). Sin JS, el contenido es visible. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    background: var(--foam);
    border-bottom: 1px solid var(--stone-200);
    padding: 1rem clamp(1.1rem, 4vw, 2rem) 1.4rem;
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform .35s ease;
    visibility: hidden;
  }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  .nav > a { padding: .8rem .2rem; border-bottom: 1px solid rgba(199,205,210,.3); }
  .nav__cta { text-align: center; margin-top: .6rem; padding: .85rem; }
  .nav-toggle { display: flex; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { order: 1; }
  .hero__art { order: 2; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__trust { justify-content: center; }

  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { flex: 1; }
}

@media (max-width: 380px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* ---------- Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
