/* Variables de color para la nueva tonalidad */
:root {
    --color-main: #8d096b;
    --color-secondary: #f4b61c;
    --color-third: #71c8d9;
    --white: #faf7fb;
    --light-grey: #ece9ed;
    --grey: #c0b6bd;
    --dark-grey: #7c767e;
    --black: #291825;
    --padding-cta: 16px 24px;
    --padding-site: 184px;    
    --nav-height: 72px;
    --footer-height: 72px;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 100%);
    padding-bottom: 100px;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Navigation */
.navbar {
    height: var(--nav-height);
    min-height: var(--nav-height);
    max-height: var(--nav-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
}

.nav-content {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    /* background: linear-gradient(135deg, var(--color-main), var(--color-purple)); */
    background: var(--color-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-btn {
    padding: 8px 16px;
    border: none;
    background: none;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-main);
    font-weight: 500;
    font-size: large;
}

.nav-btn.active,
.nav-btn:hover {
    background: var(--color-main);
    color: white;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

/* Hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2100;
}

.hamburger span {
  display: block;
  height: 3px;
  background: var(--color-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animación hamburguesa */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    height: calc(100vh - var(--nav-height) - var(--footer-height));
    box-sizing: border-box;
    overflow: hidden;
    background: url(../img/carlos-roberto.avif) no-repeat;
    background-color: #291925;
    background-position: 75% bottom;
}

.hero .container {
    height: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.badge {
    display: inline-block;
    background: #f3e8ff;
    color: #7c3aed;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 18px;
    margin-bottom: 16px;
    visibility: hidden;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 600px;
}

.gradient-text {
    color: var(--color-secondary);
    background-clip: text;
}

.dark-text {
    color: #1f2937;
}

.white-text {
    color: white;
}

.hero-description {
    font-size: 20px;
    color: #cbcbcc;
    margin-bottom: 32px;
    line-height: 1.7;
    width: 90%;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
    flex-direction: column;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    width: fit-content;
}

.stat-item i {
    color: var(--color-main);
}

.price-item {
    padding: 12px 24px;
    border: 2px solid #e5e7eb;
}

.current-price {
    font-size: 32px;
    font-weight: bold;
    color: var(--color-main);
    margin-right: 8px;
}

.old-price {
    /* text-decoration: line-through; */
    color: #9ca3af;
    font-size: 14px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    height: fit-content;
}

.btn {
    padding: 16px 32px;
    border-radius: 24px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-animado{
    transition: transform 0.1s ease; /* Una transición suave para el cambio de escala */

    /* Aplica la animación definida */
    animation: buttonPulse 1.5s infinite alternate; /* Nombre Duración Repetición Dirección */
}


@keyframes buttonPulse {
    0% {
        transform: scale(1); /* Estado inicial: tamaño normal */
    }
    50% {
        transform: scale(1.07); /* A mitad de la animación: ligeramente más pequeño */
    }
    100% {
        transform: scale(1); /* Estado final: vuelve al tamaño normal */
    }
}

.btn-primary {
    /* background: linear-gradient(135deg, var(--color-main), var(--color-purple)); */
    background: var(--color-main);
    color: white;
    box-shadow: 0 8px 24px rgba(147, 51, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(147, 51, 234, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-main);
    border: 2px solid var(--color-main);
}

.btn-outline:hover {
    background: #f3e8ff;
}

.btn-white {
    background: white;
    color: var(--color-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background: #f9fafb;
}

/* Hero Image */
.qr-code-container {
    text-align: center;
}

.qr-code-container img {
    width: 200px;
    height: 200px;
    background: white;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}

.qr-code-container p {
    font-size: 14px;
    font-weight: 500;
    color: #c6c6c6;
}

.hero-image-wrapper {
    max-width: 500px;
    width: 100%;
    justify-self: end;
}

.hero-image {
    position: relative;
    width: 100%;
    /* Relación de aspecto 4:3. Puedes ajustarla si lo necesitas. */
    padding-bottom: 100%;
    height: 0;
    border-radius: 24px;
    /* Es crucial para que el resplandor y el borde no se corten */
    overflow: visible;
}

.image-glow {
    position: absolute;
    inset: -10px;
    border-radius: 24px;
    /* Glow con el nuevo degradado y filtro de desenfoque */
    background: var(--color-main);
    filter: blur(30px);
    opacity: 0.7;
    z-index: 0;
    /* Capa más al fondo */
    /* La animación de rotación de color ya no es necesaria con el degradado */
}

.titulo > div:first-child img {
    height: 120px;
    object-fit: contain;
    padding-right: 10px;
}


/* El SVG que crea el borde animado */
.animated-border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Para que no interfiera con los clics del ratón */
    z-index: 1;
    /* Entre el resplandor y la imagen */

    /* Animación de la línea discontinua con el nuevo color base */
    stroke: var(--color-main);
    stroke-dasharray: 331 66;
    /* Controla el patrón de la línea */
    animation: dash 7s linear infinite reverse;
}

.image-container {
    position: absolute;
    /* Ajustado para dejar espacio al nuevo borde SVG más grueso */
    inset: 14px;
    border-radius: 16px;
    /* Un radio menor para que se vea el marco interior */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Asegura que la imagen no se salga de este contenedor */
    z-index: 2;
    /* Por encima del resplandor y el borde */
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Animaciones --- */

/* Animación para el trazo del borde SVG */
@keyframes dash {
    to {
        stroke-dashoffset: -397px;
        filter: hue-rotate(360deg);
    }
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 20px;
    color: #6b7280;
    max-width: 768px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.benefit-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f3e8ff, #fce7f3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

.benefit-icon i {
    font-size: 32px;
    color: var(--color-main);
}

.benefit-card h3 {
    font-size: 20px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 12px;
}

.benefit-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* Curriculum Section */
.curriculum {
    padding: 80px 0;
    background: white;
}

.curriculum-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

.curriculum-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--color-main);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    flex: 1 1 calc(50% - 10px);
    min-width: 500px;
    max-width: calc(50% - 10px);
}

.curriculum-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.module-summary {
    display: flex;
    /* Para alinear el número y el título */
    align-items: center;
    cursor: pointer;
    /* Indica que es clicable */
    /* Elimina el estilo predeterminado de la flecha del summary */
    list-style: none;
}

/* Para ocultar la flecha por defecto en algunos navegadores */
.module-summary::-webkit-details-marker {
    display: none;
}

.module-summary::marker {
    /* Standard property */
    display: none;
}


/* Estilo para la flecha personalizada (opcional, si quieres reemplazar la nativa) */

.module-summary::after {
    content: '\25BC';
    font-size: 1.2em;
    color: #6b7280;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.curriculum-item[open] .module-summary::after {
    transform: rotate(180deg);
}


.module-number {
    width: 48px;
    height: 48px;
    background: var(--color-main);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 16px;
    flex-shrink: 0;
    /* Evita que el número se encoja */
}

.module-header {
    flex: 1;
    /* Permite que el título ocupe el espacio restante */
}

.module-header h3 {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0;
    /* Resetear margen inferior para evitar espacios extra */
}

.module-details {
    padding-top: 16px;
    /* Espacio entre el título y la descripción */
    border-top: 1px solid #eee;
    /* Línea divisoria sutil */
    margin-top: 16px;
    /* Espacio antes de la línea */
}

.module-details p {
    color: #6b7280;
    margin-bottom: 0;
    /* Resetear margen inferior si no hay más elementos */
}

/*
.module-duration {
  background: #f3e8ff;
  color: #7c3aed;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
}
*/

/* Video Section */
.video-section {
    padding: 80px 0;
    background: white;
}

.video-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.video-content h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 32px;
}

.video-container {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-placeholder {
    aspect-ratio: 16 / 9;
    /* background: linear-gradient(135deg, var(--color-main), var(--color-purple)); */
    background: var(--color-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: white;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Instructors Section */
.instructors {
    padding: 80px 0;
    /* background: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 100%); */
    background: var(--color-main);
}

.instructors h2 {
    color: white;
}

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.instructor-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.instructor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.instructor-card img:first-of-type {
    /* Imagen del instructor */
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 24px;
    border: 4px solid var(--color-main);
    padding: 4px;
    background-color: white;
}

.instructor-card:hover img {
    transform: scale(1.05);
}

.instructor-card h3 {
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 4px;
}

.instructor-card .role {
    color: var(--color-main);
    font-weight: 500;
    margin-bottom: 4px;
    flex-grow: 1;
    /* Permite que este elemento crezca para empujar el logo hacia abajo */
}

/* Estilo para la imagen de la empresa */
.instructor-card .company {
    max-height: 35px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.instructor-card:hover .company {
    filter: grayscale(0%);
    opacity: 1;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: white;
}

.faq-list {
    max-width: 768px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--color-main);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 24px;
    color: #6b7280;
    line-height: 1.6;
}

/* Sticky CTA */
.sticky-cta {
    height: var(--footer-height);
    min-height: var(--footer-height);
    max-height: var(--footer-height);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* background: linear-gradient(135deg, var(--color-main), var(--color-purple)); */
    background: var(--color-main);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
}

.cta-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.cta-text {
    color: white;
}

.cta-text h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 4px;
}

.cta-text p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 0px;
}

/* Footer */
.footer {
    height: var(--footer-height);
    min-height: var(--footer-height);
    max-height: var(--footer-height);
    padding: 0;
    background: #111827;
    color: white;
}

.footer-content {
    width: 100%;
    text-align: center;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    /* background: linear-gradient(135deg, #a855f7, var(--color-purple)); */
    background: var(--color-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.footer-content p {
    color: #9ca3af;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* RESPONSIVE */
/* ---------- Navbar / Menú Hamburguesa ---------- */
@media (max-width: 768px) {
        .nav-links {
        display: none;
    }
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2100;
  }

  .hamburger span {
    display: block;
    height: 3px;
    background: var(--color-main);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px,5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px,-5px);
  }

 #nav-links.active {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    background: rgba(255,255,255,0.95);
    flex-direction: column;
    gap: 16px;
    padding: 80px 24px 24px;
        transform: translateX(0) !important;
    transition: transform 0.3s ease;
    z-index: 2000;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-content {
    justify-content: space-between;
  }

  .nav-btn {
    width: 100%;
    text-align: center;
  }
}

/* ---------- Hero Section ---------- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image-wrapper {
    justify-self: center;
    max-width: 400px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-description {
    width: 100%;
    font-size: 18px;
  }

  .stat-item {
        gap: 2px;
        padding: 2px 6px;
        border-radius: 12px;
        font-size: 0.7rem;
    }

}

@media (max-width: 768px) {
  .hero {
    background-position: center top;
    padding: 0 16px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 12px;
  }
}

/* ---------- Benefits Section ---------- */
@media (max-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  }
}

@media (max-width: 768px) {
  .benefits {
    padding: 60px 16px;
  }
}

/* ---------- Curriculum Section ---------- */
@media (max-width: 1024px) {
  .curriculum-item {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0; 
  }
  .curriculum-item h3 {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .curriculum {
    padding: 60px 16px; 
  }
  
  .curriculum-item h3 {
    font-size: 18px;
  }
}

/* ---------- Video Section ---------- */
@media (max-width: 768px) {
  .video-section {
    padding: 60px 16px;
  }

  .video-content h2 {
    font-size: 2rem;
  }
}

/* ---------- Instructors Section ---------- */
@media (max-width: 1024px) {
  .instructors-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  }
}

@media (max-width: 768px) {
  .instructors {
    padding: 60px 16px;
  }

  .instructor-card img:first-of-type {
    width: 100px;
    height: 100px;
  }
}

/* ---------- FAQ Section ---------- */
@media (max-width: 768px) {
  .faq {
    padding: 60px 16px;
  }

  .faq-question {
    font-size: 16px;
  }

  .faq-answer p {
    font-size: 14px;
  }
}

/* ---------- Footer & Sticky CTA ---------- */
@media (max-width: 768px) {
  .sticky-cta {
    height: auto;
    min-height: unset;
    max-height: none;
    padding: 8px 0;
    align-items: flex-start;
  }

  .cta-content {
    height: auto;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .cta-text h3 {
    font-size: 16px;
  }

  .cta-text p {
    font-size: 12px;
  }

  .btn {
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
  }

  .footer {
    height: auto;
    padding: 24px 16px;
  }
}

@media (max-width: 520px) {
.hero-text {
    padding: 5px;
    background: #2918258c;
    border-radius: 25px;
}
}