/* =========================================================
   CREACHE — Hoja de estilos principal
   Colores y tipografías de marca: edita solo :root
   ========================================================= */

:root {
  /* Colores de marca (tomados del portafolio) */
  --red: #b01229;        /* rojo Creache: fondos fuertes, botones */
  --red-dark: #8f0e21;
  --maroon: #3b0a12;     /* vino: textos y fondos oscuros */
  --pink: #f2a5ae;       /* rosa: acentos suaves */
  --cream: #fdecec;      /* rosa muy claro: fondos de sección */
  --white: #ffffff;
  --text: #4a1a22;       /* texto de párrafos */
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;

  /* Tipografía */
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Formas */
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1160px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--red);
}

h1 { font-size: clamp(3rem, 8vw, 6rem); color: var(--white); }
h2 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); margin-bottom: 1.25rem; line-height: 1.14; }
h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

strong { font-weight: 800; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 1rem;
}

.eyebrow--light { color: var(--pink); }

.note {
  font-size: 0.85rem;
  margin-top: 1.5rem;
  opacity: 0.8;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.95rem 1.7rem;
  border: 2px solid var(--red);
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); }

.btn--white { background: var(--white); color: var(--red); border-color: var(--white); }
.btn--white:hover { background: var(--cream); border-color: var(--cream); color: var(--red-dark); }

.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn--outline-light:hover { background: var(--white); border-color: var(--white); color: var(--red); }

.btn--small { padding: 0.55rem 1.2rem; font-size: 0.9rem; }

/* Botón principal de WhatsApp (el único que abre WhatsApp) */
.btn--whatsapp {
  width: 100%;
  font-size: 1.15rem;
  padding: 1.1rem 1.5rem;
  background: var(--whatsapp);
  border-color: var(--whatsapp);
  color: #06331a;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  animation: pulse 2.6s ease-in-out infinite;
}

.btn--whatsapp svg { width: 26px; height: 26px; fill: currentColor; }
.btn--big { width: auto; font-size: 1.25rem; padding: 1.2rem 2.4rem; }
.btn__icon { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn--whatsapp:hover { background: var(--whatsapp-dark); border-color: var(--whatsapp-dark); color: var(--white); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.55); }
  50% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35), 0 0 0 12px rgba(37, 211, 102, 0); }
}

.btn:focus-visible,
.filter:focus-visible,
a:focus-visible,
summary:focus-visible { outline: 3px solid var(--maroon); outline-offset: 3px; }

/* ---------- Menú flotante (píldora) ---------- */
.header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 16px;
  pointer-events: none; /* solo la píldora recibe clics */
}

.header__pill {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.55rem 0.6rem 0.55rem 1.3rem;
  background: rgba(59, 10, 18, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(59, 10, 18, 0.25);
  transition: box-shadow 0.25s, background 0.25s;
}

.header.is-scrolled .header__pill {
  background: rgba(59, 10, 18, 0.98);
  box-shadow: 0 14px 40px rgba(59, 10, 18, 0.45);
}

.brand { display: flex; align-items: center; gap: 0.45rem; flex: none; }
.brand__icon { width: 34px; height: auto; }
.brand__word { width: 104px; height: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 auto;
}

.nav a {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s, background 0.2s;
}

.nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.nav a.is-active { color: var(--white); }

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.2rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink);
  transform: translateX(-50%);
}

.nav-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.4rem 0.4rem 1.1rem;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--red-dark); }

.nav-cta__arrow {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--red);
  font-weight: 800;
  transition: transform 0.2s;
}

