/* ========================================
   RAIZ HOME - Estilos de la página principal raíz
   ======================================== */

/* ========================================
   HERO SECTION RAÍZ
   ======================================== */

.raiz-hero {
    background: url('/assets/img/banner.png');
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
}

.raiz-hero .hero-logo {
    max-height: 140px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.raiz-hero h1 {
    font-size: 2.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.raiz-hero .lead {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

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

.faq-section {
    background-color: #f8f9fa;
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.faq-item .accordion-button {
    font-weight: 500;
    color: #212529;
    background-color: #ffffff;
    box-shadow: none;
}

.faq-item .accordion-button:not(.collapsed) {
    color: #ffffff;
    background-color: #1b5674;
    box-shadow: none;
}

.faq-item .accordion-button:not(.collapsed) i {
    color: #ffffff !important;
}

.faq-item .accordion-button::after {
    filter: none;
}

.faq-item .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.faq-item .accordion-body {
    color: #495057;
    background-color: #ffffff;
    line-height: 1.7;
}

/* ========================================
   CTA CLUBS SECTION
   ======================================== */

.raiz-cta-clubs {
    background: linear-gradient(135deg, #7cacc3 0%, #358bb3 100%);
    font-size: 0.9rem;
}

.raiz-cta-clubs h2 {
    font-size: 1.6rem;
}

.raiz-cta-clubs .lead {
    font-size: 0.95rem;
}

.raiz-cta-clubs .opacity-90 {
    opacity: 0.9;
}

.raiz-cta-clubs .btn-light {
    color: #1b5674;
}

.raiz-cta-clubs .btn-light:hover {
    background-color: #f0f4f6;
    color: #1b5674;
}

.raiz-cta-clubs .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* ========================================
   TABLAS DE PRECIOS
   ======================================== */

.pricing-table {
    background: #343a40;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#precios .row.justify-content-center {
    align-items: stretch;
}

.pricing-table:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.pricing-header {
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

.pricing-header-basico {
    background-color: #2b7fa6;
    color: #fff;
}

.pricing-header-club {
    background-color: #9bb127;
    color: #fff;
}

.pricing-table-club .pricing-features li i {
    color: #9bb127;
}

.pricing-table-club .price-period {
    color: #9bb127;
}

.price-amount-club {
    font-size: 1.6rem !important;
    color: #9bb127 !important;
}


.pricing-header-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.pricing-subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 4px;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    padding-top: 10px;
    color: #f8f9fa;
}

.pricing-body {
    background-color: #343a40;
    color: #fff;
    padding: 30px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    min-height: 0;
}

.pricing-features li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    min-height: 48px;
    box-sizing: border-box;
}

.pricing-features li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-features li i {
    color: inherit;
}

.pricing-table-basico .pricing-features li i {
    color: #b1ca27;
}

.pricing-price {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0;
    padding: 20px 0;
    flex-shrink: 0;
}

.price-amount {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
}

.price-period {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-table-basico .price-period {
    color: #b1ca27;
}


.pricing-footer {
    text-align: center;
    padding-top: 15px;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.pricing-footer-empty {
    height: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ========================================
   VIDEO DEMO BUTTON
   ======================================== */

.video-demo-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.video-demo-btn:hover {
    transform: scale(1.08);
}

.video-play-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: #e53935;
    box-shadow: 0 4px 20px rgba(229, 57, 53, 0.45);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.video-demo-btn:hover .video-play-circle {
    background-color: #c62828;
    box-shadow: 0 6px 28px rgba(229, 57, 53, 0.6);
}

.video-play-circle .fas {
    color: #fff;
    font-size: 1.6rem;
    margin-left: 4px;
}

.video-demo-link {
    color: #e53935;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
}

.video-demo-link:hover {
    color: #c62828;
    text-decoration: underline;
}

#modalVideoDemo .modal-content {
    border-radius: 12px;
    overflow: hidden;
}

#modalVideoDemo .modal-header {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    padding: 0.5rem 0.75rem;
}

#modalVideoDemo .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.9;
}

/* ========================================
   RESPONSIVE AJUSTES
   ======================================== */

@media (max-width: 768px) {
    .raiz-hero {
        background-image: url('/assets/img/banner_movil_rankingracket.png');
        min-height: 60vh;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .raiz-hero .hero-logo {
        max-height: 100px;
    }

    .raiz-hero h1 {
        font-size: 1.7rem;
    }

    .raiz-hero .lead {
        font-size: 1.10rem !important;
    }

    .pricing-table {
        margin-bottom: 30px;
    }

    .price-amount {
        font-size: 2rem;
    }

    .pricing-title {
        font-size: 1.25rem;
    }
}
