:root {
    --vino: #8f1838;
    --vino2: #5f0f26;
    --oro: #d5a62e;
    --tinta: #1e293b;
    --fondo: #f4f6f9;
}

/* =========================================================
   DISEÑO GENERAL
   ========================================================= */

body {
    color: var(--tinta);
    background:
        radial-gradient(
            circle at top left,
            #ffffff 0,
            #f7edf0 35%,
            var(--fondo) 75%
        );
    font-family:
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
}

/* =========================================================
   TARJETAS
   ========================================================= */

.hero-card,
.section-card {
    border: 0;
    border-radius: 1.35rem;
    box-shadow: 0 1rem 3rem rgba(46, 18, 28, 0.13);
}

.hero-panel {
    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            var(--vino2),
            var(--vino)
        );
}

.school-logo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.25);
}

/* =========================================================
   BOTONES
   ========================================================= */

.btn-danger {
    background-color: var(--vino);
    border-color: var(--vino);
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
    background-color: var(--vino2);
    border-color: var(--vino2);
}

/* =========================================================
   FORMULARIOS
   ========================================================= */

.form-control:focus,
.form-select:focus {
    border-color: #b84d68;
    box-shadow: 0 0 0 0.25rem rgba(143, 24, 56, 0.14);
}

.form-label {
    font-weight: 600;
}

.section-card .form-select,
.section-card .form-control {
    min-height: 46px;
}

.required::after {
    color: #b42318;
    content: " *";
}

.field-error {
    color: #b42318;
    font-size: 0.82rem;
}

.help-description {
    display: block;
    margin-top: 0.3rem;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.35;
}

.field-icon {
    margin-right: 0.25rem;
}

/* =========================================================
   ELEMENTOS DEL SISTEMA
   ========================================================= */

.topbar {
    color: #ffffff;
    background:
        linear-gradient(
            90deg,
            var(--vino2),
            var(--vino)
        );
}

.step-title {
    padding-left: 0.8rem;
    border-left: 0.35rem solid var(--oro);
}

.student-chip {
    background-color: #fff3f5;
    border: 1px solid #f0c9d3;
    border-radius: 1rem;
}

.sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    background-color: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e5e7eb;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.progress {
    height: 0.65rem;
}

.privacy-note {
    font-size: 0.88rem;
}

/* =========================================================
   FOOTER
   Mantiene la misma tipografía y jerarquía visual de index.php
   ========================================================= */

.site-footer {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            var(--vino2) 0%,
            var(--vino) 100%
        );
    border-top: 4px solid var(--oro);
}

/*
 * Elementos decorativos muy discretos para conservar
 * el mismo acabado visual del panel principal.
 */

.site-footer::before {
    position: absolute;
    top: -170px;
    right: -150px;
    width: 390px;
    height: 390px;
    content: "";
    background-color: rgba(255, 255, 255, 0.035);
    border-radius: 50%;
    pointer-events: none;
}

.site-footer::after {
    position: absolute;
    bottom: -220px;
    left: -160px;
    width: 410px;
    height: 410px;
    content: "";
    background-color: rgba(255, 255, 255, 0.025);
    border-radius: 50%;
    pointer-events: none;
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    padding-top: 3rem;
    padding-bottom: 2.75rem;
}

/*
 * Mismo tratamiento tipográfico que:
 *
 * <h2 class="h4">Comienza tu inscripción</h2>
 *
 * Bootstrap utiliza aproximadamente:
 * font-size: 1.5rem;
 * font-weight: 500;
 * line-height: 1.2;
 */

.footer-main-title {
    margin: 0 0 0.65rem;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.015em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

/*
 * Mismo tamaño y estilo base que:
 *
 * <div class="form-text">
 *     La información se verificará...
 * </div>
 *
 * Se cambia únicamente el color para obtener contraste
 * suficiente sobre el fondo vino.
 */

.footer-support-text {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.875em;
    font-weight: 400;
    line-height: 1.6;
}

.footer-support-text strong {
    color: #ffffff;
    font-weight: 600;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.875em;
    font-weight: 400;
    line-height: 1.6;
}

.footer-contact-icon {
    flex: 0 0 auto;
    width: 1.35rem;
    text-align: center;
}

.site-footer a {
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2rem;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #ffe6a0;
    text-decoration: underline;
}

.site-footer a:focus-visible {
    outline: 2px solid #ffe6a0;
    outline-offset: 3px;
    border-radius: 0.2rem;
}

.footer-service-message {
    margin-top: 1.1rem;
    color: #ffffff;
    font-weight: 500;
}

.footer-institution-section {
    height: 100%;
    padding-left: 2.25rem;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.footer-system-name {
    margin-top: 1.25rem;
    margin-bottom: 0.8rem;
    color: #ffe6a0;
    font-weight: 500;
}

.footer-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    padding: 0.42rem 0.8rem;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

/* =========================================================
   FRANJA INFERIOR DEL FOOTER
   ========================================================= */

.footer-bottom {
    position: relative;
    z-index: 1;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p {
    font-size: 0.82rem;
    line-height: 1.5;
}

.footer-bottom-primary {
    color: #ffffff;
    font-weight: 500;
}

.footer-bottom-secondary {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
}

/* =========================================================
   RESPONSIVIDAD
   ========================================================= */

@media (max-width: 991.98px) {
    .footer-content {
        padding-top: 2.5rem;
        padding-bottom: 2.25rem;
    }

    .footer-institution-section {
        padding-top: 2rem;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.22);
        border-left: 0;
    }
}

@media (max-width: 767.98px) {
    .school-logo {
        width: 145px;
        height: 145px;
    }

    .footer-content {
        padding-top: 2.2rem;
        padding-bottom: 2rem;
    }

    .footer-main-title {
        font-size: 1.35rem;
        line-height: 1.3;
    }

    .footer-support-text,
    .footer-contact-list li {
        font-size: 0.88rem;
    }
}

@media (max-width: 575.98px) {
    .footer-main-title {
        font-size: 1.25rem;
    }

    .footer-contact-list li {
        overflow-wrap: anywhere;
    }

    .footer-bottom {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}