/* ==========================================================================
   ESCANEO INTEGRAL DE BIENESTAR — Torrejón de Ardoz
   Sistema de diseño: verde natural + crema, tipografía Fraunces/Plus Jakarta
   ========================================================================== */

:root {
  /* Color */
  --green-dark:    #16302A;
  --green-deep:    #0F241F;
  --green-natural: #3E7A5C;
  --green-soft:    #E6EEE6;
  --lime:          #C4E85C;
  --lime-deep:     #9FC93F;
  --white:         #FFFFFF;
  --cream:         #F6F2E9;
  --gray-light:    #F1EFE7;
  --ink:           #1C2622;
  --ink-soft:      #4A564F;
  --line:          rgba(22, 48, 42, 0.12);
  --error:         #B3441E;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1120px;
  --container-narrow: 700px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(22, 48, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(22, 48, 42, 0.10);
  --header-h: 64px;
  --mobile-bar-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 2.5px solid var(--green-natural);
  outline-offset: 3px;
}

/* ---------- Utility ---------- */
.icon { width: 20px; height: 20px; color: var(--green-natural); flex-shrink: 0; }
.icon--lg { width: 28px; height: 28px; }
.icon--xl { width: 40px; height: 40px; margin: 0 auto 8px; color: var(--green-natural); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-natural);
  margin: 0 0 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--green-dark);
  color: var(--white);
  padding: 16px 30px;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn--lime {
  background: var(--lime);
  color: var(--green-deep);
  padding: 16px 30px;
  font-size: 1rem;
}
.btn--lime:hover { background: var(--lime-deep); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
  padding: 10px 18px;
}
.btn--large { padding: 18px 34px; font-size: 1.05rem; width: 100%; max-width: 420px; }
.btn--small { padding: 10px 18px; font-size: 0.85rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(246, 242, 233, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--green-dark);
}
.header__mark {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(196, 232, 92, 0.35);
}
.header__cta { display: none; }
@media (min-width: 640px) {
  .header__cta { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  padding: 40px 20px 56px;
}
.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 40px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 6vw, 2.9rem);
  line-height: 1.15;
  color: var(--green-dark);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.hero__subtitle {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
  max-width: 52ch;
}
.hero__text {
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
  max-width: 52ch;
}
.microbenefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}
.microbenefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green-dark);
}
.hero__microcopy {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hero__visual { display: flex; justify-content: center; }
.signature-figure { width: min(280px, 60vw); }
.signature-figure__svg { width: 100%; height: auto; }
.pulse-dot {
  fill: var(--lime);
  stroke: var(--white);
  stroke-width: 1.5;
  animation: pulse 2.4s ease-in-out infinite;
  transform-origin: center;
}
@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.35); }
}

@media (min-width: 860px) {
  .hero { padding: 72px 32px 88px; }
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 24px; }
  .hero__visual { order: 2; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 20px; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--green-dark); }
.section--final { background: var(--green-soft); }
.section__inner { max-width: var(--container); margin: 0 auto; }
.section__inner--narrow { max-width: var(--container-narrow); }
.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 4.4vw, 2.1rem);
  color: var(--green-dark);
  line-height: 1.25;
  margin-bottom: 18px;
  max-width: 22ch;
}
.section--dark .section__title,
.section--final .section__title { max-width: 26ch; }
.section__title--light { color: var(--white); }
.section__lead {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 8px;
}
.section__lead--light { color: rgba(255,255,255,0.82); }
.section__closer {
  margin-top: 28px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--green-dark);
  max-width: 56ch;
}
.section__note {
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Identificación — chips */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green-dark);
  box-shadow: var(--shadow-sm);
}

/* Proceso — steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 34px;
  counter-reset: step;
}
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__marker {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.step__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--green-dark);
  margin-bottom: 6px;
}
.step__text { color: var(--ink-soft); font-size: 0.96rem; max-width: 52ch; }

@media (min-width: 860px) {
  .steps { flex-direction: row; gap: 32px; }
  .step { flex-direction: column; }
}

/* Beneficios — grid */
.benefit-grid {
  display: grid;
  gap: 18px;
  margin-top: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .benefit-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .benefit-grid { grid-template-columns: repeat(3, 1fr); }
}
.benefit-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}
.benefit-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--green-dark);
  margin: 14px 0 8px;
}
.benefit-card p { font-size: 0.92rem; color: var(--ink-soft); }

