/* ─── Sendero de Campeones — Formulario de Inscripción ─── */

:root {
    --sdc-primary: #1a5276;
    --sdc-secondary: #2e86c1;
    --sdc-accent: #f39c12;
    --sdc-success: #27ae60;
    --sdc-bg: #f0f4f8;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--sdc-bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* ─── Header ─── */
.sdc-header {
    background: linear-gradient(135deg, var(--sdc-primary), var(--sdc-secondary));
    color: #fff;
    padding: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.sdc-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.sdc-header .sede-badge {
    background: var(--sdc-accent);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.sdc-logo {
    max-height: 60px;
    width: auto;
}

/* ─── Card principal ─── */
.sdc-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.sdc-card .card-header {
    background: var(--sdc-primary);
    color: #fff;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    border: none;
}

.sdc-card .card-header i {
    margin-right: 8px;
}

.sdc-card .card-body {
    padding: 1.5rem;
}

/* ─── Stepper / Tabs ─── */
.nav-pills .nav-link {
    border-radius: 8px;
    padding: 0.65rem 1.25rem;
    font-weight: 500;
    color: var(--sdc-primary);
    background: #e8f0fe;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background: var(--sdc-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(26, 82, 118, 0.3);
}

.nav-pills .nav-link:hover:not(.active) {
    background: #d5e5f5;
}

/* ─── Form controls ─── */
.form-label {
    font-weight: 500;
    color: #34495e;
    font-size: 0.875rem;
    margin-bottom: 0.3rem;
}

.form-label .text-danger {
    font-size: 0.8rem;
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 1.5px solid #d5dbdf;
    padding: 0.55rem 0.85rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--sdc-secondary);
    box-shadow: 0 0 0 3px rgba(46, 134, 193, 0.15);
}

.form-control.is-invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-control.is-valid {
    border-color: var(--sdc-success);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* ─── Preview de foto ─── */
.foto-preview-container {
    width: 150px;
    height: 180px;
    border: 2px dashed #bdc3c7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fafafa;
    margin: 0 auto;
    transition: border-color 0.3s;
}

.foto-preview-container:hover {
    border-color: var(--sdc-secondary);
}

.foto-preview-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.foto-preview-container .placeholder-icon {
    font-size: 3rem;
    color: #bdc3c7;
}

/* ─── Botón de envío ─── */
.btn-sdc-primary {
    background: linear-gradient(135deg, var(--sdc-primary), var(--sdc-secondary));
    border: none;
    color: #fff;
    padding: 0.7rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(26, 82, 118, 0.25);
}

.btn-sdc-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(26, 82, 118, 0.35);
    color: #fff;
}

.btn-sdc-primary:disabled {
    opacity: 0.65;
    transform: none;
    cursor: not-allowed;
}

/* ─── Expirado / Error ─── */
.sdc-expired {
    text-align: center;
    padding: 3rem 1rem;
}

.sdc-expired i {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.sdc-expired h2 {
    color: #2c3e50;
    font-weight: 700;
}

.sdc-expired p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* ─── Success ─── */
.sdc-success {
    text-align: center;
    padding: 3rem 1rem;
}

.sdc-success i {
    font-size: 4rem;
    color: var(--sdc-success);
    margin-bottom: 1rem;
}

/* ─── Spinner ─── */
.sdc-loading {
    display: none;
}

.sdc-loading.active {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ─── Timer ─── */
.sdc-timer {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.sdc-timer i {
    margin-right: 4px;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .sdc-header h1 {
        font-size: 1.15rem;
    }

    .nav-pills .nav-link {
        padding: 0.5rem 0.85rem;
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .sdc-card .card-body {
        padding: 1rem;
    }

    .btn-sdc-primary {
        width: 100%;
    }
}

/* ─── Sección Autorización ─── */
#seccion-autorizacion .card {
    transition: box-shadow 0.2s;
}

#seccion-autorizacion .card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

#seccion-autorizacion .form-check-input:checked {
    background-color: var(--sdc-success);
    border-color: var(--sdc-success);
}

#seccion-autorizacion .form-check-label {
    cursor: pointer;
    user-select: none;
}

#seccion-autorizacion .bg-light {
    border: 1px solid #e9ecef;
}

#seccion-autorizacion .bg-light p:last-child {
    margin-bottom: 0;
}

/* ─── Footer ─── */
.sdc-footer {
    padding: 1.5rem 0;
    text-align: center;
    color: #95a5a6;
    font-size: 0.8rem;
}