.nav-cta__arrow svg { width: 1.1rem; height: 1.1rem; }
.nav-cta:hover .nav-cta__arrow { transform: translateX(3px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 1. Hero ---------- */
.hero {
  background: var(--red);
  color: rgba(255, 255, 255, 0.92);
  padding: 150px 0 100px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Logo grande: calavera arriba + palabra CREACHE abajo */
.hero__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.8rem, 2vw, 1.4rem);
  width: 100%;
  max-width: 480px;
}

.hero__icon {
  width: clamp(130px, 40%, 210px);
  height: auto;
  flex: none;
  filter: drop-shadow(0 12px 28px rgba(59, 10, 18, 0.4));
}

.hero__title { width: 100%; margin: 0; line-height: 0; }

.hero__title img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(59, 10, 18, 0.35));
}

.hero__subtitle {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--white);
}

.hero__place {
  margin: 0.6rem 0 2rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__proof {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.8rem;
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 2px solid rgba(255, 255, 255, 0.35);
  font-size: 1.05rem;
}

/* Video destacado del inicio */
.hero__media {
  position: relative;
  justify-self: center;
  width: min(100%, 340px);
  padding: 1.5rem 0;
}

.hero__shape {
  position: absolute;
  inset: 0 -14% 0 -14%;
  border-radius: 40px;
  background: linear-gradient(135deg, var(--pink), #f7c3c9);
  transform: rotate(8deg);
  opacity: 0.9;
}

.feature-video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 13;
  padding: 0;
  border: 5px solid var(--white);
  border-radius: 26px;
  overflow: hidden;
  cursor: pointer;
  background: var(--maroon);
  box-shadow: 0 30px 60px rgba(59, 10, 18, 0.45);
  transform: rotate(-3deg);
  transition: transform 0.3s ease;
}

.feature-video:hover { transform: rotate(-1deg) scale(1.02); }
.feature-video:focus-visible { outline: 4px solid var(--white); outline-offset: 4px; }

.feature-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-video__play {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 84px;
  height: 84px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23b01229' d='M8 5v14l11-7z'/%3E%3C/svg%3E") 55% center / 40px no-repeat,
    var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.feature-video__play::before {
  /* anillo que late alrededor del botón de play */
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.7);
  animation: ring 2s ease-out infinite;
}

@keyframes ring {
  from { transform: scale(0.85); opacity: 1; }
  to { transform: scale(1.35); opacity: 0; }
}

.feature-video__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3rem 1.1rem 1rem;
  text-align: left;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(to top, rgba(59, 10, 18, 0.95), transparent);
}

.feature-video__caption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.05;
  color: var(--white);
  text-transform: uppercase;
}

.hero__badge {
  position: absolute;
  z-index: 2;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--red);
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(59, 10, 18, 0.3);
  animation: float 4s ease-in-out infinite;
}

.hero__badge--top { top: 8%; left: -18%; }
.hero__badge--bottom { bottom: 14%; right: -16%; background: var(--maroon); color: var(--white); animation-delay: -2s; }

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

/* ---------- Frases resaltadas (se "pintan" al aparecer) ---------- */
mark.hl {
  position: relative;
  z-index: 0;
  padding: 0 0.15em;
  margin: 0 -0.05em;
  background: none;
  color: var(--white);
  white-space: nowrap;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

mark.hl::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.1em 0 0.02em;
  border-radius: 0.12em;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.15s;
}

mark.hl.is-on::before { transform: scaleX(1); }

/* Sobre fondos rojos u oscuros el resaltado es blanco con letra roja */
mark.hl--white { color: var(--red); }
mark.hl--white::before { background: var(--white); }
.section--dark mark.hl::before { background: var(--red); }

/* Sin JavaScript, el resaltado se muestra completo */
html:not(.js) mark.hl::before { transform: none; }

