/* ==========================================================
   SKOOL CO. — HERO PREMIUM v3
   Layout: Dos columnas · Foto instructor · Solo WhatsApp
   Paleta: Blanco · #2563EB · Grises suaves
   Tipografía: Manrope 800 + Inter 400/600
   ========================================================== */

/* ── Variables ── */
:root {
  --h-blue:        #2563EB;
  --h-blue-dark:   #1d4ed8;
  --h-blue-xsoft:  rgba(37,99,235,0.06);
  --h-blue-soft:   rgba(37,99,235,0.10);
  --h-blue-mid:    rgba(37,99,235,0.18);
  --h-blue-glow:   rgba(37,99,235,0.22);
  --h-text:        #0a0a0b;
  --h-gray:        #64748b;
  --h-gray-lt:     #94a3b8;
  --h-border:      rgba(37,99,235,0.14);
  --h-white:       #ffffff;
}

/* ── Accesibilidad ── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border-width: 0;
}

/* ══════════════════════════════════════════════════════════
   SECCIÓN HERO
   ══════════════════════════════════════════════════════════ */
#skool-hero {
  position: relative;
  overflow: hidden;
  background: var(--h-white);
  padding-top: 96px;        /* clearance navbar ~80px */
  padding-bottom: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Fondo decorativo ── */
.hero-bg-blobs {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(72px); opacity: 0.7;
}
.hero-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.09) 0%, transparent 70%);
  top: -160px; right: -80px;
}
.hero-blob-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(96,165,250,0.08) 0%, transparent 70%);
  bottom: 0px; left: -60px;
}
.hero-blob-3 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
  top: 55%; left: 42%;
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(37,99,235,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Layout principal ── */
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 56px 48px 80px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* ════════════════════════════════════
   COLUMNA IZQUIERDA — CONTENIDO
   ════════════════════════════════════ */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,0.07);
  color: var(--h-blue);
  border: 1px solid rgba(37,99,235,0.20);
  border-radius: 999px;
  padding: 9px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.03em;
  width: fit-content;
  box-shadow: 0 2px 12px rgba(37,99,235,0.07);
  cursor: default; user-select: none;
  transition: background 0.22s, box-shadow 0.22s, transform 0.18s;

  opacity: 0;
  animation: hFadeIn 0.6s ease 0.05s forwards;
}
.hero-badge:hover {
  background: rgba(37,99,235,0.11);
  box-shadow: 0 4px 18px rgba(37,99,235,0.13);
  transform: translateY(-1px);
}

/* Título h1 */
.hero-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 5.4vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.034em;
  color: var(--h-text);
  margin: 28px 0 0;

  opacity: 0;
  animation: hFadeUp 0.7s ease 0.18s forwards;
}
.hero-title-blue {
  color: var(--h-blue);
  display: block;
  background: linear-gradient(135deg, #2563EB 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtítulo */
.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 16.5px; font-weight: 400; line-height: 1.74;
  color: var(--h-gray);
  max-width: 580px;
  margin: 24px 0 0;

  opacity: 0;
  animation: hFadeUp 0.7s ease 0.32s forwards;
}

/* Formulario wrap */
.hero-form-wrap {
  margin-top: 36px;
  opacity: 0;
  animation: hFadeUp 0.7s ease 0.46s forwards;
}

/* Formulario */
.hero-form { display: flex; flex-direction: column; gap: 12px; }

/* Campo único WhatsApp */
.hero-wa-field {
  position: relative;
  display: flex;
  align-items: center;
}
.hero-wa-field input {
  width: 100%; box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  font-size: 15.5px; font-weight: 400;
  color: var(--h-text);
  background: #ffffff;
  border: 1.5px solid rgba(37,99,235,0.16);
  border-radius: 14px;
  padding: 16px 50px 16px 52px;
  outline: none;
  transition: border-color 0.22s, box-shadow 0.22s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.hero-wa-field input::placeholder { color: var(--h-gray-lt); }
.hero-wa-field input:focus {
  border-color: var(--h-blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.10), 0 1px 4px rgba(0,0,0,0.04);
}
.hero-wa-field input.h-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239,68,68,0.09) !important;
}

