/**
 * Estilos de Landing Pages
 * Optimizado para alta conversión
 */

/* =====================================================
   UTILITIES — alineación de bloque (título + texto + CTA)
   ===================================================== */

.tx-left    { text-align: left; }
.tx-center  { text-align: center; }
.tx-right   { text-align: right; }
.tx-justify { text-align: justify; }

/* Alineación independiente del botón CTA (wrapper inline-block) */
.btn-align-left   { text-align: left; }
.btn-align-center { text-align: center; }
.btn-align-right  { text-align: right; }

/* Para .hero-cta que es flex column, el .btn-align-* del wrapper también necesita align-items */
.hero-cta.btn-align-left   { align-items: flex-start; }
.hero-cta.btn-align-center { align-items: center; }
.hero-cta.btn-align-right  { align-items: flex-end; }

/* .hero-cta es flex column → controlamos la posición del botón con align-items.
   También seteamos text-align por consistencia con elementos que no son flex. */
.hero-content.tx-left   .hero-cta { align-items: flex-start; text-align: left; }
.hero-content.tx-center .hero-cta { align-items: center;     text-align: center; }
.hero-content.tx-right  .hero-cta { align-items: flex-end;   text-align: right; }
.hero-content.tx-justify .hero-cta { align-items: center;    text-align: center; } /* justify no aplica a un solo botón */

/* =====================================================
   URGENCY BAR
   ===================================================== */

.urgency-bar {
    padding: 0.75rem 0;
    text-align: center;
    position: relative;
    z-index: 1;   /* En flujo normal: queda detrás del navbar sticky (z:1000) y de sus dropdowns */
}

.urgency-text {
    margin: 0;
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
}

/* =====================================================
   LANDING HERO
   ===================================================== */

