/* =========================================================
   Hero — Bloque 1 (Carlos)
   Estático, sin video. Imagen: assets/hero-photo.jpg (recorte
   fotográfico de assets/Imagen de hero.png — solo la escena,
   sin texto de marketing incrustado). Todo el copy es HTML real
   superpuesto, para SEO / accesibilidad / facilidad de edición.
   Medidas tomadas directamente de la imagen de referencia
   (diseño a 1536px de ancho).
   ========================================================= */

.hero { background: var(--ivory); }

.hero-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.hero-main {
  display: flex;
  align-items: stretch;
  gap: 0;
}

/* ---- Columna de texto (izquierda) ---- */

.hero-content {
  width: min(520px, 45%);
  flex-shrink: 0;
  padding: 1.25rem 0 0.75rem 45px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.flag-icon { width: 18px; height: 12px; border-radius: 2px; flex-shrink: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: var(--white);
  border: 1px solid rgba(10, 27, 51, 0.1);
  color: var(--navy-ink);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  padding: 8px 18px;
  border-radius: 999px;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 1.2rem + 2.4vw, 3.625rem); /* 58px @1536 */
  font-weight: 700;
  line-height: 1.15;
}

.hero-content h1 .accent { color: var(--red); }

.hero-sub {
  font-size: 1.0625rem; /* 17px */
  line-height: 1.55;
  color: rgba(10, 27, 51, 0.75);
  max-width: 44ch;
}
.hero-sub strong { color: var(--navy-ink); font-weight: 800; }

.hero-checklist { display: flex; flex-direction: column; gap: 0.3rem; }
.hero-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
}
.check-icon {
  width: 21px; height: 21px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.check-icon svg { width: 12px; height: 12px; }

.hero-ctas { display: flex; flex-direction: column; gap: 8px; margin-top: 0.1rem; }
.hero-ctas .btn { width: 62%; }

/* Rediseño de los CTA del Hero (2026-07-26) — pill con icono circular
   en cada extremo y texto en dos líneas, según referencia del cliente
   en Mejoras/Botones propuesta.png. Todo scopeado a .hero-ctas (Hero
   del Home) — no toca .btn-primary/.btn-secondary globales usados en
   el resto del sitio (header, footer, landings, CTA final). */
.hero-ctas .btn-primary,
.hero-ctas .btn-secondary {
  position: relative;
  justify-content: flex-start;
  gap: 11px;
  padding: 7px 9px;
  border: none;
  white-space: normal;
  text-align: left;
  overflow: hidden;
}

.hero-ctas .btn-primary::before,
.hero-ctas .btn-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 160% at 18% 0%, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
}

.hero-ctas .btn-primary {
  background: linear-gradient(135deg, #ff6a4d 0%, var(--red) 55%, #b81c24 100%);
  box-shadow: 0 16px 32px -12px rgba(230, 48, 56, 0.55);
}
.hero-ctas .btn-primary:hover {
  background: linear-gradient(135deg, #ff7a5e 0%, var(--red) 55%, var(--red-dark) 100%);
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -12px rgba(230, 48, 56, 0.6);
}

.hero-ctas .btn-secondary {
  background: linear-gradient(135deg, #1c66ad 0%, var(--navy) 55%, var(--navy-dark) 100%);
  color: var(--white);
}
.hero-ctas .btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -12px rgba(11, 72, 136, 0.5);
}

.hero-cta-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.hero-ctas .btn-primary .hero-cta-icon { color: var(--red); }
.hero-cta-icon svg { width: 17px; height: 17px; }

.hero-cta-icon-secondary {
  background: rgba(255, 255, 255, 0.18);
  font-size: 1rem;
}

.hero-cta-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hero-cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--white);
  line-height: 1.2;
}
.hero-cta-gratis {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: #ffd84d;
  line-height: 1.1;
}
.hero-cta-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
}

