:root {
  --petrol: #0d3b4f;
  --petrol-deep: #082a38;
  --petrol-soft: #123f54;
  --lime: #b8e436;
  --lime-dark: #9ccb1f;
  --sky: #e8f4f8;
  --white: #ffffff;
  --ink: #12242c;
  --gray: #5a6b73;
  --line: rgba(13, 59, 79, 0.12);
  --radius: 18px;
  --shadow: 0 20px 50px rgba(8, 42, 56, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-text {
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 8px 30px rgba(8,42,56,.08); }
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Sora'; font-size: 1.05rem; }
.brand-mark { font-size: 1.6rem; line-height: 1; }
.brand-text b { color: var(--petrol); }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: .93rem; color: var(--gray); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--petrol); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: transform .18s, box-shadow .18s, background .2s;
  cursor: pointer; border: none; font-family: inherit;
}
.btn:active { transform: scale(.97); }
.btn .ico { width: 19px; height: 19px; }
.btn-primary {
  background: var(--lime); color: var(--petrol-deep);
  box-shadow: 0 8px 22px rgba(184, 228, 54, .4);
}
.btn-primary:hover { background: var(--lime-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--petrol); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--petrol); }
.btn-ghost-dark { background: transparent; color: var(--petrol); border: 1.5px solid rgba(13,59,79,.3); }
.btn-nav { background: var(--petrol); color: var(--white); padding: 10px 20px; }
.btn-nav:hover { background: var(--petrol-deep); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }

/* ===== HERO ===== */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(184,228,54,.18), transparent 60%),
    linear-gradient(160deg, var(--petrol-deep) 0%, var(--petrol) 55%, var(--petrol-soft) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 20% 100%, rgba(184,228,54,.10), transparent 55%);
  pointer-events: none;
}
.hero-grid {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 48px; align-items: center;
  padding: 72px 24px 96px;
  position: relative; z-index: 2;
}
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 16px;
}
.hero-title { font-size: clamp(1.7rem, 4.3vw, 2.9rem); font-weight: 800; margin-bottom: 18px; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.85); max-width: 520px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; font-size: .82rem; color: rgba(255,255,255,.7); }
.trust-item { display: flex; align-items: center; gap: 6px; }
.trust-num { font-weight: 700; color: var(--lime); }

.hero-media { position: relative; }
.hero-photo-frame {
  border-radius: 0; overflow: visible;
  box-shadow: none; border: none; background: transparent;
}
.hero-photo {
  width: 100%; height: auto; object-fit: contain;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.4));
  animation: heroIn 1.1s cubic-bezier(.22,1,.36,1) both, heroFloat 6s ease-in-out 1.1s infinite;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(40px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-badge {
  position: absolute; bottom: 18px; left: 18px;
  background: rgba(255,255,255,.96); color: var(--petrol);
  padding: 12px 18px; border-radius: 12px;
  font-size: .85rem; font-weight: 600;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 8px;
  animation: badgeFloat 3.2s ease-in-out infinite;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ===== ROTADOR DE PALABRAS ===== */
.word-rotator {
  position: relative;
  display: inline-block;
  vertical-align: bottom;
  white-space: nowrap;
  transition: width .5s cubic-bezier(.22,1,.36,1);
}
.word-rotator::before {
  content: "\200b";
  visibility: hidden;
  white-space: nowrap;
}
.word-rotator .word {
  position: absolute; left: 0; top: 0;
  color: var(--lime);
  opacity: 0;
  transform: translateY(.7em);
  transition: opacity .5s ease, transform .5s ease;
}
.word-rotator .word.active { opacity: 1; transform: translateY(0); }

/* ===== PARTÍCULAS HERO ===== */
.hero-particles {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 1;
  overflow: hidden;
}
.hero-particles .p {
  position: absolute; bottom: -6vh;
  border-radius: 50%;
  opacity: 0;
  animation: floatUp linear infinite;
  will-change: transform, opacity;
}
@keyframes floatUp {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  12% { opacity: var(--o, .4); }
  88% { opacity: var(--o, .4); }
  100% { transform: translateY(-108vh) translateX(36px); opacity: 0; }
}

/* ===== SCROLL HINT ===== */
.scroll-hint {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 3; opacity: .7;
}
.mouse {
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.7);
  border-radius: 14px; display: block; position: relative;
}
.wheel {
  width: 4px; height: 8px; background: var(--lime);
  border-radius: 2px; position: absolute; top: 7px; left: 50%;
  margin-left: -2px; animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(0); }
}

