﻿body {
    background: #f3f7fb;
}

.matricula-wrapper {
    width: 95%;
    max-width: 1180px;
    margin: 25px auto 50px;
}

.matricula-hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, #063b73, #00a6b8);
    border-radius: 22px;
    padding: 34px;
    color: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.16);
}

.badge {
    display: inline-block;
    background: rgba(255,255,255,.18);
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 13px;
    margin-bottom: 12px;
}

.hero-text h1 {
    margin: 0 0 12px;
    font-size: 34px;
}

.hero-text p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    max-width: 560px;
}

.hero-video video {
    width: 100%;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(0,0,0,.25);
}

.form-card {
    margin-top: 24px;
    background: #fff;
    border-radius: 22px;
    padding: 30px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group.full {
        grid-column: 1 / -1;
    }

    .form-group label {
        font-weight: 600;
        color: #0f172a;
        margin-bottom: 7px;
        font-size: 14px;
    }

.input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    transition: .2s;
    box-sizing: border-box;
}

    .input:focus {
        border-color: #00a6b8;
        box-shadow: 0 0 0 3px rgba(0,166,184,.13);
    }

.textarea {
    resize: vertical;
    min-height: 110px;
}

.check-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
}

    .check-list label {
        font-weight: 500;
        margin-left: 6px;
    }

.btn-enviar {
    margin-top: 24px;
    border: none;
    background: linear-gradient(135deg, #063b73, #00a6b8);
    color: white;
    padding: 14px 26px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,166,184,.25);
}

    .btn-enviar:hover {
        transform: translateY(-1px);
    }

@media (max-width: 850px) {
    .matricula-hero {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .hero-text h1 {
        font-size: 27px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .check-list {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   ACEPTACIÓN DEL REGLAMENTO
========================================================= */

.reglamento-aceptacion {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 24px 0 18px;
    padding: 16px 18px;
    background: #f5f9fd;
    border: 1px solid #dbe7f3;
    border-radius: 12px;
}

.reglamento-checkbox {
    display: inline-flex;
    align-items: center;
}

    .reglamento-checkbox input {
        width: 19px;
        height: 19px;
        margin: 0 5px 0 0;
        cursor: pointer;
        accent-color: #0b5ed7;
    }

.reglamento-texto {
    color: #263549;
    font-size: 14px;
    cursor: pointer;
}

.btn-ver-reglamento {
    padding: 0;
    border: none;
    background: transparent;
    color: #0b5ed7;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

    .btn-ver-reglamento:hover {
        color: #063b73;
    }

.required {
    color: #dc2626;
    font-weight: 700;
}


/* =========================================================
   MODAL DEL REGLAMENTO
========================================================= */

.modal-reglamento {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .modal-reglamento.activo {
        display: flex;
    }

.modal-reglamento-fondo {
    position: absolute;
    inset: 0;
    background: rgba(3, 16, 31, 0.78);
    backdrop-filter: blur(4px);
}

.modal-reglamento-contenido {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(920px, 100%);
    max-height: calc(100vh - 40px);
    overflow: hidden;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
    animation: mostrarModalReglamento 0.22s ease-out;
}

@keyframes mostrarModalReglamento {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-reglamento-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    color: #ffffff;
    background: linear-gradient( 135deg, #061a3a 0%, #0b5ed7 65%, #19aebd 100% );
    border-bottom: 4px solid #72d84a;
}

.modal-reglamento-marca {
    display: inline-block;
    margin-bottom: 5px;
    color: #bfeeff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.modal-reglamento-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(23px, 4vw, 32px);
}

.modal-reglamento-header p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    line-height: 1.5;
}

.modal-reglamento-cerrar {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s ease;
}

    .modal-reglamento-cerrar:hover {
        background: rgba(255, 255, 255, 0.24);
        transform: rotate(5deg);
    }

.modal-reglamento-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px 30px;
    scroll-behavior: smooth;
}

.reglamento-aviso {
    margin-bottom: 22px;
    padding: 15px 17px;
    color: #073763;
    background: #edf7ff;
    border-left: 4px solid #19aebd;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.reglamento-seccion {
    padding: 19px 0;
    border-bottom: 1px solid #e5e7eb;
}

    .reglamento-seccion:first-of-type {
        padding-top: 0;
    }

    .reglamento-seccion h3 {
        margin: 0 0 11px;
        color: #063b73;
        font-size: 18px;
    }

    .reglamento-seccion p {
        margin: 0 0 12px;
        color: #374151;
        font-size: 14px;
        line-height: 1.75;
        text-align: justify;
    }

        .reglamento-seccion p:last-child {
            margin-bottom: 0;
        }

.reglamento-aceptacion-final {
    margin-top: 18px;
    padding: 20px;
    background: #f0f8ff;
    border: 1px solid #c9e0f3;
    border-radius: 12px;
}

.modal-reglamento-footer {
    display: flex;
    justify-content: flex-end;
    padding: 16px 28px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.btn-cerrar-reglamento {
    min-width: 180px;
    padding: 12px 20px;
    border: none;
    border-radius: 9px;
    color: #ffffff;
    background: linear-gradient(135deg, #0b5ed7, #087f9b);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

    .btn-cerrar-reglamento:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(11, 94, 215, 0.24);
    }

body.modal-abierto {
    overflow: hidden;
}

@media (max-width: 600px) {

    .modal-reglamento {
        padding: 10px;
    }

    .modal-reglamento-contenido {
        max-height: calc(100vh - 20px);
        border-radius: 13px;
    }

    .modal-reglamento-header {
        padding: 19px 18px;
    }

        .modal-reglamento-header p {
            display: none;
        }

    .modal-reglamento-body {
        padding: 20px 18px;
    }

    .modal-reglamento-footer {
        padding: 13px 18px;
    }

    .btn-cerrar-reglamento {
        width: 100%;
    }

    .reglamento-aceptacion {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .reglamento-seccion p {
        text-align: left;
    }
}