/* Ícono WhatsApp a la izquierda */
.hero-wa-icon-left {
  position: absolute; left: 16px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.hero-wa-icon-left svg {
  width: 22px; height: 22px;
  color: var(--h-gray-lt);
  transition: color 0.2s;
}
.hero-wa-field:focus-within .hero-wa-icon-left svg {
  color: var(--h-blue);
}

/* Mensaje de error/estado */
.hero-form-msg {
  display: none;
  padding: 11px 16px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px; font-weight: 500;
}
.hero-form-msg.error {
  display: block;
  background: rgba(239,68,68,0.07);
  color: #dc2626;
  border: 1px solid rgba(239,68,68,0.16);
}
.hero-form-msg.success {
  display: block;
  background: rgba(34,197,94,0.08);
  color: #16a34a;
  border: 1px solid rgba(34,197,94,0.18);
}

/* Botón CTA */
.hero-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  font-family: 'Manrope', sans-serif;
  font-size: 16.5px; font-weight: 700; letter-spacing: 0.01em;
  color: #ffffff;
  background: var(--h-blue);
  border: none; border-radius: 14px;
  padding: 17px 28px;
  cursor: pointer; text-decoration: none;
  box-shadow:
    0 6px 20px rgba(37,99,235,0.30),
    0 1px 4px rgba(37,99,235,0.20);
  transition: background 0.2s, transform 0.18s, box-shadow 0.22s;
  position: relative; overflow: hidden;
}
.hero-cta-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, transparent 100%);
  pointer-events: none;
}
.hero-cta-btn:hover {
  background: var(--h-blue-dark);
  transform: translateY(-2px);
  box-shadow:
    0 12px 32px rgba(37,99,235,0.38),
    0 2px 8px rgba(37,99,235,0.22);
}
.hero-cta-btn:active { transform: translateY(0); }
.hero-cta-btn svg {
  width: 18px; height: 18px; flex-shrink: 0;
  transition: transform 0.2s;
}
.hero-cta-btn:hover svg { transform: translateX(3px); }

/* Indicadores */
.hero-indicators {
  display: flex; align-items: center; gap: 18px;
  margin-top: 20px; flex-wrap: wrap;
}
.hero-indicator {
  display: flex; align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600;
  color: #475569; white-space: nowrap;
}
.hero-indicator-emoji { font-size: 14px; line-height: 1; }
.hero-ind-divider {
  width: 1px; height: 14px;
  background: rgba(37,99,235,0.15); flex-shrink: 0;
}

/* ════════════════════════════════════
   COLUMNA DERECHA — FOTO INSTRUCTOR
   ════════════════════════════════════ */
.hero-photo-col {
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  animation: hFadeRight 0.85s ease 0.38s forwards;
}

/* Wrapper con fondo abstracto */
.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
}

/* Elipse decorativa azul detrás de la foto */
.hero-photo-bg-blob {
  position: absolute;
  top: -24px; left: -24px; right: -24px; bottom: -24px;
  background: linear-gradient(135deg,
    rgba(37,99,235,0.13) 0%,
    rgba(96,165,250,0.09) 50%,
    rgba(37,99,235,0.05) 100%
  );
  border-radius: 36px;
  z-index: 0;
  filter: blur(2px);
}

/* Círculos decorativos flotantes */
.hero-photo-dot-ring {
  position: absolute;
  border: 2px solid rgba(37,99,235,0.12);
  border-radius: 50%;
  z-index: 0;
}
.hero-photo-dot-ring-1 {
  width: 100px; height: 100px;
  top: -16px; right: -16px;
}
.hero-photo-dot-ring-2 {
  width: 60px; height: 60px;
  bottom: 30px; left: -20px;
  border-color: rgba(37,99,235,0.09);
}

/* Patrón de puntos decorativo */
.hero-photo-dots {
  position: absolute;
  bottom: -10px; right: -10px;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(5, 6px);
  gap: 8px;
}
.hero-photo-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(37,99,235,0.20);
}

/* La fotografía en sí */
.hero-instructor-img {
  position: relative; z-index: 1;
  width: 100%;
  border-radius: 28px;
  display: block;
  object-fit: cover;
  object-position: center top;
  box-shadow:
    0 0 0 1px rgba(37,99,235,0.08),
    0 24px 72px rgba(37,99,235,0.18),
    0 8px 24px rgba(0,0,0,0.10);
  /* Glow azul muy suave */
  filter: drop-shadow(0 0 32px rgba(37,99,235,0.14));
  transition: transform 0.4s ease, filter 0.4s ease;
  aspect-ratio: 3/4;
}
.hero-photo-wrap:hover .hero-instructor-img {
  transform: translateY(-4px) scale(1.01);
  filter: drop-shadow(0 0 44px rgba(37,99,235,0.20));
}

/* Badge flotante sobre la foto */
.hero-photo-badge {
  position: absolute;
  bottom: 28px;
  left: -20px;
  z-index: 2;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(37,99,235,0.13);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 0 8px 28px rgba(37,99,235,0.12), 0 2px 8px rgba(0,0,0,0.06);
  display: flex; align-items: center; gap: 10px;
  animation: hFloatY 4s ease-in-out infinite;
}
.hero-photo-badge-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(37,99,235,0.10);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-photo-badge-icon .material-symbols-outlined {
  font-size: 20px;
  color: var(--h-blue) !important;
}
.hero-photo-badge-text strong {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 13.5px; font-weight: 700;
  color: #0a0a0b;
  line-height: 1.2;
}
.hero-photo-badge-text span {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 500;
  color: #64748b;
}

/* Badge flotante superior derecho */
.hero-photo-badge-top {
  position: absolute;
  top: 20px;
  right: -18px;
  z-index: 2;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(37,99,235,0.13);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 8px 24px rgba(37,99,235,0.10), 0 2px 6px rgba(0,0,0,0.05);
  display: flex; align-items: center; gap: 8px;
  animation: hFloatY 4.5s ease-in-out 0.8s infinite;
}
.hero-photo-badge-top-stars {
  display: flex; gap: 2px;
}
.hero-photo-badge-top-stars span {
  font-size: 12px; color: #f59e0b;
}
.hero-photo-badge-top-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 700;
  color: #0a0a0b;
}

/* ════════════════════════════════════
   SECCIÓN WHY — no modificada abajo
   ════════════════════════════════════ */
#skoolco-why {
  background: #ffffff;
  padding: 96px 48px;
  position: relative;
  overflow: hidden;
}
#skoolco-why::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 600px 400px at 80% 50%, rgba(37,99,235,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.why-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
}
.why-kicker {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--h-blue);
  background: rgba(37,99,235,0.07);
  border: 1px solid rgba(37,99,235,0.16);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 20px;
}
.why-section-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(28px, 3.5vw, 40px); font-weight: 800;
  color: #0a0a0b; line-height: 1.15; letter-spacing: -0.02em;
  margin: 0 0 48px;
}
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.why-img-wrap {
  position: relative; border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(37,99,235,0.10), 0 4px 16px rgba(0,0,0,0.08);
  border: 1px solid rgba(37,99,235,0.10); aspect-ratio: 4/3;
}
.why-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.why-img-wrap:hover img { transform: scale(1.03); }
.why-img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(37,99,235,0.08) 100%);
  pointer-events: none;
}
.why-content { display: flex; flex-direction: column; gap: 0; }
.why-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(26px, 2.8vw, 36px); font-weight: 800;
  color: #0a0a0b; line-height: 1.15; letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.why-body {
  font-family: 'Inter', sans-serif;
  font-size: 16px; font-weight: 400; line-height: 1.72;
  color: #6b7280; margin: 0 0 36px; max-width: 500px;
}
.why-benefits {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.why-benefit-card {
  background: #f8faff;
  border: 1px solid rgba(37,99,235,0.10); border-radius: 14px;
  padding: 18px 20px; display: flex; align-items: flex-start; gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.why-benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.10);
  border-color: rgba(37,99,235,0.22);
}
.why-benefit-icon {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px;
  background: rgba(37,99,235,0.10);
  display: flex; align-items: center; justify-content: center;
}
.why-benefit-icon .material-symbols-outlined { font-size: 18px; color: var(--h-blue) !important; }
.why-benefit-text {
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  color: #1e293b; line-height: 1.35; padding-top: 6px;
}

