/* ================================
   PÁGINA DE DETALLE - DISEÑO PREMIUM
   ================================ */

/* Contenedor principal */
.detail-header {
    margin-bottom: 2rem;
}

.detail-header h1 {
    color: #2d2d2d;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

/* Banner de imagen mejorado */
.img-banner-detail {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.img-banner-detail:hover {
    transform: scale(1.02);
}

/* ================================
   TABS MEJORADOS
   ================================ */
.tabs-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: #f8f9fa;
    border-bottom: 3px solid #ffcc00;
    padding: 0;
    margin: 0;
}

.tab-btn {
    flex: 1;
    padding: 1.25rem 1.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    border-right: 1px solid #e0e0e0;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn:hover {
    background: rgba(255, 204, 0, 0.1);
    color: #2d2d2d;
}

.tab-btn.active {
    background: linear-gradient(135deg, #ffcc00 0%, #ffd633 100%);
    color: #2d2d2d;
    font-weight: 700;
    box-shadow: 0 -3px 0 0 #ffcc00 inset;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: #ffcc00;
}

/* Contenido de tabs */
.tabs-content {
    padding: 0;
}

.card-body-custom {
    padding: 2rem;
}

.tab-pane {
    display: none;
    animation: fadeInContent 0.4s ease-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane h3 {
    color: #2d2d2d;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tab-pane h3 i {
    color: #ffcc00;
    font-size: 1.4rem;
}

.tab-pane p {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
}

/* Programa de contenido */
.programa-texto {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ffcc00;
    line-height: 1.8;
    color: #555;
}

/* Información de inscripción */
.inscripcion-info h4 {
    color: #2d2d2d;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.inscripcion-info h4::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ffcc00 0%, #ffd633 100%);
    color: #2d2d2d;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
}

.inscripcion-info p {
    color: #666;
    line-height: 1.8;
    padding-left: 2rem;
}

/* ================================
   CARD DE PAGO - SIDEBAR
   ================================ */
.card-pago-pro {
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-top: 4px solid #ffcc00;
}

.card-pago-pro h3 {
    color: #ffcc00;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-display {
    font-size: 3rem;
    font-weight: 700;
    color: #ffcc00;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Formulario de inscripción */
.card-pago-pro .form-group {
    margin-bottom: 1.25rem;
}

.card-pago-pro label {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.card-pago-pro .form-control,
.card-pago-pro .custom-select,
.card-pago-pro select {
    background: #ffffff !important;
    border: 2px solid #ffcc00 !important;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    min-height: 65px;
    height: auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2d2d2d !important;
    font-weight: 600 !important;
    transition: all 0.3s ease;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    -webkit-text-fill-color: #2d2d2d !important;
}

.card-pago-pro select.custom-select,
.card-pago-pro #selector-metodo {
    background-color: #ffffff !important;
    color: #2d2d2d !important;
    -webkit-text-fill-color: #2d2d2d !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 16 16'%3E%3Cpath fill='%23ffcc00' d='M8 11L3 6h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 20px !important;
    padding: 1.5rem 3.5rem 1.5rem 1.25rem !important;
    min-height: 65px !important;
    height: auto !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    display: flex !important;
    align-items: center !important;
    cursor: pointer;
}

.card-pago-pro .form-control:focus,
.card-pago-pro .custom-select:focus,
.card-pago-pro select:focus {
    background: #ffffff !important;
    border-color: #ffcc00 !important;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.4) !important;
    outline: none !important;
    color: #2d2d2d !important;
}

.card-pago-pro option {
    background: #ffffff !important;
    padding: 0.75rem 1rem !important;
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
    color: #2d2d2d !important;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Info box para transferencia */
.info-box {
    background: rgba(255, 204, 0, 0.15);
    border: 2px solid #ffcc00;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.info-box p {
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1rem;
}

.info-box strong {
    color: #ffcc00;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.info-box .form-control-file {
    background: #ffffff;
    padding: 0.875rem;
    border-radius: 8px;
    border: 2px solid #ffcc00;
    color: #2d2d2d;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 0.95rem;
}

.info-box .form-control-file:hover {
    background: #fffef5;
    border-color: #ffd633;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.15);
}

/* Botón de inscripción */
.card-pago-pro .btn-home-main {
    background: linear-gradient(135deg, #ffcc00 0%, #ffd633 100%);
    color: #2d2d2d;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.4);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-pago-pro .btn-home-main:hover {
    background: linear-gradient(135deg, #ffd633 0%, #ffe066 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.5);
}

/* Alerta de agotado */
.alert-dark {
    background: rgba(220, 53, 69, 0.15);
    border: 2px solid #dc3545;
    color: #ffffff;
    padding: 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

/* Control de visibilidad */
.hidden {
    display: none;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 992px) {
    .detail-header h1 {
        font-size: 2rem;
    }
    
    .price-display {
        font-size: 2.5rem;
    }
    
    .sticky-top {
        position: relative !important;
        top: 0 !important;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .detail-header h1 {
        font-size: 1.75rem;
    }
    
    .img-banner-detail {
        max-height: 250px;
    }
    
    .tabs-header {
        flex-direction: column;
    }
    
    .tab-btn {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .tab-btn:last-child {
        border-bottom: none;
    }
    
    .card-body-custom {
        padding: 1.5rem;
    }
    
    .card-pago-pro {
        padding: 1.5rem;
    }
    
    .price-display {
        font-size: 2.25rem;
    }
}

@media (max-width: 576px) {
    .detail-header h1 {
        font-size: 1.5rem;
    }
    
    .tab-btn {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .card-body-custom {
        padding: 1.25rem;
    }
    
    .tab-pane h3 {
        font-size: 1.25rem;
    }
    
    .price-display {
        font-size: 2rem;
    }
    
    .card-pago-pro .btn-home-main {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
}

/* 1. Ocultamos todos los paneles por defecto */
.tab-pane {
    display: none;
    padding: 20px 0;
}

/* 2. Solo mostramos el que tenga la clase .active */
.tab-pane.active {
    display: block !important;
    animation: fadeIn 0.4s ease;
    /* Para que aparezca suavemente */
}

/* 3. Estilo de los botones para que se note cuál está seleccionado */
.tab-btn.active {
    background-color: var(--accent-color) !important;
    /* Tu amarillo */
    color: var(--dark-gray) !important;
    border-bottom: 3px solid var(--dark-gray);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main.container {
    padding-top: 20px;
    /* Espacio de seguridad entre el header y el contenido */
}