/* ===== TRUST BAR ===== */
.trustbar { background: var(--lime); }
.trustbar-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 22px 24px; gap: 12px;
}
.tb-item { display: flex; flex-direction: column; color: var(--petrol-deep); }
.tb-item strong { font-family: 'Sora'; font-size: 1.02rem; }
.tb-item span { font-size: .82rem; opacity: .8; }

/* ===== SECTIONS ===== */
.section { padding: 84px 24px; max-width: 1160px; margin: 0 auto; }
.section-dark { max-width: 100%; background: linear-gradient(160deg, var(--petrol-deep), var(--petrol)); color: var(--white); }
.section-soft { max-width: 100%; background: var(--sky); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.section-sub { color: var(--gray); font-size: 1.05rem; }
.section-dark .section-sub { color: rgba(255,255,255,.8); }
.section-dark .eyebrow, .section-soft .eyebrow { color: var(--lime); }

/* ===== CARDS ===== */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon {
  font-size: 2rem; margin-bottom: 14px; display: inline-block;
  transition: transform .3s;
}
.card:hover .card-icon { transform: scale(1.15) rotate(-5deg); }
.card h3 { font-size: 1.08rem; margin-bottom: 10px; color: var(--petrol); }
.card p { color: var(--gray); font-size: .94rem; }

/* ===== INFILTRACIÓN ===== */
.infil-grid {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 48px; align-items: center; padding: 84px 24px;
}
.infil-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 16px; }
.checklist { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.check { color: var(--lime); font-weight: 800; }
.infil-card {
  background: var(--white); color: var(--ink);
  border-radius: 20px; padding: 32px;
  box-shadow: 0 25px 60px rgba(0,0,0,.3);
}
.infil-card h3 { color: var(--petrol); font-size: 1.3rem; margin-bottom: 10px; }
.infil-lead { color: var(--gray); margin-bottom: 18px; }
.cand-list { display: grid; gap: 10px; margin-bottom: 8px; }
.cand-item {
  display: flex; gap: 10px; align-items: center;
  background: var(--sky); border-radius: 10px; padding: 12px 14px;
  font-size: .92rem;
}
.cand-item span { color: var(--lime-dark); font-weight: 800; }

/* ===== ZONA ===== */
.zona-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: stretch; }
.zona-info { display: flex; flex-direction: column; gap: 18px; }
.zona-line { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.zona-ico { font-size: 1.2rem; }
.zona-line a { color: var(--petrol); font-weight: 600; }
.zona-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 320px; }
.zona-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ===== TESTIMONIOS ===== */
.testi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.testi-card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.stars { color: #f4b400; font-size: 1.2rem; margin-bottom: 10px; }
.testi-text { font-size: 1.15rem; font-style: italic; color: var(--ink); margin-bottom: 12px; }
.testi-author { color: var(--gray); font-size: .9rem; }
.testi-cta { display: flex; flex-direction: column; justify-content: center; gap: 14px; background: var(--white); }

/* ===== CITA (FORM + CALENDARIO) ===== */
.cita-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.cita-form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--petrol); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .95rem;
  padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 11px; background: #fbfdfe;
  transition: border-color .2s, box-shadow .2s;
  width: 100%; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--lime-dark);
  box-shadow: 0 0 0 3px rgba(184,228,54,.25);
}
.form-actions { margin-top: 6px; display: grid; gap: 12px; }
.btn-mail { background: var(--petrol); color: var(--white); }
.btn-mail:hover { background: var(--petrol-deep); }
.form-note { font-size: .78rem; color: var(--gray); margin-top: 14px; text-align: center; }