/* ---------- Animación de entrada del inicio ---------- */
.js .anim {
  opacity: 0;
  transform: translateY(22px);
  animation: enter 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes enter {
  to { opacity: 1; transform: none; }
}

/* Si se muestra la pantalla de entrada, el inicio espera a que se suba el telón */
.intro.js .anim { animation-delay: calc(var(--d, 0s) + 1.05s); }
.intro .hero mark.hl::before { transition-delay: 1.7s; }

/* ---------- Ventana del video ---------- */
.video-modal {
  width: min(92vw, 400px);
  max-height: 92vh;
  margin: auto;
  padding: 0;
  border: none;
  border-radius: 22px;
  background: var(--maroon);
  overflow: visible;
}

.video-modal::backdrop { background: rgba(20, 4, 8, 0.8); backdrop-filter: blur(4px); }

.video-modal__frame {
  aspect-ratio: 9 / 16;
  max-height: calc(92vh - 60px);
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  background: #000;
}

.video-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.video-modal__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--maroon);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.video-modal__link {
  display: block;
  padding: 0.9rem;
  text-align: center;
  font-weight: 700;
  color: var(--pink);
}

.video-modal__link:hover { color: var(--white); }

/* Etiqueta de vistas sobre cualquier video */
.views {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 0.75rem 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1;
  color: var(--white);
  text-transform: uppercase;
  background: linear-gradient(to top, rgba(59, 10, 18, 0.9), transparent);
}

/* ---------- Secciones ---------- */
.section { padding: 110px 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--maroon); color: rgba(255, 255, 255, 0.85); }
.section--dark h2 { color: var(--white); }
.section--red { background: var(--red); color: rgba(255, 255, 255, 0.92); }
.section--red h2 { color: var(--white); }

.section__lead {
  font-size: 1.1rem;
  max-width: 40rem;
  margin-bottom: 2rem;
}

/* ---------- 3. Resultados ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.stat {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.stat strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 6vw, 4.6rem);
  line-height: 1;
  color: var(--red);
}

.stat span { font-size: 1.05rem; color: var(--maroon); }
.stat--pink { background: var(--pink); }
.stat--pink strong { color: var(--maroon); }
.stat--dark { background: var(--red); }
.stat--dark strong,
.stat--dark span { color: var(--white); }

/* ---------- 4. Portafolio ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter {
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.filter:hover { border-color: var(--white); }
.filter.is-active { background: var(--red); border-color: var(--red); }

.case {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0;
  border-top: 2px solid rgba(255, 255, 255, 0.12);
}

.case h3 { color: var(--white); margin: 0.9rem 0 0.7rem; }
.case__total { margin-top: 1rem; color: var(--pink); }
.case__total strong { color: var(--white); }

.case--featured {
  background: var(--cream);
  color: var(--text);
  border: none;
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 1rem;
}

.case--featured h3 { color: var(--red); font-size: clamp(2rem, 4.5vw, 3.4rem); }
.case--featured .videos { grid-auto-columns: 230px; }

.case__stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.case__stats div { border-top: 3px solid var(--red); padding-top: 0.6rem; }
.case__stats dt { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--red); }
.case__stats dd { font-size: 0.9rem; color: var(--maroon); }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
}

.tag--alt { background: var(--maroon); }
.section--dark .tag--alt { background: rgba(255, 255, 255, 0.14); }
.case--featured .tag--alt { background: var(--maroon); }
.tag--white { background: var(--white); color: var(--red); }

/* Fila de videos: se desliza en celular.
   El ancho nunca supera la mitad de la resolución de la imagen
   para que se vean nítidas en pantallas de alta densidad. */
.videos {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 150px;
  justify-content: start;
  gap: 0.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.4rem;
  scrollbar-width: thin;
}

.videos--small { grid-auto-columns: 130px; }

.video {
  position: relative;
  display: block;
  aspect-ratio: 9 / 13;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #22060b;
  scroll-snap-align: start;
}

.video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

a.video::after {
  /* botón de play */
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23b01229' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 24px no-repeat,
    var(--white);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s;
}

a.video:hover img { transform: scale(1.05); }
a.video:hover::after { transform: translate(-50%, -50%) scale(1.1); }

.mini-cases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 190px));
  gap: 1.5rem;
  padding-top: 2.5rem;
  border-top: 2px solid rgba(255, 255, 255, 0.12);
}

