
/* === SECCIONES GENERALES === */
section {
  padding: 10px 0px
}

.section-text {
  max-width: 850px;
  margin: 100px auto;
  text-align: left;
  font-size: 2.5rem;
  letter-spacing: 0.2px;
}

.section-text h2 {
  color: #00b37a;
  font-size: 1.6rem;
  margin-top: 60px;
  margin-bottom: 15px;
  font-weight: 500;
}

/* SECTION TEXT RESPONSIVE */
@media (max-width: 768px) {
  .section-text {
    margin: 60px auto;
    padding: 0 15px;
  }
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  z-index: 3000;
  box-sizing: border-box;
  overflow-x: clip;
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

@media (max-width: 768px) {
  .navbar {
    padding: 16px 20px;
  }
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.navbar {
  --nav-text-color: #fff;
  --logo-color: #00b37a;
}



/* === MEGA MENÚ === */

.nav-dropdown,
.nav-dropdown-recursos {
  position: relative;
}

/* Panel general */
.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(20px);
  width: 100%;
  max-width: 100%;
  padding: 40px 60px; 
  box-sizing: border-box;
  display: flex; 
  justify-content: center; 
  gap: 40px; 
  opacity: 0; 
  pointer-events: none; 
  transition: all 0.28s ease; 
  z-index: 999; }

.dropdown-panel.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(5px);
}

/* Panel recursos */
.dropdown-panel-recursos {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);

  width: 60vw;
  max-width: 700px;

  display: flex;
  justify-content: center;
  gap: 25px;

  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 999;
}

.dropdown-panel-recursos.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(5px);
}

@media (max-width: 768px) {
  .nav-links,
  .dropdown-panel,
  .dropdown-panel-recursos {
    display: none !important;
  }
}

/* === ACOMPAÑAMIENTOS === */

.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.program-card {
  text-align: center;
}

.program-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
}

/* === ACOMPAÑAMIENTOS · RESPONSIVE === */

@media (max-width: 1000px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .programs-grid {
    display: grid;
    box-sizing: border-box;

    /* 🔥 ANULAR grid previo */
    grid-template-columns: none;

    /* Nuevo comportamiento */
    grid-auto-flow: column;
    grid-auto-columns: calc(80% - 10px);

    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;

    max-width: none;
    margin: 0;
    padding: 0 20px 20px;
  }

  .program-card {
    scroll-snap-align: start;
  }
}

/* === RECURSOS === */
#recursos {
  text-align: center;
  background: #f8f8f8;
}

/* === EBOOKS === */
.ebooks-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin: 60px auto 50px;
}

/* === TESTIMONIOS === */
#testimonios {
  background: #f8f8f8;
  padding: 120px 20px;
  text-align: center;
}

#testimonios h2 {
  color: #00b37a;
  font-size: 2rem;
  margin-bottom: 60px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.testimonios-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

/* === HERO SPLIT === */
.hero-split {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.hero-split.reverse {
   display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
  flex-direction: row-reverse;
}

.hero-carousel,
.hero-split-content {
  width: 50%;
  height: 100%;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-split,
  .hero-split.reverse {
    flex-direction: column;
    height: auto;
  }

  .hero-carousel,
  .hero-split-content {
    width: 100%;
    height: 50vh;
  }

  .hero-split-content {
    padding: 40px 20px;
  }
}
@media (max-width: 900px) {
  .hero-carousel {
    height: 50vh;
  }

  .hero-split-content {
    height: auto;
    min-height: 40vh;
  }
}


/* Responsive – estructura */
@media (max-width: 768px) {
  #testimonios {
    padding: 80px 20px;
  }

  #testimonios h2 {
    font-size: 1.6rem;
    margin-bottom: 40px;
  }

  .testimonios-container {
    gap: 25px;
  }
}


/* === CONTACTO === */
#contacto {
  background: #f8f8f8;
  text-align: center;
}

/* === FOOTER === */
footer {
  background: #000;
  padding: 40px 0;
  text-align: center;
}


.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero img.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  top: 0;
  left: 0;
  z-index: 1;
}

#inicio .hero-video {
  object-position: center 70%;
}


.hero-text {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 20px;
}

.content-section {
  max-width: 800px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
  line-height: 1.8;
}

@media (max-width: 768px) {
  #como-trabajo .hero-video {
    object-position: center 30%;
  }
}

@media (max-width: 768px) {
  #sobre-mi .hero-text {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 0 20px;
  }

  #sobre-mi .hero-text h2 {
    font-size: 2rem;
    line-height: 1.2;
  }
}

/* === PRICING · GRID === */
.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
  .pricing-grid {
    gap: 25px;
  }
}

/* === PRODUCT PAGES === */

/* === HERO === */
.product-hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Contenido centrado */
.product-hero .hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 1100px;
  padding: 20px;
}

/* Secciones generales */
.section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Calendly */
.calendly-embed {
  max-width: 900px;
  margin: 30px auto;
}

/* === SPLIT SECTION  === */
.split-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding: 80px 20px;
}

.split-text {
  flex: 1;
  max-width: 550px;
}

.split-video {
  flex: 1;
  max-width: 520px;
  border-radius: 12px;
  overflow: hidden;
}

/* === SPLIT SECTION RESPONSIVE === */
@media (max-width: 900px) {
  .split-section {
    flex-direction: column;
    text-align: center;
  }

  .split-video {
    max-width: 100%;
  }
}

/* === BENEFITS GRID === */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 50px;
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 800px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ===== MOBILE MENU ===== */

.menu-toggle {
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  flex-direction: column;
  justify-content: space-between;

  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);

  
}


@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    right: 20px;
  }
}


.menu-toggle span {
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(10px);
  z-index: 2000;

  padding: 96px 20px 40px;

  display: none;
  flex-direction: column;
  gap: 22px;
}

.mobile-menu.open {
  display: flex;
}

/* Links principales */
.mobile-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

/* Acordeones */
.mobile-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-accordion-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.mobile-accordion-toggle span {
  font-size: 1.6rem;
  color: #00b37a;
}

/* Contenido acordeón */
.mobile-accordion-content {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding-left: 12px;
}

.mobile-accordion-content.open {
  display: flex;
}

/* Subitems recursos */
.mobile-subitem {
  text-decoration: none;
  color: #fff;
  opacity: 0.9;
}

.mobile-subitem span {
  display: block;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Programas */
.mobile-program {
  text-decoration: none;
  color: #fff;
  border-left: 3px solid #00b37a;
  padding-left: 12px;
}

.mobile-program h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: #00b37a;
}

.mobile-program p {
  font-size: 0.9rem;
  opacity: 0.8;
  color: #fff;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