/* Curiosidad (dark) */
.section--dark { text-align: left; }
.section--dark .btn { margin-top: 10px; }

/* Para quién — check list */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 30px;
}
.check-list li {
  position: relative;
  padding-left: 34px;
  font-size: 0.98rem;
  color: var(--ink);
  font-weight: 500;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316302A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* Localización */
.location-block { text-align: center; margin: 0 auto; }
.location-block .section__title,
.location-block .section__lead { margin-left: auto; margin-right: auto; }

/* ---------- Galería (placeholder) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-card {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
}
.gallery-card svg { width: 100%; height: auto; display: block; }
.gallery-card figcaption {
  padding: 12px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-dark);
  text-align: center;
}

/* ---------- Vídeo (placeholder) ---------- */
.video-frame {
  position: relative;
  margin-top: 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.video-frame__art { width: 100%; height: auto; display: block; }
.video-frame__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease;
}
.video-frame__play svg { width: 26px; height: 26px; margin-left: 3px; }
.video-frame__play:hover { transform: translate(-50%, -50%) scale(1.06); }
.video-frame__badge {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(22,48,42,0.8);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------- Testimonios (placeholder) ---------- */
.testimonial-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}
.testimonial-card {
  margin: 0;
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}
.testimonial-card__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.testimonial-card__avatar svg { width: 20px; height: 20px; }
.testimonial-card__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.5;
}
.testimonial-card__author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-dark);
}
.testimonial-card__author span { font-weight: 500; color: var(--ink-soft); }

@media (max-width: 480px) {
  .gallery-grid { gap: 10px; }
}

/* ---------- Formulario ---------- */
.form-section { background: var(--white); }
.booking-form {
  margin-top: 32px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green-dark);
  margin-bottom: 8px;
}
.field input[type="text"],
.field input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--white);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.field input:focus { border-color: var(--green-natural); }
.field input[aria-invalid="true"] { border-color: var(--error); }

.field--checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-items: start;
}
.field--checkbox input {
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: var(--green-dark);
}
.field--checkbox label {
  margin: 0;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.field--checkbox label a { color: var(--green-dark); font-weight: 700; text-decoration: underline; }

.field-error {
  display: block;
  color: var(--error);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 6px;
  min-height: 1em;
}

.form-microcopy {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 14px;
}
.form-status {
  margin-top: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.form-status.success { color: var(--green-natural); }
.form-status.error { color: var(--error); }

/* ---------- FAQ accordion ---------- */
.accordion { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.accordion-item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.accordion-item h3 { margin: 0; }
.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--green-dark);
  text-align: left;
}
.accordion-trigger__icon { transition: transform 0.2s ease; }
.accordion-trigger[aria-expanded="true"] .accordion-trigger__icon { transform: rotate(180deg); }
.accordion-panel { padding: 0 20px 18px; }
.accordion-panel p { color: var(--ink-soft); font-size: 0.94rem; max-width: 60ch; }

/* ---------- Footer ---------- */
.footer {
  background: var(--green-deep);
  color: rgba(255,255,255,0.75);
  padding: 40px 20px calc(40px + var(--mobile-bar-h));
}
.footer__inner { max-width: var(--container); margin: 0 auto; }
.footer__disclaimer {
  font-size: 0.82rem;
  line-height: 1.6;
  max-width: 70ch;
  margin-bottom: 24px;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
}
.footer__links a { font-size: 0.85rem; text-decoration: underline; color: rgba(255,255,255,0.85); }
.footer__copy { font-size: 0.78rem; color: rgba(255,255,255,0.5); }

@media (min-width: 860px) {
  .footer { padding: 48px 32px; }
}

/* ---------- Mobile sticky CTA bar ---------- */
.mobile-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
@media (min-width: 860px) {
  .mobile-bar { display: none; }
  .footer { padding-bottom: 48px; }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 60;
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  padding: 20px;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 14px; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (min-width: 860px) {
  .cookie-banner { left: auto; bottom: 20px; right: 20px; }
}
