/* =========================================================
   WOW! MAKER · components.css
   Piezas reutilizables en todas las páginas:
   cabecera, botones, tarjetas, FAQ, formulario, pie, barra CTA móvil.
   ========================================================= */

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--f-titular); font-weight: 800; font-size: 1rem;
  letter-spacing: .01em; text-decoration: none; line-height: 1;
  padding: 1.05em 1.6em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primario { background: var(--azul); color: #fff; box-shadow: 0 10px 24px -10px rgba(0,71,163,.7); }
.btn--primario:hover { background: var(--azul-700); color: #fff; }
.btn--wow { background: var(--grad-wow); color: var(--azul-900); box-shadow: 0 10px 24px -10px rgba(236,157,194,.9); }
.btn--wow:hover { color: var(--azul-900); }
.btn--borde { background: transparent; color: var(--azul); border-color: var(--azul); }
.btn--borde-claro { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--borde-claro:hover { color: #fff; border-color: #fff; }
.btn--whatsapp { background: #25D366; color: #06351a; }
.btn--whatsapp:hover { color: #06351a; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 244, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--linea);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.site-header__logo img { width: 172px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-family: var(--f-titular); font-weight: 700; font-size: .95rem;
  color: var(--tinta); text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--azul); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--rosa); }
.nav .btn { color: #fff; padding: .85em 1.3em; min-height: 44px; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
  color: var(--azul); min-width: 48px; min-height: 48px;
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--crema); border-bottom: 1px solid var(--linea);
    padding: .5rem var(--gutter) 1.25rem; box-shadow: var(--sombra);
    transform: translateY(-120%); visibility: hidden; transition: transform .25s ease, visibility .25s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { padding: 1rem 0; border-bottom: 1px solid var(--linea); font-size: 1.05rem; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--azul); }
  .nav .btn { margin-top: 1rem; border-bottom: 0; }
}

/* ---------- Secciones ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--abedul { background: var(--abedul); }
.section--blanco { background: var(--blanco); }
.section--oscuro { background: var(--azul-900); color: #DDE4F2; }
.section--oscuro h2, .section--oscuro h3 { color: #fff; }
.section--oscuro .eyebrow { color: var(--rosa); }
.section--wow { background: var(--grad-wow); }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { font-size: 1.15rem; color: var(--tinta-suave); }
.section--oscuro .section__head p { color: #B9C4DD; }

/* ---------- Rejillas y tarjetas ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.card {
  background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio);
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--sombra);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-wow); color: var(--azul); margin-bottom: 1rem;
}
.card__icon svg { width: 28px; height: 28px; }

/* Tarjeta de dolor (fondo oscuro) */
.pain {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radio); padding: clamp(22px, 3vw, 32px); position: relative;
}
.pain__num {
  font-family: var(--f-titular); font-weight: 800; font-size: .8rem; letter-spacing: .25em;
  color: var(--alerta); text-transform: uppercase; display: block; margin-bottom: .75rem;
}
.pain h3 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.pain p { color: #B9C4DD; }
.pain ul { margin: 0; padding-left: 1.1em; color: #DDE4F2; }
.pain li { margin-bottom: .45em; }
.pain li::marker { color: var(--alerta); }

/* ---------- Escena / storytelling ---------- */
.scene {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 4vw, 48px); align-items: center;
  background: #00163A; border-radius: var(--radio); padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(255,255,255,.08);
}
.scene__clock { font-family: var(--f-titular); font-weight: 800; color: var(--alerta); font-size: 1rem; letter-spacing: .2em; }
.scene p { color: #DDE4F2; font-size: 1.12rem; }
.scene p em { color: #fff; font-style: normal; font-weight: 700; }
@media (max-width: 820px) { .scene { grid-template-columns: 1fr; } }

/* Comentario negativo ilustrativo */
.review {
  background: #fff; color: var(--tinta); border-radius: 16px; padding: 18px 20px;
  box-shadow: var(--sombra-l); transform: rotate(-1.5deg); max-width: 420px; justify-self: center;
}
.review__top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review__avatar { width: 40px; height: 40px; border-radius: 50%; background: #D0D5E2; flex: none; }
.review__name { font-weight: 700; font-size: .95rem; line-height: 1.2; }
.review__meta { font-size: .8rem; color: var(--tinta-suave); }
.review__stars { color: #F5A524; letter-spacing: 2px; font-size: 1rem; }
.review__stars span { color: #D0D5E2; }
.review p { font-size: .98rem !important; color: var(--tinta) !important; margin: 6px 0 10px; }
.review__likes { font-size: .8rem; color: var(--tinta-suave); }
.review__note { display: block; margin-top: 12px; font-size: .75rem; color: #8790A8; font-style: italic; }

/* ---------- Precio destacado ---------- */
.price-tag {
  display: inline-flex; align-items: baseline; gap: .35em;
  font-family: var(--f-titular); font-weight: 800; color: var(--azul);
}
.price-tag small { font-size: .9rem; font-weight: 700; color: var(--tinta-suave); }
.price-tag b { font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; }

/* Comparativa de cálculo */
.calc {
  background: var(--blanco); border-radius: var(--radio); overflow: hidden;
  border: 1px solid var(--linea); box-shadow: var(--sombra);
}
.calc__row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 16px 24px; border-bottom: 1px solid var(--linea); }
.calc__row:last-child { border-bottom: 0; }
.calc__row b { font-family: var(--f-titular); color: var(--azul); white-space: nowrap; }
.calc__row--total { background: var(--grad-wow); font-weight: 700; }
.calc__row--total b { font-size: 1.25rem; }

/* ---------- Plazos (timeline) ---------- */
.deadline { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.deadline__item {
  border-radius: var(--radio); padding: clamp(24px, 3vw, 36px); background: var(--azul); color: #fff;
  position: relative; overflow: hidden;
}
.deadline__item:nth-child(2) { background: var(--azul-900); }
.deadline__days { font-family: var(--f-titular); font-weight: 800; font-size: clamp(3.2rem, 8vw, 5.5rem); line-height: 1; display: block; }
.deadline__days span { font-size: .35em; letter-spacing: .05em; }
.deadline__where { font-family: var(--f-titular); font-weight: 700; font-size: 1.15rem; display: block; margin: .4rem 0 .6rem; color: var(--melocoton); }
.deadline__item p { color: #DDE4F2; margin: 0; }
@media (max-width: 640px) { .deadline { grid-template-columns: 1fr; } }

/* ---------- Pasos ---------- */
.steps { counter-reset: paso; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: paso; background: var(--blanco); border-radius: var(--radio); padding: 28px 24px 24px; border: 1px solid var(--linea); position: relative; }
.steps li::before {
  content: counter(paso, decimal-leading-zero);
  font-family: var(--f-titular); font-weight: 800; font-size: 2.2rem; line-height: 1;
  background: var(--grad-wow); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: .6rem;
}
.steps h3 { font-size: 1.15rem; }
.steps p { margin: 0; color: var(--tinta-suave); font-size: 1rem; }

/* ---------- Lista de checks ---------- */
.checks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .7rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--azul) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- Bloque split (texto + imagen) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }
.split__media { border-radius: var(--radio); background: var(--abedul); padding: clamp(20px, 4vw, 48px); }

/* ---------- Cifras ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; }
.stat { text-align: center; padding: 22px 12px; border-radius: var(--radio); background: rgba(255,255,255,.55); }
.stat b { display: block; font-family: var(--f-titular); font-weight: 800; color: var(--azul); font-size: clamp(2rem, 4.5vw, 2.8rem); line-height: 1.05; }
.stat span { font-size: .95rem; color: var(--azul-900); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--blanco); border: 1px solid var(--linea); border-radius: 14px; padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative;
  font-family: var(--f-titular); font-weight: 700; color: var(--azul-900); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--azul); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--tinta-suave); padding-bottom: 6px; }

/* ---------- Formulario de presupuesto ---------- */
.quote { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .quote { grid-template-columns: 1fr; } }
.quote__intro h2 { color: var(--azul-900); }
.form { background: var(--blanco); border-radius: var(--radio); padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--sombra-l); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--azul-900); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--tinta);
  border: 1.5px solid #DCD2C4; border-radius: 12px; padding: 13px 14px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(0,71,163,.12); }
.form__legal { font-size: .82rem; color: var(--tinta-suave); margin: 14px 0 18px; }
.form__legal input { margin-right: 6px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form__actions .btn { flex: 1 1 220px; }
.form__msg { margin-top: 14px; font-weight: 700; color: var(--azul); min-height: 1.5em; }

/* Selección múltiple de productos */
.pill-group { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-group legend { font-weight: 700; font-size: .9rem; color: var(--azul-900); margin-bottom: 8px; padding: 0; }
.pill-group legend small { font-weight: 400; color: var(--tinta-suave); margin-left: 6px; }
.pill-check { position: relative; cursor: pointer; }
.pill-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill-check span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 999px;
  border: 2px solid #DCD2C4; background: #fff; font-weight: 700; color: var(--tinta); transition: all .15s;
}
.pill-check span::before { content: ""; width: 18px; height: 18px; border-radius: 6px; border: 2px solid #C4B8A6; flex: none; }
.pill-check input:checked + span { border-color: var(--azul); background: var(--azul); color: #fff; }
.pill-check input:checked + span::before { border-color: #fff; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230047A3' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 80% no-repeat; }
.pill-check input:focus-visible + span { outline: 3px solid var(--rosa); outline-offset: 2px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--azul-900); color: #B9C4DD; padding: 64px 0 120px; font-size: .95rem; }
.site-footer a { color: #DDE4F2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img { width: 180px; margin-bottom: 16px; }
.site-footer h2 { font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--melocoton); font-family: var(--f-texto); font-weight: 700; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .85rem; }
@media (min-width: 901px) { .site-footer { padding-bottom: 40px; } }

/* ---------- Barra CTA fija en móvil ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: none; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,250,244,.96); border-top: 1px solid var(--linea);
  box-shadow: 0 -8px 24px -12px rgba(0,31,77,.3);
}
.mobile-cta .btn { flex: 1; padding: .9em 1em; font-size: .95rem; }
@media (max-width: 900px) { .mobile-cta { display: flex; } }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }
