/* ============ VARIABLES ============ */
:root {
  --blue-darkest: #050f24;
  --blue-dark: #0a1d42;
  --blue: #0d3f8f;
  --blue-mid: #1461c4;
  --celeste: #29b6f6;
  --cyan: #22e6d6;
  --white: #ffffff;
  --text-soft: #cfe0f7;
  --text-muted: #a9bede;
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-border: rgba(255, 255, 255, 0.14);
  --whatsapp: #25d366;
  --whatsapp-dark: #1fb257;
  --radius: 18px;
  --shadow: 0 20px 45px rgba(2, 8, 22, 0.45);
  --transition: all 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-soft);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(34, 230, 214, 0.28), transparent 42%),
    radial-gradient(circle at 88% 6%, rgba(41, 182, 246, 0.26), transparent 46%),
    radial-gradient(circle at 50% 78%, rgba(34, 230, 214, 0.14), transparent 55%),
    linear-gradient(160deg, var(--blue-darkest) 0%, var(--blue-dark) 40%, var(--blue) 78%, var(--blue-dark) 100%);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; color: var(--white); }

/* ============ LOGO BADGE ============ */
.logo-badge {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border-radius: 12px;
  padding: 6px 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.logo-badge img { height: 34px; width: auto; display: block; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}
.wa-icon { width: 22px; height: 22px; }

.btn-under-video {
  width: 100%;
  margin-top: 18px;
}

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 15, 36, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.nav {
  display: flex;
  gap: 32px;
}
.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: var(--transition);
}
.nav a:hover { opacity: 1; color: var(--cyan); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 64px 0 40px;
}

.hero-inner {
  display: flex;
  justify-content: center;
  text-align: center;
}

.hero-text { max-width: 780px; }

/* Logo redondo del hero, con glow de fondo */
.hero-logo {
  position: relative;
  width: clamp(130px, 16vw, 180px);
  aspect-ratio: 1;
  margin: 0 auto 28px;
}
.hero-logo-glow {
  position: absolute;
  inset: -35%;
  background: radial-gradient(circle, rgba(34, 230, 214, 0.5), rgba(41, 182, 246, 0.22) 45%, transparent 70%);
  filter: blur(24px);
  z-index: 0;
  animation: logoPulse 4.5s ease-in-out infinite;
}
.hero-logo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 0 10px rgba(34, 230, 214, 0.07),
    0 18px 45px rgba(2, 8, 22, 0.6);
}

@keyframes logoPulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.07); }
}

.badge {
  display: inline-block;
  background: rgba(34, 230, 214, 0.15);
  border: 1px solid rgba(34, 230, 214, 0.4);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 22px;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  margin-bottom: 20px;
}
.hero-text h1 span {
  background: linear-gradient(90deg, var(--celeste), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--text-soft);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 36px;
}

.steps {
  display: flex;
  gap: 32px;
  margin-bottom: 8px;
  justify-content: center;
  text-align: left;
  flex-wrap: wrap;
}
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  max-width: 340px;
}
.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--celeste), var(--cyan));
  color: var(--blue-darkest);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.step h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.step p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ============ HERO VIDEO (grande) ============ */
.hero-video-row {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}
.hero-video {
  position: relative;
  width: 100%;
  max-width: 980px;
}
.video-glow {
  position: absolute;
  inset: -60px;
  background: radial-gradient(circle, rgba(34, 230, 214, 0.35), transparent 65%);
  filter: blur(20px);
  z-index: 0;
}
.video-frame {
  position: relative;
  z-index: 1;
  padding: 4px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--cyan), var(--celeste), var(--blue-mid));
}
.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 24px;
  overflow: hidden;
  background: var(--blue-darkest);
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-note {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  margin-top: 14px;
  font-style: italic;
}

/* ============ BENEFITS ============ */
.benefits {
  padding: 100px 0 90px;
}
.eyebrow {
  display: block;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.benefits h2, .community h2, .faq h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 44px;
  max-width: 700px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.benefit-card {
  background: var(--glass-bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.benefit-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  background: rgba(34, 230, 214, 0.08);
}
.benefit-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.benefit-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.benefit-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ============ COMMUNITY / CAROUSEL ============ */
.community {
  padding: 90px 0 70px;
}
.community h2 { max-width: 700px; }

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.carousel-track-wrapper {
  overflow: hidden;
  flex: 1;
}
.carousel-track {
  display: flex;
  list-style: none;
  gap: 20px;
  transition: transform 0.5s ease;
}
.slide {
  flex: 0 0 232px;
}
.slide-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: var(--transition);
  aspect-ratio: 778 / 1600;
}
.slide-card:hover {
  border-color: var(--cyan);
  transform: translateY(-6px);
}
.slide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.carousel-btn:hover {
  background: var(--cyan);
  color: var(--blue-darkest);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active {
  background: var(--cyan);
  width: 22px;
  border-radius: 5px;
}

/* ============ CTA MID ============ */
.cta-mid {
  padding: 40px 0 90px;
  text-align: center;
}
.cta-mid-panel {
  max-width: 820px;
  margin: 0 auto;
  padding: 46px 40px;
  border-radius: 24px;
  background: linear-gradient(120deg, rgba(20, 97, 196, 0.35), rgba(34, 230, 214, 0.18));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}
.cta-mid h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

/* ============ FAQ ============ */
.faq {
  padding: 90px 0 100px;
}
.accordion {
  max-width: 100%;
}
.accordion-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  cursor: pointer;
}
.accordion-icon {
  flex-shrink: 0;
  color: var(--cyan);
  font-size: 1.4rem;
  font-weight: 400;
  transition: var(--transition);
}
.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}
.accordion-item.active .accordion-body {
  max-height: 300px;
  padding: 0 24px 22px;
}
.accordion-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============ CTA FINAL ============ */
.cta-final {
  padding: 90px 0;
  text-align: center;
}
.cta-logo-badge {
  padding: 10px 20px;
  margin-bottom: 24px;
}
.cta-logo { height: 46px; width: auto; }
.cta-final h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}
.cta-final p {
  color: var(--text-soft);
  margin-bottom: 30px;
}

/* ============ FOOTER ============ */
.footer {
  padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  text-align: center;
}
.footer-logo { height: 26px; width: auto; }
.footer-inner p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============ WHATSAPP FLOTANTE ============ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  z-index: 200;
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 32px; height: 32px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blue-darkest);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    display: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .benefit-grid {
    grid-template-columns: 1fr;
  }
  .steps { flex-direction: column; gap: 20px; }
  .slide { flex: 0 0 68vw; }
  .logo-badge img { height: 28px; }
}
