@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Encabezado del curso */
.course-header {
    position: relative;
    width: 100%;
    height: 65vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 50px 20px 50px;
    background-image: url("/images/cursoArcangel.png");
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}
.course-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
}
.course-header .container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    width: 100%;
    max-width: 800px;
}
.course-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}
.course-header p {
    font-size: 1.2rem;
    color: white;
    line-height: 1.6;
    margin-top: 20px;
}

/* Otros encabezados */
.tarot-header, .mentes-header, .gratitud-header {
    position: relative;
    width: 100vw;
    height: 60vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}
.tarot-header {
    background-image: url("/images/tarot.jpg");
}
.tarot-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}
.tarot-header .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.tarot-header h1 {
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}
.tarot-header p {
    font-size: 1.2rem;
    color: white;
}
.mentes-header {
    background-image: url("/images/cursomilagrospor.jpg");
}
.gratitud-header {
    background-image: url("/images/fondo.jpg");
}

/* ✅ Video de portada (NO CAMBIAR) */
.video-portada {
    position: relative;
    width: 100%;
    padding-bottom: 70%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}
.video-portada iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/* Estrechar solo el video del curso de tarot */
.video-portada.tarot-video {
    max-width: 400px; /* O el valor que prefieras */
    margin: 0 auto;
}

/* ✅ Video de lecciones responsivo */
.lesson-video {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 1rem auto;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}
.lesson-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


.whatsapp {
    text-align: center;
    margin: 30px 0;
  }

  .whatsapp a {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
  }


/* Responsive móvil */
@media (max-width: 768px) {
    .lesson-video {
        padding-bottom: 70%;
    }
    .course-header img {
        width: 200px;
    }
}

/* Responsive escritorio */
@media (min-width: 769px) {
    .lesson-video {
        width: 78%;
        max-width: 795px; /* Más ancho que 640px */
        margin: 1rem auto;
        padding-bottom: 39%; /* Más bajo que 56.25% */
    }
    .video-portada {
        padding-bottom: 30%;
        max-width: 720px;
        margin: 0 auto;
    }
}

/* Estado de las lecciones */
.not-completed {
    color: red;
    font-weight: bold;
}
.completed,
#video-status-text.completed {
    color: green;
    font-weight: bold;
}
#video-status-text {
    font-size: 16px;
}

/* Curso */
.course-content {
    padding: 40px 20px;
    background-color: white;
    margin: 20px auto;
    max-width: 1200px;
}
.course-content h2 {
    font-size: 28px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}
.module {
    background-color: #f9f9f9;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 5px;
    border-left: 5px solid #af7d8a;
}
.module h3 {
    font-size: 24px;
    color: #d810ad;
}
.module p {
    font-size: 16px;
    color: #b4799e;
}
.module-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #af7d8a;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}
.module-link:hover {
    background-color: #af7d8a;
}

/* Tabs */
.tabs {
    display: flex;
    cursor: pointer;
    margin-bottom: 10px;
    background: #f4f4f4;
    padding: 10px;
}
.tab {
    padding: 10px;
    margin-right: 5px;
    background: #db9dc7;
    border-radius: 5px;
}
.tab.active {
    background-color: #ce21a9;
}
.content {
    display: none;
    padding: 20px;
    border: 1px solid #ddd;
    width: 100%;
    justify-content: center;
    align-items: center;
}
.content.active {
    display: block;
}

/* Lecciones */
.lesson {
    margin: 20px 0;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}
.lesson.completed {
    text-decoration: line-through;
    color: green;
}

/* Footer */
.course-footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
}
.course-footer p {
    font-size: 14px;
}

/* Imagen de cabecera */
.course-header img {
    max-width: 100%;
    width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Contenedor general */
.container {
    width: 80%;
    margin: 0 auto;
}