.hero-cta-arrow {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-ctas .btn-primary .hero-cta-arrow { color: var(--red); }
.hero-ctas .btn-secondary .hero-cta-arrow { color: var(--navy); }
.hero-cta-arrow svg { width: 14px; height: 14px; }

/* ---- Tarjeta de prueba social ---- */

.hero-proof {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 0;
  align-self: flex-start;
}

.testimonial {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1 1 220px;
  min-width: 200px;
  padding-right: 14px;
  border-right: 1px solid rgba(10, 27, 51, 0.1);
}

.avatar-initials {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.avatar-photo {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.testimonial blockquote {
  margin: 0 0 3px;
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(10, 27, 51, 0.82);
  line-height: 1.32;
}
.testimonial cite {
  font-style: normal;
  font-weight: 800;
  font-size: 0.76rem;
  color: var(--navy);
}

.proof-badges { display: flex; gap: 18px; flex: 1 1 160px; }
.proof-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--navy-ink);
  text-align: center;
  max-width: 84px;
}
.proof-badge svg { width: 24px; height: 24px; color: var(--navy); }

/* ---- Foto (derecha) ---- */

/* La foto NUNCA se recorta: en vez de forzar un alto fijo y usar
   object-fit:cover (que obliga a recortar los costados cuando la
   ventana es más angosta que la referencia de 1536px), el
   contenedor usa aspect-ratio para mantener siempre la proporción
   real de assets/hero-photo.jpg (974×780). Así la burbuja "¡Hola!
   Soy Laura...", la taza y el pizarrón quedan siempre completos —
   la foto simplemente se escala más chica en pantallas angostas,
   nunca se corta. */
/* La caja de la foto siempre se estira (align-items:stretch en
   .hero-main) al mismo alto exacto que la columna de texto — así se
   elimina cualquier hueco/mismatch entre ambas columnas, sin importar
   el ancho o alto del viewport (bug real detectado y corregido el
   2026-07-26: antes, con aspect-ratio fijo, la foto podía quedar más
   alta o más baja que el texto según el ancho de pantalla, dejando un
   hueco de color de fondo antes de la siguiente sección). object-fit:
   contain en el <img> garantiza que la foto nunca se recorte ni se
   deforme dentro de esa caja — si la caja no calza exacto con su
   proporción real (974/780), el margen sobrante queda del mismo color
   ivory de fondo (imperceptible). */
.hero-photo-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  border-radius: 0;
}

.hero-photo-wrap img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* ---- Franja inferior (ancho completo) ---- */

.hero-strip {
  background: var(--white);
  border-top: 1px solid rgba(10, 27, 51, 0.08);
}
.strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 20px 45px;
}
.strip-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-ink);
  max-width: 185px;
  line-height: 1.25;
  flex-shrink: 0;
  text-align: center;
}
.strip-items { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; }
.strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-ink);
}
.strip-item svg { width: 22px; height: 22px; color: var(--red); flex-shrink: 0; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px) {
  .hero-main { flex-direction: column; align-items: stretch; }
  /* La foto se ve primero visualmente en móvil (orden CSS únicamente
     — el orden real del DOM se mantiene con el H1 primero para SEO
     y lectores de pantalla). En móvil sí se recorta a un alto fijo
     (no hay una columna de texto compitiendo por ancho al lado), con
     el encuadre centrado en la cara + laptop con el logo. */
  .hero-photo-wrap {
    order: -1;
    aspect-ratio: auto;
    height: 60vh;
    min-height: 380px;
  }
  .hero-photo-wrap img { object-fit: cover; object-position: 46% 22%; }

  .hero-content { order: 0; width: 100%; padding: 2rem 6vw 1.75rem; }
  .strip-inner { padding: 18px 6vw; }
  .strip-title { max-width: none; }
}

@media (max-width: 560px) {
  .testimonial { border-right: none; padding-right: 0; }
  .hero-proof { flex-direction: column; align-items: stretch; }
}

/* Laptops con poco alto de viewport (2026-07-26): el Hero completo
   (incluyendo los botones) debe verse sin necesidad de scroll. No se
   toca el diseño/color de los botones ni los emojis — solo se reduce
   interlineado/espaciado de los textos para que la columna de texto
   (y por lo tanto los botones) quepa. El ajuste de la foto (stretch +
   object-fit:contain, ver reglas base de .hero-main/.hero-photo-wrap
   más arriba) ya aplica siempre, en todos los tamaños de pantalla —
   no es exclusivo de este media query. */
@media (min-width: 981px) and (max-height: 820px) {
  .hero-content { padding: 0.25rem 0 0.4rem 45px; gap: 0.3rem; }
  .hero-content h1 { line-height: 0.98; }
  .hero-sub { line-height: 1.32; }
  .hero-checklist { gap: 0.1rem; }
  .hero-ctas { margin-top: 10px; }
}