.landing-hero {
    padding: 5rem 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.landing-hero .hero-content {
    color: #fff;
}

.hero-category {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 0.375rem 1rem;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.landing-hero .hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.landing-hero .hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 1rem;
}

.hero-features i {
    color: #00d26a;
    font-size: 1.25rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.btn-cta {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    border: none;
    border-radius: 0.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: #fff;
}

.hero-price-info {
    display: flex;
    flex-direction: column;
    font-size: 0.9375rem;
}

.price-from {
    opacity: 0.7;
}

.price-now {
    font-weight: 600;
}

.hero-media {
    position: relative;
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

/* =====================================================
   COUNTDOWN
   ===================================================== */

.countdown-section {
    background: #111827;
    padding: 2rem 0;
}

.countdown-wrapper {
    text-align: center;
}

.countdown-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.countdown-item {
    background: rgba(255,255,255,0.1);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    min-width: 80px;
}

.countdown-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* =====================================================
   FEATURES SECTION
   ===================================================== */

.section-features {
    background: #fff;
}

.feature-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--gray-100);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.feature-desc {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin: 0;
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */

.about-image {
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.about-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gray-600);
}

/* =====================================================
   MODULES SECTION
   ===================================================== */

.modules-list {
    max-width: 800px;
    margin: 0 auto;
}

.module-item {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.module-header {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.module-header:hover {
    background: var(--gray-50);
}

.module-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.module-info {
    flex: 1;
}

.module-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.module-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.module-toggle {
    color: var(--gray-400);
    transition: transform 0.3s ease;
}

.module-header[aria-expanded="true"] .module-toggle {
    transform: rotate(180deg);
}

.module-body {
    padding: 0 1.25rem 1.25rem 4.5rem;
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* =====================================================
   INSTRUCTOR SECTION
   ===================================================== */

.section-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.instructor-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.instructor-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--gray-400);
}

.instructor-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.instructor-title {
    font-size: 1.125rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.instructor-bio {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-600);
}

/* =====================================================
   TESTIMONIALS SECTION
   ===================================================== */

.section-testimonials {
    background: #fff;
}

.testimonial-card {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: 1rem;
    height: 100%;
}

/* --- SECCIÓN: masonry testimonios ---
   Distribución por PHP en columnas reales (.masonry-col), con flexbox.
   Evitamos CSS columns porque su auto-balance manda items a columnas
   anteriores (con 3 verticales, la 3ª caía abajo de la 1ª).
   Desktop ≥992px: 3 cols. Tablet 768-991px: 2 cols (la 3ª va abajo full).
   Mobile <768px: 1 col stackeada. */
.testimonials-masonry {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.masonry-col {
    flex: 1 1 calc((100% - 3rem) / 3);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.masonry-col .testimonial-card {
    height: auto; /* cada card en su altura natural, no forzar 100% del col */
}
@media (max-width: 991.98px) {
    .masonry-col { flex: 1 1 calc(50% - 0.75rem); }
    .masonry-col:nth-child(3) { flex-basis: 100%; }
}
@media (max-width: 767.98px) {
    .masonry-col { flex: 1 1 100%; }
    .masonry-col:nth-child(3) { flex-basis: 100%; }
}

.testimonial-rating {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-photo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.testimonial-name {
    display: block;
    font-weight: 600;
    color: var(--dark);
}

.testimonial-title {
    display: block;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* Imagen del testimonio (screenshot, captura — distinto del avatar) */
.testimonial-image-wrapper {
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.testimonial-image {
    display: block;
    width: 100%;
    height: auto;
}

/* =====================================================
   HERO LAYOUTS (stacked + text-only)
   ===================================================== */

.hero-layout-stacked-media-top .hero-content-centered,
.hero-layout-stacked-text-top  .hero-content-centered,
.hero-layout-text-only         .hero-content-centered {
    text-align: center;
}

.hero-layout-stacked-media-top .hero-cta,
.hero-layout-stacked-text-top  .hero-cta,
.hero-layout-text-only         .hero-cta {
    justify-content: center;
    display: flex;
}

.hero-media-centered {
    max-width: 720px;
    width: 100%;
}

.hero-media-centered .video-wrapper,
.hero-media-centered .hero-image {
    margin-left: auto;
    margin-right: auto;
}

/* =====================================================
   ABOUT LAYOUTS (stacked + text-only)
   ===================================================== */

.about-layout-stacked-image-top .about-text-centered,
.about-layout-stacked-text-top  .about-text-centered,
.about-layout-text-only         .about-text-centered {
    text-align: center;
}

.about-media-centered {
    max-width: 820px;
    width: 100%;
}

.about-media-centered .about-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* =====================================================
   PRICING SECTION
   ===================================================== */

.section-pricing {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.pricing-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-featured {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    border: 2px solid var(--primary);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.pricing-price {
    margin-bottom: 1.5rem;
}

.pricing-original {
    display: block;
    font-size: 1.125rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.pricing-current {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
}

.pricing-installments {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

/* Banner "Consulta el precio exacto en tu moneda" — debajo de la grilla de pricing.
   La imagen es 480x320 (3:2). Limitamos su ancho para que no domine la sección
   y se vea proporcionada en mobile/tablet/desktop. */
.pricing-consulta-banner {
    margin-top: 1.25rem;
    border-radius: 12px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    line-height: 0;  /* evita gap fantasma debajo de la imagen inline */
}
.pricing-consulta-banner img {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
    border-radius: 12px;
}
.pricing-consulta-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
@media (max-width: 575.98px) {
    .pricing-consulta-banner img { max-width: 280px; }
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    flex: 1;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.pricing-features i {
    color: var(--success);
    font-size: 1.125rem;
    margin-top: 0.125rem;
}

/* Variantes de columnas para listas largas — la card crece hacia los lados, no hacia abajo */
.pricing-features-cols-2,
.pricing-features-cols-3 {
    display: grid;
    column-gap: 1.25rem;
    row-gap: 0;
}
.pricing-features-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pricing-features-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* En mobile colapsan a 1 columna para que no quede ilegible */
@media (max-width: 767.98px) {
    .pricing-features-cols-2,
    .pricing-features-cols-3 {
        grid-template-columns: 1fr;
    }
}

/* En tablet, 3 columnas → 2 columnas */
@media (min-width: 768px) and (max-width: 991.98px) {
    .pricing-features-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Cuando la card está scaled (highlighted), las cards multi-columna pueden ocupar más ancho */
.pricing-features-cols-2 li,
.pricing-features-cols-3 li {
    font-size: 0.875rem;
}

/* =====================================================
   GUARANTEE SECTION
   ===================================================== */

.guarantee-card {
    background: var(--gray-100);
    border-radius: 1rem;
    padding: 3rem;
}

.guarantee-badge {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--success), #059669);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin: 0 auto 1.5rem;
}

.guarantee-badge i {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
}

.guarantee-badge span {
    font-weight: 700;
    font-size: 0.875rem;
}

.guarantee-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.guarantee-text {
    font-size: 1rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.7;
}

/* =====================================================
   FAQ SECTION
   ===================================================== */

.section-faq .accordion-item {
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.section-faq .accordion-button {
    font-weight: 600;
    color: var(--dark);
    background: #fff;
    padding: 1.25rem;
}

.section-faq .accordion-button:not(.collapsed) {
    background: var(--gray-50);
    color: var(--primary);
    box-shadow: none;
}

.section-faq .accordion-button::after {
    background-size: 1rem;
}

.section-faq .accordion-body {
    padding: 0 1.25rem 1.25rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* =====================================================
   FINAL CTA
   ===================================================== */

.section-final-cta {
    background: linear-gradient(135deg, var(--gray-900) 0%, #0f172a 100%);
    color: #fff;
}

.section-final-cta .cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-final-cta .cta-subtitle {
    font-size: 1.125rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* =====================================================
   MOBILE CTA
   ===================================================== */

.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    padding: 1rem;
    z-index: 999;
    display: none;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-cta.visible {
    transform: translateY(0);
}

.mobile-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mobile-cta-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

.mobile-cta .btn-cta {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
}

@media (max-width: 991.98px) {
    .mobile-cta {
        display: block;
    }

    .landing-hero {
        padding: 3rem 0;
        min-height: auto;
    }

    .landing-hero .hero-title {
        font-size: 2rem;
    }

    .hero-media {
        margin-top: 2rem;
    }

    .pricing-featured {
        transform: none;
    }
}

@media (max-width: 767.98px) {
    .landing-hero .hero-title {
        font-size: 1.75rem;
    }

    .countdown-item {
        padding: 0.75rem 1rem;
        min-width: 60px;
    }

    .countdown-value {
        font-size: 1.75rem;
    }

    .section-final-cta .cta-title {
        font-size: 1.75rem;
    }

    .guarantee-card {
        padding: 2rem;
    }
}