.cita-cal {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
}
.cal-title { font-size: 1.15rem; color: var(--petrol); }
.cal-sub { font-size: .9rem; color: var(--gray); }
.cal-frame {
  width: 100%; min-height: 380px; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}

/* --- Calendario demo --- */
.cal-demo { display: flex; flex-direction: column; gap: 14px; }
.cal-demo-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal-demo-week { font-family: 'Sora'; font-weight: 600; color: var(--petrol); font-size: .95rem; }
.cal-demo-badge {
  font-size: .72rem; background: rgba(184,228,54,.22); color: var(--lime-dark);
  padding: 4px 11px; border-radius: 999px; font-weight: 700;
}
.cal-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cal-day {
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 9px 4px; text-align: center; cursor: pointer;
  background: #fbfdfe; transition: all .2s;
  display: flex; flex-direction: column; gap: 2px;
}
.cal-day:hover { border-color: var(--petrol); }
.cal-day .dow { font-size: .68rem; color: var(--gray); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.cal-day .num { font-family: 'Sora'; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.cal-day.active { background: var(--petrol); border-color: var(--petrol); }
.cal-day.active .dow { color: var(--lime); }
.cal-day.active .num { color: #fff; }
.cal-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cal-slot {
  border-radius: 10px; padding: 10px 6px; text-align: center;
  font-size: .88rem; font-weight: 700; border: none;
  transition: all .18s; display: flex; flex-direction: column; gap: 1px;
  font-family: inherit;
}
.cal-slot.free { background: var(--lime); color: var(--petrol-deep); cursor: pointer; }
.cal-slot.free:hover { background: var(--lime-dark); transform: translateY(-2px); }
.cal-slot.busy { background: #eef1f3; color: #b3bec4; cursor: not-allowed; }
.cal-slot-label { font-size: .68rem; font-weight: 500; opacity: .8; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--white); overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px; cursor: pointer; font-weight: 600;
  font-family: 'Sora'; font-size: 1rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--petrol); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 20px; color: var(--gray); }

/* ===== CTA ===== */
.cta-section { padding: 0; }
.cta-inner { max-width: 720px; margin: 0 auto; text-align: center; padding: 84px 24px; }
.cta-inner h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.cta-inner .section-sub { margin-bottom: 30px; }
.cta-alt { margin-top: 18px; color: rgba(255,255,255,.7); font-size: .95rem; }
.cta-alt a { color: var(--lime); font-weight: 600; }

/* ===== FOOTER ===== */
.footer { background: var(--petrol-deep); color: rgba(255,255,255,.75); padding: 48px 24px; }
.footer-inner { max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand .brand-mark { font-size: 1.9rem; line-height: 1; }
.footer-brand strong { display: block; color: var(--white); font-family: 'Sora'; }
.footer-legal { max-width: 440px; font-size: .8rem; line-height: 1.7; }
.footer-copy { margin-top: 10px; color: rgba(255,255,255,.5); }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .45);
  transition: transform .2s;
  animation: waPulse 2.4s ease-in-out infinite;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); animation-play-state: paused; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.4); }
  50% { box-shadow: 0 12px 30px rgba(37,211,102,.45), 0 0 0 14px rgba(37,211,102,0); }
}

/* ===== REVEAL ANIM ===== */
/* Contenido visible por defecto; solo se oculta para animar cuando hay JS activo */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding: 48px 20px 88px; }
  .hero-media { order: -1; }
  .trustbar-inner { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .infil-grid { grid-template-columns: 1fr; padding: 60px 20px; }
  .zona-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .cita-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
  .trustbar-inner { grid-template-columns: 1fr; gap: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 60px 20px; }
  .btn-nav { display: none; }
  .brand-text { font-size: .92rem; }
}
