@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora/static/Lora-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora/static/Lora-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora/static/Lora-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora/static/Lora-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora/static/Lora-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora/static/Lora-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora/static/Lora-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora/static/Lora-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

:root {
  --dark: #1a1d2e;
  --light: #d6e5ef;
  --bs-primary: #f98ac7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Lora", serif;
}
.txtmdcent{text-align:left}
body {
  font-family: "Lora","Source Sans 3", serif;
  background-color: #1a1d2e;
  color: #d6e5ef;
}

.text-light {
  color: #d6e5ef !important;
}

/* Fondo y overlay */
.promo-section {
  background-image: url('<?= $ruta; ?>assets/images/bg.jpg');
  /* Reemplaza con tu fondo real */
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 600px;
}
    .btn-gradient {
        background: linear-gradient(139deg, #6EB9FC 5%, #F888D2 45%, #FD957D 85%);
        border: none;
        color: white;
        transition: transform 0.2s ease;
        padding: 12px 30px;
        font-weight: 600;
        border-radius: 8px;
        white-space: nowrap;
    }

    .btn-gradient:hover {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(110, 185, 252, 0.4);
    }

    /* Responsive */
    @media (max-width: 768px) {
        .subscribe-form .form-control {
            max-width: 100% !important;
        }

        .subscribe-form form {
            gap: 1rem !important;
        }
    }
.faq-item {
    height: 100%;
    border: 1px solid #5d606b;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    position: relative;
}
.chapters-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.chapter-item {
    display: flex;
    align-items: center;
    margin-bottom:0;
    position: relative;
}

/* Capítulos impares (alineados a la derecha) */
.chapter-item:nth-child(odd) {
    justify-content: flex-start;
}

.chapter-item:nth-child(odd) .chapter-content {
    margin-left: auto;
    text-align: right;
    width:88%;
}

/* Capítulos pares (alineados a la izquierda) */
.chapter-item:nth-child(even) {
    justify-content: flex-end;
}

.chapter-item:nth-child(even) .chapter-content {
    margin-left: auto;
    text-align: right;
    width:88%;
    /*order: -1;*/
}

.chapter-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 5%;
    background-color: #5d606bff;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left:5%;
    transform: translateX(-50%);
    z-index: 2;
}

.chapter-content {
    padding:.5rem;
}

.chapter-content h4 {
    color: #d6e5ef;
    font-size: 1.3rem;
}

.chapter-content p {
    color: #d6e5ef;
    font-size: 1rem;
    line-height: 1.5;
}

/* Línea vertical central */
.chapters-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left:5%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: #5d606bff;
    z-index: 1;
}
.bgbtnsh{}
/* Responsive */
@media (max-width: 768px) {
    .chapter-item:nth-child(odd) .chapter-content,
    .chapter-item:nth-child(even) .chapter-content {
        width:85%;
        text-align: center;
        order: 0;
    }
.bgbtnsh{background:rgba(0,0,0,0.5);padding:5px}
    .chapters-timeline::before {
        left:15px;
    }
    
    .chapter-item:nth-child(odd),
    .chapter-item:nth-child(even) {
        justify-content: center;
    }
}
/* Borde izquierdo degradado vertical */
.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(to bottom, #6EB9FC, #F888D2, #FD957D);
    z-index: 2;
}

.faq-item:hover {
    border-color: #6EB9FC;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(110, 185, 252, 0.1);
}

.faq-question {
    padding: 1rem 2rem 1rem 2.5rem; /* Más padding izquierdo para el borde */
    background: linear-gradient(90deg, rgba(110, 185, 252, 0.1), rgba(248, 136, 210, 0.1));
    border-bottom: 1px solid #5d606b;
    position: relative;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.2rem;
    color: black;
}

.faq-answer {
    padding: 1.5rem 2rem 1.5rem 2.5rem;
    background-color: rgba(255, 255, 255, 0.02);
}

.faq-answer p {
    line-height: 1.6;
    font-size: 1rem;
    color:black;
}

/* Eliminar el efecto anterior */
.faq-question::before {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-question,
    .faq-answer {
        padding: 1.25rem 1.5rem 1.25rem 2rem;
    }
    
    .faq-question h4 {
        font-size: 1.1rem;
    }
    
    .faq-item::before {
        width: 4px;
    }
}