.mini-case h3 { color: var(--white); font-size: 1.3rem; margin-top: 0.8rem; }
.mini-case p { font-size: 0.85rem; color: var(--pink); }

.more { text-align: center; margin-top: 2.5rem; }

/* "Ver más casos": ocultos hasta que se pulse el botón */
.js #portafolio:not(.show-all) .is-extra { display: none; }
#portafolio.show-all .more { display: none; }
.is-hidden { display: none !important; }

/* ---------- 5. Proceso ---------- */
.steps {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  border-radius: var(--radius);
  padding: 1.6rem 2rem;
}

.step__num {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 7vw, 5.5rem);
  line-height: 1;
}

.step h3 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: inherit; }

.step__icon {
  width: 84px;
  height: 84px;
  padding: 20px;
  border-radius: 50%;
}

.step--red { background: var(--red); color: var(--white); }
.step--red .step__num { color: var(--maroon); }
.step--red .step__icon { background: var(--maroon); fill: var(--white); }

.step--dark { background: var(--maroon); color: var(--white); }
.step--dark .step__num { color: var(--red); }
.step--dark .step__icon { background: var(--red); fill: var(--white); }

.step--pink { background: var(--pink); color: var(--maroon); }
.step--pink .step__num { color: var(--red); }
.step--pink .step__icon { background: var(--red); fill: var(--white); }

/* ---------- 6. Paquetes ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2.4rem;
}

.plan h3 { font-size: clamp(2rem, 3.5vw, 2.6rem); }
.plan__for { font-weight: 600; }

/* Precio general "Desde $2,100" */
.price-from {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.6rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.price-from strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 4rem);
  line-height: 1;
}

.price-from span { font-size: 1.05rem; }

.plan__list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
  flex: 1;
}

.plan__list li {
  padding-left: 1.8rem;
  position: relative;
}

.plan__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.25rem;
  height: 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--red);
  color: var(--white);
}

.plan .btn { align-self: stretch; }

.plan__badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--maroon);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

.plan--featured { background: var(--red); color: rgba(255, 255, 255, 0.94); }
.plan--featured h3 { color: var(--white); }
.plan--featured .plan__list li::before { background: var(--white); color: var(--red); }

/* ---------- 7. Preguntas frecuentes ---------- */
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.faq { display: grid; gap: 0.75rem; }

.faq details {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 0 1.4rem;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 2rem 1.15rem 0;
  font-weight: 700;
  color: var(--maroon);
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--red);
  transition: transform 0.2s;
}

.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 1.2rem; }

/* ---------- 8. Llamado final ---------- */
.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.closing__icon { width: 110px; margin-bottom: 1.5rem; }
.closing h2 { font-size: clamp(2.8rem, 7vw, 5.2rem); max-width: 14ch; }
.closing__lead { font-size: 1.2rem; max-width: 36rem; }

.closing__checks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
  margin: 1.8rem 0 2.2rem;
  font-weight: 700;
}

.closing__checks li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--red);
  font-size: 0.85rem;
}

.closing__phone { margin-top: 1rem; font-weight: 600; opacity: 0.85; }

/* ---------- Pie de página ---------- */
.footer {
  background: var(--maroon);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0;
  font-size: 0.9rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer__social { display: flex; gap: 1.25rem; font-weight: 600; }
.footer__social a:hover { color: var(--white); }

/* ---------- Botón fijo de WhatsApp (siempre visible) ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--whatsapp);
  color: #06331a;
  font-weight: 800;
  padding: 0.8rem 1.4rem 0.8rem 1rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: pulse 2.6s ease-in-out infinite;
  transition: transform 0.2s, background 0.2s;
}

.wa-float svg { width: 30px; height: 30px; fill: currentColor; flex: none; }
.wa-float:hover { background: var(--whatsapp-dark); color: var(--white); transform: translateY(-2px); }

/* ---------- Animación al hacer scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible { opacity: 1; transform: none; }

/* Efecto cascada: cada elemento de una lista espera un poquito más */
.js .reveal { transition-delay: calc(var(--i, 0) * 90ms); }

/* Las etiquetas pequeñas de sección entran desde la izquierda */
.js .reveal--left { transform: translateX(-24px); }

/* Números grandes que "rebotan" al aparecer (01, 02… y el precio) */
.js .pop {
  display: inline-block;
  opacity: 0;
  transform: scale(0.6);
  transition:
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s,
    opacity 0.3s ease 0.2s;
}

.js .step__num.pop { display: block; }
.js .is-visible .pop { opacity: 1; transform: none; }

/* La calavera del inicio se mece suavemente */
.hero__icon { animation: bob 6s ease-in-out 1s infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(-3deg); }
}

