/* ==========================================================================
   CEK · Secciones específicas
   ========================================================================== */

/* --- HERO --- */
.hero {
  position: relative;
  background-color: var(--bg);
  overflow: hidden;
}
/* Foto de fondo: se inyecta vía --hero-img (clase utilitaria) si hay foto real */
.hero__bg {
  position: absolute;
  inset: 0;
  /* glow y velo encima; la foto (si existe) va como capa inferior vía --hero-img */
  background-image: var(--hero-glow), var(--hero-overlay), var(--hero-img, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--bg);
}
.hero__bg::after {
  /* Motivo de marca: símbolo solar como marca de agua sutil */
  content: "";
  position: absolute;
  right: -80px;
  top: 40px;
  width: 380px;
  height: 380px;
  background: url('../logos/cek-symbol-amber-tight.png') no-repeat center / contain;
  opacity: 0.06;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5rem);
  display: grid;
  gap: 40px;
}
@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 56px;
  }
}

.hero__display {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  font-weight: var(--fw-extrabold);
  text-transform: uppercase;
  margin: 16px 0;
}
.hero__display .l1 { color: var(--amber-text); display: block; }
.hero__display .l2 { color: var(--text); display: block; }

.hero__sub {
  color: var(--text-muted);
  max-width: 48ch;
  margin-bottom: 24px;
}
.hero__ctas {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
@media (min-width: 480px) { .hero__ctas { grid-auto-flow: column; grid-auto-columns: max-content; } }

/* Placeholder genérico de imagen (rectángulo con motivo de marca) */
.img-ph {
  position: relative;
  border-radius: var(--radius-card);
  background:
    var(--hero-glow),
    linear-gradient(135deg, var(--bg-elevated), var(--surface));
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 180px;
  color: var(--text-subtle);
}
.img-ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../logos/cek-symbol-amber-tight.png') no-repeat center / 64px;
  opacity: 0.10;
}
.img-ph__label {
  position: relative;
  font-size: var(--fs-label);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 1;
}
.img-ph--16x9 { aspect-ratio: 16 / 9; }
.img-ph--4x3 { aspect-ratio: 4 / 3; }

/* Imagen real de sección (reemplaza los placeholders .img-ph) */
.section-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  object-fit: cover;
  background-color: var(--bg-elevated);
}
.section-img--16x9 { aspect-ratio: 16 / 9; }
.section-img--4x3 { aspect-ratio: 4 / 3; }

/* --- El Problema --- */
.problem__copy { color: var(--text-muted); }
.problem__copy p + p { margin-top: 1rem; }

/* --- Diferenciador: dos columnas en desktop --- */
@media (min-width: 1024px) {
  .diff__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }
}
.diff__copy p { color: var(--text-muted); }
.diff__copy p + p { margin-top: 1rem; }

/* --- Casos reales --- */
.case__meta { display: grid; gap: 6px; margin-top: 16px; }
.case__meta .row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-small); }
.case__meta .row span:first-child { color: var(--text-muted); }
.case__meta .row span:last-child { font-weight: var(--fw-bold); text-align: right; }
.case__roi { color: var(--amber-text); }

/* --- Testimoniales --- */
.testi-carousel { position: relative; }
.testi-scroll {
  display: flex;
  gap: var(--gap-cards);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--container-pad);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.testi-scroll::-webkit-scrollbar { display: none; }
.testi-scroll:focus-visible { outline-offset: 6px; }
.testi-scroll .card {
  scroll-snap-align: start;
  flex: 0 0 82%;
}
@media (min-width: 640px) {
  .testi-scroll .card { flex: 0 0 46%; }
}
@media (min-width: 1024px) {
  .testi-scroll .card { flex: 0 0 calc((100% - 2 * var(--gap-cards)) / 3); }
}

/* Flechas de navegación: sutiles, ocultas en móvil (ahí se usa el dedo) */
.testi-nav {
  display: none;
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--amber-text);
  opacity: 0.55;
  box-shadow: var(--shadow-sm);
  transform: translateY(-50%);
  transition: opacity var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.testi-nav .icon { width: 16px; height: 16px; }
.testi-nav--prev { left: -6px; }
.testi-nav--next { right: -6px; }
.testi-nav--prev .icon { transform: rotate(180deg); }
.testi-nav:hover { opacity: 1; border-color: var(--brand-amber); }
.testi-nav:active { transform: translateY(-50%) scale(0.92); }
.testi-nav[disabled] { opacity: 0.18; pointer-events: none; }
@media (min-width: 768px) {
  .testi-nav { display: flex; }
}
@media (min-width: 1024px) {
  .testi-nav--prev { left: -20px; }
  .testi-nav--next { right: -20px; }
}

.testi__stars { color: var(--amber-text); letter-spacing: 2px; margin-bottom: 12px; }
.testi__quote { font-size: var(--fs-body); margin-bottom: 18px; }
.testi__author { display: flex; align-items: center; gap: 12px; }
.testi__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand-amber-100);
  color: var(--amber-text);
  display: grid; place-items: center;
  font-weight: var(--fw-bold);
  flex: 0 0 auto;
}
.testi__name { font-weight: var(--fw-bold); font-size: var(--fs-small); }
.testi__role { font-size: var(--fs-label); color: var(--text-subtle); }

/* --- CTA Final: dos columnas --- */
@media (min-width: 1024px) {
  .cta-final__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: start;
  }
}
.wa-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 24px;
}
.wa-card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(37,211,102,0.15);
  color: var(--whatsapp);
  margin-bottom: 16px;
}
.wa-card__icon .icon { width: 28px; height: 28px; }
.wa-card p { color: var(--text-muted); font-size: var(--fs-small); margin: 10px 0 20px; }

/* Nota inline (para quién / casos) */
.note {
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 3px solid var(--brand-amber);
  background: var(--brand-amber-100);
  border-radius: 0 10px 10px 0;
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.note strong { color: var(--text); }