@media (max-width: 576px) {
    .row.g-4 {
        gap: 1.5rem !important;
    }
}
.bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.gradient-text {
  background: linear-gradient(90deg, #6EB9FC, #f98ac7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text2 {
  background: linear-gradient(139deg, #6EB9FC 5%, #F888D2 45%, #FD957D 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text3 {
  background: linear-gradient(90deg, #ff6b81, #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient3 {
  background: linear-gradient(90deg, #ff6b81, #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-gradient {
  background: linear-gradient(139deg, #6EB9FC 5%, #F888D2 45%, #FD957D 85%);
  border: none;
  color: white;
  transition: transform 0.2s ease;
}

.btn-gradient:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 107, 129, 0.6);
}

.btn-outline-gradient {
  background: transparent;
  border: 2px solid;
  border-image: linear-gradient(90deg, #6EB9FC, #f98ac7ff) 1;
  color: white;
  transition: transform 0.2s ease;
}

.btn-outline-gradient:hover {
  transform: scale(1.05);
  background: linear-gradient(90deg, #6EB9FC, #f98ac7ff);
  color: white;
}
.testimonial-card {
    height: 100%;
    border: 1px solid #5d606b;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: #6EB9FC;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(110, 185, 252, 0.15);
}

.testimonial-content {
    position: relative;
    z-index: 2;
}

.testimonial-text {
    color: #d6e5ef;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
    text-align: center;
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .testimonial-card::before {
        font-size: 3rem;
        top: 0.5rem;
        left: 1rem;
    }
}
.learning-section {
  background: linear-gradient(135deg, #f98ac7, #df70ad);
}

/* Estilo para los pasos */
.step {
  border: 1px solid #5d606b;
  border-radius: 8px;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  position: relative;
  padding-top: 3rem;
  /* Espacio adicional para el número */
  border-top-width: 8px;
  border-image: linear-gradient(to right, #6EB9FC 5%, #F888D2 45%, #FD957D 85%) 1;
  border-image-slice: 1;
}

/* Estilo para los números de paso */
.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(139deg, #6EB9FC 5%, #F888D2 45%, #FD957D 85%);
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 0 10px rgba(110, 185, 252, 0.5);
}

.footer-section {
  padding: 80px 0 40px;
}

.footer-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.action-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
.txtmdcent{text-align:center}
  .footer-title {
    font-size: 2rem;
  }

  .action-buttons {
    flex-direction: column;
    align-items: center;
  }

  .action-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* Contacto */
.form-control,
.form-control:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--light);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--bs-primary);
  /* Borde de enfoque con color primario */
  box-shadow: 0 0 0 0.25rem rgba(249, 138, 199, 0.25);
}

.form-control::placeholder {
  color: rgba(214, 229, 239, 0.6);
}

.invalid-feedback-custom {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #ff6b6b;
}

.contact-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-shadow{
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); 
}

/* ==========================================================================
   Free video player (modal) - sequential chapters
   ========================================================================== */
.video-thumbnail {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.video-thumbnail:focus-visible,
.watch-video-btn:focus-visible,
#videoModal .btn:focus-visible {
  outline: 3px solid #6EB9FC;
  outline-offset: 2px;
}

#videoModal .modal-content {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#videoModal .modal-header {
  align-items: flex-start;
  gap: 0.75rem;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

#videoModal .modal-footer {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.video-modal-heading {
  min-width: 0;
}

.video-modal-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6EB9FC;
}

#videoModal .modal-title {
  font-size: 1.1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

#videoModal .modal-body {
  overflow-x: hidden;
}

.video-stage {
  background: #000;
  border-radius: 0.375rem;
  overflow: hidden;
}

.video-stage iframe {
  border: 0;
}

/* Covers the player: "continuing with chapter N", end-of-series CTA, errors */
.video-overlay {
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  background: rgba(26, 29, 46, 0.95);
}

.video-overlay__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  max-width: 100%;
}

.video-overlay__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1rem, 3.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.video-overlay .btn {
  white-space: normal;
}

/* Chapter progress: one segment per chapter */
.chapter-progress {
  display: flex;
  gap: 4px;
  margin-top: 0.75rem;
}

.chapter-progress__seg {
  flex: 1 1 0;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
}

.chapter-progress__seg.is-done {
  background: #6EB9FC;
}

.chapter-progress__seg.is-current {
  background: linear-gradient(90deg, #6EB9FC, #F888D2, #FD957D);
}

.video-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  margin-top: 0.75rem;
}

.video-controls .btn,
.video-modal-footer .btn {
  padding: 0.4rem 0.9rem;
  white-space: normal;
}

.video-controls #videoNextBtn,
.video-controls #videoNextBuyBtn {
  margin-left: auto;
}

.video-controls .btn:disabled {
  opacity: 0.4;
}

.video-modal-footer {
  justify-content: center;
}

@media (max-width: 480px) {
  .video-overlay {
    padding: 0.5rem;
  }

  .video-overlay__panel {
    gap: 0.5rem;
  }

  .video-overlay__title {
    font-size: 0.95rem;
  }

  .video-overlay .btn,
  .video-overlay .btn-lg {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
  }
}

/* Short landscape screens (phones): compact the chrome so header, player, controls and CTA fit without scrolling */
@media (max-height: 600px) and (orientation: landscape) {
  #videoModal .modal-dialog {
    --bs-modal-margin: 0.25rem;
    max-width: min(800px, calc((100vh - 172px) * 1.7778 + 24px));
    max-width: min(800px, calc((100dvh - 172px) * 1.7778 + 24px));
  }

  #videoModal .modal-header {
    padding: 0.35rem 0.75rem;
  }

  .video-modal-heading {
    display: flex;
    align-items: baseline;
    column-gap: 0.6rem;
  }

  .video-modal-kicker {
    flex-shrink: 0;
  }

  #videoModal .modal-title {
    min-width: 0;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #videoModal .modal-body {
    padding: 0.5rem 0.75rem;
  }

  .chapter-progress,
  .video-controls {
    margin-top: 0.4rem;
  }

  #videoModal .modal-footer {
    padding: 0.35rem 0.75rem;
  }
}
