/* ============================================
   Página de Precios - Estilos Dedicados
   ============================================ */

#plans-content { display: none !important; }
#loading-state { display: none !important; }

@media (min-width: 992px) {
    .col-lg-5cols {
        flex: 0 0 auto;
        width: 20%;
    }

    .col-lg-5cols .precio-card-header {
        padding: 1rem 0.75rem;
    }

    .col-lg-5cols .precio-card-header h3 {
        font-size: 1.15rem;
    }

    .col-lg-5cols .precio-card-body {
        padding: 1rem 0.75rem;
    }

    .col-lg-5cols .precio-card-description {
        font-size: 0.82rem;
        line-height: 1.5;
        min-height: 2.46rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .col-lg-5cols .precio-principal {
        padding: 0.75rem 0.5rem;
    }

    .col-lg-5cols .precio-descuento,
    .col-lg-5cols .precio-normal,
    .col-lg-5cols .precio-gratis {
        font-size: 1.2rem;
    }

    .col-lg-5cols .precio-original {
        font-size: 0.85rem;
    }

    .col-lg-5cols .precio-badge-descuento {
        font-size: 0.7rem;
        padding: 0.15rem 0.35rem;
    }

    .col-lg-5cols .precio-otros-toggle {
        font-size: 0.75rem;
    }

    .col-lg-5cols .limite-canchas-highlight {
        padding: 0.75rem 0.5rem;
    }

    .col-lg-5cols .limite-canchas-numero {
        font-size: 1.8rem;
    }

    .col-lg-5cols .limite-canchas-icon {
        font-size: 1.4rem;
    }

    .col-lg-5cols .btn-comparar-caracteristicas {
        font-size: 0.78rem;
        padding: 0.45rem 0.5rem;
        margin-top: 0.5rem;
    }

    .col-lg-5cols .precio-card-footer {
        padding: 0.5rem 0.75rem 0.75rem;
    }

    .col-lg-5cols .precio-card-footer .btn {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

.precios-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2d5a27 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
}

.precios-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.precios-hero .lead {
    font-size: 1.5rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.precios-hero .btn-light {
    padding: 1rem 3rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.precios-hero .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.precios-section-title {
    color: #2d5a27;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.precios-section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2d5a27, #1e3a8a);
    border-radius: 2px;
}

.precio-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    background: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.precio-card.destacado {
    border: 3px solid #2d5a27;
    position: relative;
}

.precio-card.destacado::before {
    content: 'Más Elegido';
    position: absolute;
    top: 0;
    right: 0;
    background: #2d5a27;
    color: white;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0 0 0 12px;
    z-index: 1;
}

.precio-card-header {
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.precio-card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.precio-card-body {
    padding: 2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.precio-card-description {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.04rem;
}

.precio-principal {
    background: linear-gradient(135deg, #f0fdf4 0%, #eef2ff 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.precio-principal-periodo {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.precio-principal-valor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.precio-otros-periodos {
    margin-bottom: 0.5rem;
}

.precio-otros-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #2d5a27;
    font-weight: 600;
    text-decoration: none;
    padding: 0.4rem 0;
    transition: color 0.2s ease;
    cursor: pointer;
}

.precio-otros-toggle:hover {
    color: #1e3a8a;
}

.precio-otros-toggle i {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

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

.precio-periodo {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.precio-periodo-mini {
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.4rem;
}

.precio-periodo-mini .precio-periodo-nombre {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.precio-periodo-mini .precio-periodo-valor .precio-descuento,
.precio-periodo-mini .precio-periodo-valor .precio-normal,
.precio-periodo-mini .precio-periodo-valor .precio-gratis {
    font-size: 1.1rem;
}

.precio-periodo-mini .precio-periodo-valor .precio-original {
    font-size: 0.85rem;
}

.precio-periodo-mini .precio-periodo-valor .precio-badge-descuento {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
}

.precio-periodo-nombre {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.precio-periodo-valor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.precio-original {
    font-size: 1rem;
    color: #adb5bd;
    text-decoration: line-through;
}

.precio-descuento {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d5a27;
}

.precio-badge-descuento {
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.precio-normal {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d5a27;
}

.precio-gratis {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d5a27;
}

.precio-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    flex: 1;
}

.precio-features li {
    padding: 0.5rem 0;
    color: #495057;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.precio-features li i {
    color: #2d5a27;
    font-size: 1.1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.precio-features li .feature-nueva {
    background: #198754;
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.25rem;
}

.precio-features li .feature-valor {
    font-weight: 600;
    color: #2d5a27;
}

.precio-features li .feature-diferencia {
    font-size: 0.8rem;
    color: #6c757d;
}

.precio-card-footer {
    padding: 1rem 1.5rem 1.5rem;
}

.precio-card-footer .btn {
    width: 100%;
    padding: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1rem;
}

.limite-canchas-highlight {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #eef2ff 100%);
    border: 2px solid #bbf7d0;
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    margin: auto 0 0;
    position: relative;
    overflow: hidden;
}

.limite-canchas-highlight::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(45, 90, 39, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.limite-canchas-icon {
    font-size: 2rem;
    color: #2d5a27;
    display: block;
    margin-bottom: 0.5rem;
}

.limite-canchas-numero {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.limite-canchas-texto {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-comparar-caracteristicas {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d5a27;
    background: transparent;
    border: 2px solid #2d5a27;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.btn-comparar-caracteristicas:hover {
    background: #2d5a27;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.3);
}

.btn-comparar-caracteristicas i {
    transition: transform 0.3s ease;
}

.btn-comparar-caracteristicas:hover i {
    transform: translateX(3px);
}

.comparativa-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comparativa-table table {
    margin-bottom: 0;
}

.comparativa-table thead th {
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%);
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 1rem 0.75rem;
    border: none;
    font-size: 0.95rem;
}

.comparativa-table thead th:first-child {
    text-align: left;
}

.comparativa-table tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    border-color: #e9ecef;
    font-size: 0.9rem;
}

.comparativa-table tbody td:first-child {
    font-weight: 600;
    color: #1a1a2e;
    background: #f8f9fa;
    min-width: 200px;
}

.comparativa-table tbody td:not(:first-child) {
    text-align: center;
}

.comparativa-table tbody tr:hover td {
    background: #f0f7ff;
}

.comparativa-table tbody tr:hover td:first-child {
    background: #e8f0fe;
}

.comparativa-check {
    color: #2d5a27;
    font-size: 1.2rem;
}

.comparativa-cross {
    color: #dc3545;
    font-size: 1.2rem;
}

.comparativa-valor {
    font-weight: 600;
    color: #2d5a27;
}

.faq-precios .accordion-button {
    font-weight: 600;
    color: #1a1a2e;
    background: white;
    font-size: 1.05rem;
}

.faq-precios .accordion-button:not(.collapsed) {
    background: #f8f9fa;
    color: #2d5a27;
    box-shadow: none;
}

.faq-precios .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(45, 90, 39, 0.25);
}

.faq-precios .accordion-body {
    color: #495057;
    line-height: 1.8;
    font-size: 0.95rem;
}

.cta-precios {
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%);
    color: white;
    padding: 4rem 0;
}

.cta-precios h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-precios .lead {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.cta-precios .btn-light {
    padding: 1rem 3rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-precios .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.confianza-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.confianza-item {
    text-align: center;
    padding: 1.5rem;
}

.confianza-item i {
    font-size: 2.5rem;
    color: #2d5a27;
    margin-bottom: 1rem;
}

.confianza-item h4 {
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.confianza-item p {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.precio-card.personalizar-card {
    border: 2px dashed #2d5a27;
    background: linear-gradient(135deg, #f0fdf4 0%, #eef2ff 100%);
}

.precio-card.personalizar-card:hover {
    border-color: #1e3a8a;
}

.personalizar-beneficios {
    font-size: 0.9rem;
    color: #495057;
    margin-top: 0.5rem;
}

.personalizar-beneficios .bi-check-circle-fill {
    color: #2d5a27;
    flex-shrink: 0;
}

.personalizar-cta-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(45, 90, 39, 0.08);
    border-radius: 8px;
    color: #2d5a27;
    font-size: 0.85rem;
    font-weight: 600;
}

.personalizar-cta-indicator i {
    font-size: 1rem;
    animation: personalizarBounce 1.5s ease-in-out infinite;
}

.personalizar-cta-indicator i:last-child {
    animation-delay: 0.3s;
}

@keyframes personalizarBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.comparativa-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.comparativa-scroll-hint {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.carousel-hint-pill-sm {
    font-size: 0.75rem;
    padding: 0.35rem 0.9rem;
    gap: 0.35rem;
}

.carousel-hint-pill-sm .bi-chevron-left,
.carousel-hint-pill-sm .bi-chevron-right {
    font-size: 0.75rem;
}

#comparativaModal .modal-header {
    border-bottom: none;
}

#comparativaModal .modal-body {
    padding: 0;
}

#simuladorModal .modal-header {
    border-bottom: none;
}

#simuladorModal .simulador-resumen {
    background: linear-gradient(135deg, #f8fdf7 0%, #eef6ec 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 1.5rem;
}

#simuladorModal .simulador-resumen h5 {
    color: #2d5a27;
    font-weight: 700;
}

#simulador-total {
    color: #2d5a27;
    font-weight: 800;
}

.carousel-hint-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
}

.carousel-hint-pill .bi-chevron-left,
.carousel-hint-pill .bi-chevron-right {
    font-size: 0.9rem;
    animation: carouselHintPulse 1.5s ease-in-out infinite;
}

.carousel-hint-pill .bi-chevron-right {
    animation-delay: 0.3s;
}

@keyframes carouselHintPulse {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(3px); opacity: 0.6; }
}

.carousel-hint-pill .bi-chevron-left {
    animation-name: carouselHintPulseLeft;
}

@keyframes carouselHintPulseLeft {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(-3px); opacity: 0.6; }
}

@media (max-width: 991.98px) {
    .precios-hero {
        padding: 80px 0 60px;
    }

    .precios-hero h1 {
        font-size: 2.2rem;
    }

    .precios-hero .lead {
        font-size: 1.2rem;
    }

    .comparativa-table {
        overflow-x: auto;
    }

    .comparativa-table table {
        min-width: 700px;
    }

}

@media (max-width: 767.98px) {
    .precios-hero {
        padding: 60px 0 40px;
    }

    .precios-hero h1 {
        font-size: 1.8rem;
    }

    .precios-hero .lead {
        font-size: 1rem;
    }

    .planes-carousel {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding-bottom: 1rem;
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
        scrollbar-width: none;
    }

    .planes-carousel::-webkit-scrollbar {
        display: none;
    }

    .planes-carousel > div {
        scroll-snap-align: center;
        flex: 0 0 85%;
        max-width: 85%;
        margin-bottom: 0 !important;
    }

    .precio-card {
        border-radius: 12px;
    }

    .precio-card-body {
        padding: 1.25rem 1rem;
    }

    .precio-card-header {
        padding: 1rem;
    }

    .precio-card-header h3 {
        font-size: 1.2rem;
    }

    .precio-card-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .precio-periodo {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .precio-descuento,
    .precio-normal,
    .precio-gratis {
        font-size: 1.2rem;
    }

    .limite-canchas-highlight {
        padding: 1rem 0.75rem;
    }

    .limite-canchas-numero {
        font-size: 1.8rem;
    }

    .limite-canchas-icon {
        font-size: 1.4rem;
    }

    .btn-comparar-caracteristicas {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .precio-card-footer {
        padding: 0.75rem 1rem 1rem;
    }

    .precio-card-footer .btn {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .personalizar-beneficios {
        font-size: 0.8rem;
    }

    .personalizar-cta-indicator {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .cta-precios h2 {
        font-size: 1.5rem;
    }

    .cta-precios .btn-light {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }

    #simuladorModal .modal-body .row > div {
        margin-bottom: 1rem;
    }

    #comparativaModal .comparativa-table-wrapper {
        position: relative;
    }

    #comparativaModal .comparativa-table-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.9));
        pointer-events: none;
        z-index: 1;
    }
}