/* Modo ligero (teléfonos sencillos): sin animaciones que se repiten */
.lite .hero__icon,
.lite .hero__badge,
.lite .wa-float,
.lite .btn--whatsapp,
.lite .feature-video__play::before { animation: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn--whatsapp,
  .wa-float,
  .hero__badge,
  .feature-video__play::before { animation: none; }
  .js .anim { animation: none; opacity: 1; transform: none; }
  .js .pop { opacity: 1; transform: none; transition: none; }
  .hero__icon { animation: none; }
  mark.hl::before { transition: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Menú: en pantallas medianas y chicas los enlaces van en un desplegable */
@media (max-width: 1000px) {
  .nav-toggle { display: flex; }
  .header__pill { gap: 0.6rem; }
  .nav-cta { margin-left: auto; }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    margin: 0;
    padding: 0.8rem;
    background: rgba(59, 10, 18, 0.98);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(59, 10, 18, 0.4);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }

  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 0.8rem 1rem; font-size: 1rem; }
  .nav a.is-active::after { left: auto; right: 1rem; top: 50%; bottom: auto; transform: translateY(-50%); }
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero__media { width: min(70%, 300px); }

  /* En tablet y celular el inicio se centra alrededor del logo */
  .hero__text { text-align: center; }
  .hero__brand { margin: 0 auto; align-items: center; }
  .hero__actions,
  .hero__proof { justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .case { grid-template-columns: 1fr; gap: 1.5rem; }
  .faq-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 760px) {
  .section { padding: 76px 0; }
  .hero { padding: 120px 0 70px; }
  .hero__badge { font-size: 0.8rem; padding: 0.45rem 0.8rem; }
  .hero__badge--top { left: -18%; }
  .hero__badge--bottom { right: -16%; bottom: auto; top: 34%; }
  .feature-video__caption { font-size: 0.75rem; padding: 2.5rem 0.8rem 0.8rem; }
  .feature-video__caption strong { font-size: 1.6rem; }
  .feature-video__play { width: 68px; height: 68px; background-size: 32px, auto; }
  .nav-cta__arrow { display: none; } /* en celular solo el texto */
  .nav-cta { padding: 0.6rem 1rem; }
  .header__pill { padding-left: 1rem; }
  .brand__icon { width: 30px; }
  .brand__word { width: 88px; }
  .plans { grid-template-columns: 1fr; }
  .stat { min-height: 170px; padding: 1.4rem; }
  .case--featured { padding: 1.6rem; }
  .videos,
  .case--featured .videos { grid-auto-columns: 42%; }
  .videos--small { grid-auto-columns: 38%; }
  .mini-cases { grid-template-columns: repeat(2, 1fr); }
  .step { grid-template-columns: auto 1fr; padding: 1.3rem 1.4rem; }
  .step__icon { display: none; }
  .plan { padding: 1.8rem; }

  /* En celular el botón de WhatsApp ocupa todo el ancho */
  .wa-float { left: 16px; right: 16px; bottom: 14px; justify-content: center; padding: 0.85rem 1rem; }
  .footer { padding-bottom: 6rem; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .stat { min-height: 0; }
}
