/* ============================================ */
/* ESTILOS PARA ESCUELA NAVARRA DEL DEPORTE  */
/* ============================================ */

/* Estilos generales de sección */
.escuela-section {
    padding-top: 130px;
}

/* Títulos de página */
.escuela-page-title {
    font-size: 2.75rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.escuela-title-separator {
    height: 3px;
    width: 80px;
    background: var(--gradient-accent);
    margin: 0 auto;
    border-radius: 2px;
}

.escuela-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
}

/* ============================================ */
/* BREADCRUMB PERSONALIZADO                    */
/* ============================================ */

.breadcrumb-escuela {
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    display: inline-flex;
    background-color: var(--glass-bg);
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow-sm);
}

.breadcrumb-escuela {
    --bs-breadcrumb-divider: '\2022' !important;
}

.breadcrumb-escuela .breadcrumb-item {
    color: var(--text-color);
}

.breadcrumb-escuela .breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumb-escuela .breadcrumb-item a:hover {
    color: var(--accent-darker);
}

.breadcrumb-escuela .breadcrumb-item.active {
    color: var(--text-color);
    font-weight: 600;
}

.breadcrumb-escuela .breadcrumb-item + .breadcrumb-item::before {
    content: "\203a" !important;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    color: var(--primary) !important;
    float: left;
}

/* ============================================ */
/* TARJETAS DE CURSOS                          */
/* ============================================ */

.curso-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.08); /* Borde sutil */
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.curso-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

/* Header azul */
.curso-card-header {
    background-color: var(--primary); /* Azul principal */
    background: linear-gradient(135deg, var(--primary) 0%, #2980b9 100%);
    padding: 1.5rem;
    position: relative;
    border-radius: 12px 12px 0 0;
    min-height: 80px; /* Asegurar altura suficiente */
}

/* Icono circular superpuesto */
.curso-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 2px solid #fff;
    position: relative; /* Para contexto de stacking */
    z-index: 2;
}

.curso-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    padding: 2px;
}

.curso-icon-wrapper i {
    font-size: 1.8rem;
    color: var(--primary);
}

/* Etiqueta de deporte en header */
.curso-sport-badge {
    background-color: #fff;
    color: var(--primary);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: inline-block;
    vertical-align: middle;
}

/* Cuerpo de la tarjeta */
.curso-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.curso-title {
    font-family: 'Playfair Display', serif; /* Mantener serif para títulos como en imagen */
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: #333;
}

.curso-subtitle {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1.25rem;
    font-style: italic;
}

/* Caja de fechas (celeste con borde izquierdo) */
.curso-info-box {
    background-color: #eff6ff; /* Celeste muy claro */
    border-left: 4px solid #3b82f6; /* Azul borde */
    padding: 1rem;
    border-radius: 0 4px 4px 0;
    margin-bottom: 1.5rem;
}

.curso-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.curso-info-item:last-child {
    margin-bottom: 0;
}

.curso-info-item i {
    margin-right: 0.75rem;
    color: #3b82f6;
    font-size: 1rem;
}

/* Stats grid (Inscripciones / Plazas) */
.curso-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    text-align: center;
    margin-top: auto; /* Empujar al fondo del body */
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.curso-stat-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: #333;
    display: block;
    margin-bottom: 0.25rem;
}

.curso-stat-value {
    font-size: 0.85rem;
    color: #666;
}

.text-success-custom { color: #10b981; }
.text-warning-custom { color: #f59e0b; }
.text-danger-custom { color: #ef4444; }

/* Precio Badge */
.curso-price-badge {
    background-color: #555; /* Gris oscuro */
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    margin-top: 1.25rem;
}

/* Footer limpio */
.curso-card-footer {
    padding: 1.5rem;
    background-color: #fff;
    border-top: none;
    padding-top: 0;
}

.btn-info-outline {
    border: 1px solid #ccc;
    color: #666;
    font-size: 0.9rem;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.btn-info-outline:hover {
    background-color: #f8f9fa;
    color: #333;
    border-color: #bbb;
}

.btn-inscript-block {
    display: block;
    width: 100%;
    background-color: #3b5eba; /* Color azul oscuro/oficial */
    color: #fff;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s;
    border: none;
}

.btn-inscript-block:hover {
    background-color: #2c4a96;
    color: #fff;
}

.btn-inscript-block:disabled,
.btn-inscript-block.disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* ============================================ */
/* FORMULARIO DE INSCRIPCIÓN                   */
/* ============================================ */

.form-section-title {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 1px solid var(--card-border);
    border-radius: calc(var(--radius) - 2px);
    padding: 0.75rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 40, 85, 0.1);
    background-color: var(--card-bg);
    color: var(--text-color);
}

.dark-mode .form-control,
.dark-mode .form-select {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-color: var(--card-border);
}

.form-check-input {
    border: 1px solid var(--card-border);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    color: var(--text-color);
    margin-left: 0.5rem;
}

/* Contenedor de aceptación */
.acceptance-box {
    background-color: var(--glass-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.dark-mode .acceptance-box {
    background-color: rgba(255, 255, 255, 0.03);
}

/* ============================================ */
/* TARJETAS DE RESULTADO                       */
/* ============================================ */

.result-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--card-bg);
    box-shadow: var(--shadow-lg);
}

.result-icon-success {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.3);
}

.result-icon-error {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.3);
}

.result-icon-warning {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 3rem;
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.3);
}

/* ============================================ */
/* PASARELA DE PAGO                            */
/* ============================================ */

.payment-container {
    background: linear-gradient(135deg, #002855 0%, #1e88e5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 450px;
    width: 100%;
    background-color: #ffffff;
}

.payment-icon {
    font-size: 4rem;
    color: #002855;
    margin-bottom: 1rem;
}

.secure-badge {
    background: #28a745;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.payment-spinner {
    width: 4rem;
    height: 4rem;
}

/* ============================================ */
/* BADGES Y ETIQUETAS                          */
/* ============================================ */

.badge-curso-gratis {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: calc(var(--radius) - 2px);
}

.badge-curso-precio {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: calc(var(--radius) - 2px);
}

/* ============================================ */
/* ALERTAS PERSONALIZADAS                      */
/* ============================================ */

.alert-escuela {
    border: none;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    background-color: var(--glass-bg);
    backdrop-filter: blur(5px);
    border-left: 4px solid var(--primary);
}

.alert-escuela-success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(32, 201, 151, 0.02) 100%);
}

.alert-escuela-info {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.05) 0%, rgba(30, 136, 229, 0.02) 100%);
}

.alert-escuela-warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 152, 0, 0.02) 100%);
}

/* ============================================ */
/* RESPONSIVIDAD                               */
/* ============================================ */

@media (max-width: 768px) {
    .escuela-section {
        padding-top: 110px;
    }
    
    .escuela-page-title {
        font-size: 2rem;
    }
    
    .result-icon-success,
    .result-icon-error,
    .result-icon-warning {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .payment-icon {
        font-size: 3rem;
    }
}