/* Scroll reveal */
.h-reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.h-reveal-right {
  opacity: 0; transform: translateX(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.h-reveal.h-visible, .h-reveal-right.h-visible {
  opacity: 1; transform: none;
}

/* ════════════════════════════════════
   ANIMACIONES
   ════════════════════════════════════ */
@keyframes hFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes hFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hFadeRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes hFloatY {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

/* ════════════════════════════════════
   OVERRIDES — aislar del reset global
   ════════════════════════════════════ */
#skool-hero .hero-wa-field input {
  background-color: #ffffff !important;
  color: #0a0a0b !important;
  border-color: rgba(37,99,235,0.16) !important;
  border-width: 1.5px !important;
}
#skool-hero .hero-wa-field input:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.10), 0 1px 4px rgba(0,0,0,0.04) !important;
}
#skool-hero .hero-wa-field input.h-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239,68,68,0.09) !important;
}
#skool-hero .hero-badge   { color: #2563eb !important; background-color: rgba(37,99,235,0.07) !important; border-color: rgba(37,99,235,0.20) !important; }
#skool-hero .hero-title   { color: #0a0a0b !important; }
#skool-hero .hero-subtitle { color: #64748b !important; }
#skool-hero .hero-cta-btn { background-color: #2563eb !important; color: #ffffff !important; }
#skool-hero .hero-cta-btn:hover { background-color: #1d4ed8 !important; }
#skool-hero .hero-indicator { color: #475569 !important; }
#skool-hero .hero-photo-badge-text strong { color: #0a0a0b !important; }
#skool-hero .hero-photo-badge-text span   { color: #64748b !important; }
#skool-hero .hero-photo-badge-top-label   { color: #0a0a0b !important; }
#skoolco-why .why-section-title, #skoolco-why .why-title { color: #0a0a0b !important; }
#skoolco-why .why-body    { color: #6b7280 !important; }
#skoolco-why .why-benefit-text { color: #1e293b !important; }
#skoolco-why .why-benefit-card { background: #f8faff !important; border-color: rgba(37,99,235,0.10) !important; }

/* ════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 48px 32px 64px;
  }
  #skool-hero {
    min-height: auto;
    padding-top: 90px;
  }
  .hero-photo-col { animation-name: hFadeUp; }
  .hero-photo-badge { left: 10px; }
  .hero-photo-badge-top { right: 10px; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  #skoolco-why { padding: 72px 32px; }
}
@media (max-width: 640px) {
  #skool-hero { padding-top: 80px; }
  .hero-inner { padding: 32px 20px 52px; }
  .hero-title { font-size: 38px; margin-top: 20px; }
  .hero-subtitle { font-size: 15px; margin-top: 18px; }
  .hero-indicators { gap: 12px; }
  .hero-ind-divider { display: none; }
  .hero-photo-badge, .hero-photo-badge-top { display: none; }
  .hero-photo-dots { display: none; }
  .why-benefits { grid-template-columns: 1fr; }
  #skoolco-why { padding: 52px 20px; }
}
