:root {
    --primary: #2D1B4E; /* Prokap Violet */
    --primary-light: #4A2B7C;
    --secondary: #D4AF37; /* Bronze/Gold for CTAs */
    --accent: #FDFBF7; /* Cream/Beige background */
    --text: #333333;
    --light-grey: #F5F5F5;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.highlight {
    color: var(--primary);
    font-weight: 700;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 56px;
}
@media (max-width: 600px){ .logo img { height: 46px; } }

.logo span {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(45, 27, 78, 0.2);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--primary);
}

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

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.shadow {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Hero */
.hero {
    padding: 100px 0;
    background-color: var(--accent);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtext {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 40px;
    color: #666;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Trust Bar */
.trust-bar {
    padding: 20px 0;
    background: #fdfdfd;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 0.9rem;
    color: #999;
}

/* Sections */
section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Problem */
.problem {
    background-color: var(--white);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.problem-card {
    padding: 40px;
    background: var(--accent);
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
}

.problem-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.problem-footer {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Methodology */
.methodology {
    background-color: var(--light-grey);
}

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

.step-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.step-num {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.5rem;
    display: block;
    margin-bottom: 10px;
}

/* Quiz Hook */
.quiz-hook {
    background-color: var(--primary);
    color: var(--white);
}

.quiz-card {
    text-align: center;
}

.quiz-card h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.quiz-card p {
    margin-bottom: 30px;
}

/* Planes */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.plan-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #eee;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.plan-card.featured {
    border: 2px solid var(--primary);
    position: relative;
    transform: scale(1.05);
    z-index: 1;
}

.plan-card .price {
    font-size: 1.8rem;
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    margin: 10px 0;
}

.plan-card .price span {
    font-size: 1rem;
    color: #666;
}

.plan-card .desc {
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.4;
    flex-grow: 1;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

/* FAQ */
.faq-accordion {
    max-width: 1000px; /* Increased to accommodate columns better */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .faq-accordion {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 40px; /* Horizontal gap between columns */
    }
}

.faq-item {
    border-bottom: 1px solid #eaeaea;
}

.faq-question {
    width: 100%;
    padding: 15px 0; /* Reduced from 20px */
    background: none;
    border: none;
    text-align: left;
    font-weight: 600;
    font-size: 1.05rem; /* Slightly reduced */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary);
    transition: color 0.2s;
}

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

.faq-question span {
    font-size: 1.2rem;
    color: #999;
}

.faq-answer {
    padding: 0 0 15px; /* Reduced from 20px */
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    display: none;
}

.faq-footer {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
    font-weight: 500;
    line-height: 1.4;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

/* Modal Stepper */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 95%;
    max-width: 550px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    animation: fadeInModal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: slideIn 0.3s ease;
}

.plan-summary-box, .tc-container, .payment-box, .validation-box, .booking-box {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    border: 1px solid #edf2f7;
}

.tc-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
}

.legal-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: background 0.2s;
}

.legal-link:hover {
    background: #f1f5f9;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.modal-actions .btn {
    flex: 1;
}

.selected-plan-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 5px;
}

/* Phase 2: Typography & Colors */
body {
    font-family: 'Gadugi', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.btn-purple, .btn-secondary.btn-purple {
    background-color: #900999 !important;
    color: #ffffff !important;
    border: none !important;
}

.btn-purple:hover, .btn-secondary.btn-purple:hover {
    background-color: #700777 !important;
    opacity: 0.9;
}

/* Footer Refined - Phase 4 */
.footer {
    background-color: #f7f7f7;
    padding: 60px 0 30px;
    border-top: 1px solid #eaeaea;
    color: var(--text);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    display: block;
}

.footer-logo {
    height: 56px;
    max-height: 56px;
    width: auto;
    margin-bottom: 15px;
    object-fit: contain;
    align-self: flex-start; /* Ensure it stays left */
}

.brand-column p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.social-links-container {
    display: flex;
    flex-direction: column; /* Move icon below label */
    align-items: flex-start; /* Align both to the left on desktop */
    gap: 5px; /* Reduced gap as requested */
}

.icon-svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

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

/* Payment Section */
.payment-flex-harmonious {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.payment-banner {
    height: 30px;
    width: auto;
}

.payment-logo-official {
    height: 35px;
    width: auto;
}

/* Policies & Contact Section */
.policy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.policy-list li {
    margin-bottom: 10px;
}

.policy-list a {
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s;
}

.policy-list a:hover {
    color: var(--primary);
}

.policy-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Affiliation Footer */
.footer-affiliation-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    text-align: center;
}

.footer-affiliation-wrapper p {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
}

.affiliation-logo-footer {
    height: 56px;
    max-height: 56px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.affiliation-logo-footer:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: #999;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section {
        align-items: center;
        text-align: center;
    }

    .social-links-container {
        align-items: center; /* Center social label and icon on mobile */
        width: 100%;
    }

    .payment-flex-harmonious {
        justify-content: center;
    }

    .policy-list a {
        justify-content: center;
    }
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.payment-badge {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    border: 1px solid #ddd;
}

/* Onboarding Legal Viewer */
.legal-viewer-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    padding: 10px 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    color: #666;
}

.tab-btn.active {
    color: #900999;
    border-bottom: 2px solid #900999;
}

.legal-viewer-body {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 20px;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
}

.legal-text {
    display: none;
}

.legal-text.active {
    display: block;
}

/* Registration Form */
.registration-form {
    text-align: left;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Desktop Styles */
@media (min-width: 769px) {
    .plans-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar .container {
        padding: 0 15px;
    }
    
    .hero .container {
        display: flex !important;
        flex-direction: column !important; /* Text first, image second */
        padding: 40px 20px !important;
        text-align: center !important;
        gap: 30px !important;
    }

    /* Ensure children are ordered correctly if needed, though column should do it */
    .hero-content {
        order: 1 !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .hero-image {
        order: 2 !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        justify-content: center !important;
    }

    .hero h1 {
        font-size: 2.1rem !important;
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
    }
    
    .hero-subtext {
        font-size: 1.1rem !important;
        margin-bottom: 30px !important;
    }

    .hero-actions {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .hero-actions .btn {
        width: 100% !important;
    }
    
    .nav-links {
        display: none;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section {
        align-items: center;
    }

    .social-links-container {
        justify-content: center;
    }

    .payment-grid-3x2 {
        justify-content: center;
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
    }

    .policy-list a {
        justify-content: center;
    }
}

/* Transparency & Grid - Phase 6 Refined */
.transparent-img {
    mix-blend-mode: multiply !important;
    filter: contrast(1.05) brightness(1.05) !important;
    opacity: 0.95;
}

.payment-grid-3x2 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
    background: transparent;
    padding: 0 !important;
    align-items: center;
    justify-items: center;
}

.payment-logo-grid {
    height: 24px !important; /* Slightly larger for better readability */
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

/* PSE, MasterCard y American Express se veían pequeños: se agrandan un poco. */
.payment-logo-grid--lg {
    height: 34px !important;
}

/* ===== Footer v2: medios de pago + legal/contacto ===== */
.pay-section { border-bottom: 1px solid #eaeaea; padding-bottom: 26px; margin-bottom: 30px; }
.paychips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 16px; }
.paylogo { background: #fff; border: 1px solid #ece9f5; border-radius: 10px; height: 44px; padding: 0 14px;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(45,27,78,.06); }
.paylogo img { height: 22px; width: auto; max-width: 90px; object-fit: contain; display: block; }
.paybadges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pbadge { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 600;
    color: var(--primary); background: #f3effb; border: 1px solid #e6ddf7; border-radius: 20px; padding: 5px 11px; }
.footer-grid--v2 { grid-template-columns: 1.4fr 1fr 1.2fr; }
.footer-grid--v2 .footer-label { margin-bottom: 12px; }
.policy-list a { transition: color .2s; }
.policy-list a:hover { color: var(--primary-light); }
@media (max-width: 760px) { .footer-grid--v2 { grid-template-columns: 1fr; gap: 26px; } }

/* ===== Testimonios ===== */
.testimonials { padding: 80px 0; background: linear-gradient(180deg, #faf8ff 0%, #fff 100%); }
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 40px; }
.testimonial-card { margin: 0; background: #fff; border: 1px solid #eee6fa; border-radius: 18px; padding: 26px;
    box-shadow: 0 10px 30px rgba(45,27,78,.06); display: flex; flex-direction: column; }
.testimonial-card .stars { color: #f5b301; font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-card blockquote { margin: 0 0 18px; font-size: 1rem; line-height: 1.65; color: #3a3550; }
.testimonial-card blockquote::before { content: "\201C"; color: var(--primary-light); font-size: 2.2rem; line-height: 0; vertical-align: -.4em; margin-right: 4px; opacity: .3; }
.testimonial-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.t-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 1.1rem; flex: none; }
.testimonial-card figcaption b { display: block; color: var(--primary); font-size: .95rem; }
.testimonial-card figcaption small { color: #8b85a0; font-size: .82rem; }
@media (max-width: 760px) { .testimonials-grid { grid-template-columns: 1fr; } .testimonials { padding: 56px 0; } }

.payment-logo-grid:hover {
    filter: none;
    opacity: 1;
}

.social-icon-box {
    margin-top: 15px !important; /* Below the title as requested */
}

.large-social {
    width: 36px !important;
    height: 36px !important;
}
