﻿/*============================================================================================*/
/* Your custom styles below */
/*============================================================================================*/
body,main {
    background: #f4f4f4;
}
header {
    background:none;
    padding: 10px 30px;
    border: 0;
}
header.header.sticky {
    background: none;
    background-color: rgba(24, 24, 27, 0.8);
    backdrop-filter: blur(24px);
    padding: 10px 30px 10px;
    box-sizing: border-box;
   
}
#navbar-border {
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    display: block;
    border-bottom: solid 1px rgba(255,255,255,.2);
    width: calc(100% - 3rem);
    height: 1px;
    z-index: 10;
    box-sizing: border-box;
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}
header.header.sticky #navbar-border {
    width: 100%;
    left: 0;
}
#hero_in {
    display: flex;
    align-items: end;
    text-align: left;
    height: auto;
    min-height: min(60vh, 380px);
    
    background-color: rgba(8, 26, 72, .7);
    padding: 90px 0 30px 0;
}
#hero_in:before {
    height: 100%;
}
#hero_in.courses .wrapper {
    width: 100%;
    height: 100%;
    background: none;
}

form h2 {
    color: #1e40af;
    font-size: 1.75rem;
    line-height: 1.2rem;
    text-wrap: balance;
    font-weight: 700;
}
form .h4 {
    color: #0284c7;
    line-height: 1.4rem;
    font-size: 1.1rem;
    font-weight: 700;
}
#hero_in .wrapper h1 strong {
    margin: 0;
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.8rem;
    text-wrap: balance;
    color: #fff;
    max-width: 768px;
}
#hero_in .wrapper h1 div {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 30px;
    text-wrap: balance;
}
.box_cart {
    background: #fff;
    box-shadow: none;
    
    border: none;
    border-radius: 24px;
    padding: 0px;
}

@media (min-width: 576px) {
    .box_cart {
        padding: 24px;
    }
}
@media (min-width: 768px) {
    form h2 {
        font-size: 2.75rem;
        line-height: 1.4rem;
    }
    form .h4 {
        font-size: 1.5rem;
        line-height: 2rem;
        font-weight: 700;
    }
    #hero_in .wrapper h1 strong {
        font-size: 2.0rem;
        line-height: 2.4rem;
    }
    #hero_in .wrapper h1 div {
        font-size: 1rem;
    }
}

.form_title {
    margin-bottom: 20px;
}
.form_title h3 {
    line-height: 1.6rem;
}
.form_title h3 strong {
    background-color: #4b054e;
    top: -8px;
}

.form-control {
    padding: 24px 12px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    border-radius: 0;
    border: 1px solid #999;
    border-bottom-color: #1e293b;
    border-bottom-width:1px;
    background-color: #fff;
    border-radius: 24px;
}

/* Normalizar altura de campos numéricos */
input[type="number"].form-control {
    padding: 12px !important;
    height: 48px;
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Eliminar spinners en campos numéricos */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


.custom-select {
    padding: 12px !important;
    font-weight: 600;
    font-size: 1rem;
    height: auto;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    border-radius: 0;
    border: 1px solid #999;
    background-color: #fff;
    border-bottom-color: #1e293b;
    border-bottom-width: 1px;
    border-radius: 24px;
}
.form-control:focus, .custom-select:focus {
   box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.2), 0 8px 10px -6px rgb(0 0 0 / 0.2), rgba(0, 123, 255, 0.55) 0px 0px 0px 0.2rem;

}
.custom-select.is-invalid:focus,
.form-control.is-invalid:focus,
.was-validated .custom-select:invalid:focus,
.was-validated .form-control:invalid:focus {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.2), 0 8px 10px -6px rgb(0 0 0 / 0.2),0 0 0 .2rem rgba(220,53,69,.55);
}
.custom-select.is-valid:focus,.form-control.is-valid:focus,.was-validated .custom-select:valid:focus,.was-validated .form-control:valid:focus {
    border-color: #28a745;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.2), 0 8px 10px -6px rgb(0 0 0 / 0.2),0 0 0 .2rem rgba(40,167,69,.55)
}

.form-control::placeholder, .custom-select::placeholder {
    font-size: 14px;
    color: #777;
    font-weight: 400;
}
.form-group label {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.form-check {
   position: static;
}
.form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 0.2rem;
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.1)) drop-shadow(0 2px 0px rgba(0, 0, 0, 0.2));
}
.form-check label {
    margin-left: 5px;
}
.input-feedback {
    position:absolute;
    bottom: -14px;
    left: 16px;
}
.invalid-feedback {
    line-height: .8rem;
}
.container-back {
    position: absolute;
    top: 0;
    left: 0;
}
.btn-next {
    width: 100%;
    padding: 12px 20px;
    border-radius: 24px;
}
.btn-back {
    width: 100%;
    padding: 12px;
    border-radius: 24px;
    font-size: .9rem;
}
footer {
    background-color: rgb(23, 37, 84)
}

/* ====================================== */
/* Alineación de mensajes de validación  */
/* ====================================== */

/* Alinear mensajes de validación a la derecha */
.invalid-feedback {
    display: block !important;
    width: 100%;
    text-align: right;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
    line-height: 0.8rem;
    padding-right: 1rem;
}

    /* Para los mensajes de validación dentro de grupos de radio/checkbox */
    .invalid-feedback.input-feedback {
        position: absolute;
        bottom: -14px;
        right: 16px; /* Cambiado de left a right */
        left: auto;
        text-align: right;
    }

    /* Asegurar que los validadores ASP.NET también se alineen a la derecha */
    .invalid-feedback span,
    .invalid-feedback > * {
        display: block;
        text-align: right;
        width: 100%;
    }

/* Estilos para campos inválidos */
.form-control.is-invalid,
.was-validated .form-control:invalid,
.custom-select.is-invalid,
.was-validated .custom-select:invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Ajuste para grupos de formulario con posición relativa */
.form-group {
    position: relative;
}

/* Asegurar que los mensajes múltiples se apilen correctamente */
.invalid-feedback > *:not(:last-child) {
    margin-bottom: 0.25rem;
}


/* ====================================== */
/* Ajustes para Default.aspx - Sedes     */
/* ====================================== */

/* Cuando la página muestra la sección de sedes */
#cphMain_pnlSedes {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

/* Ajustar el hero para que se expanda con el contenido */
body:has(#cphMain_pnlSedes) #hero_in {
    min-height: auto;
    padding-bottom: 100px; /* Espacio para la tabla de sedes */
}

/* Alternativa sin :has() (mejor compatibilidad) */
.has-sedes-visible #hero_in {
    min-height: auto;
    padding-bottom: 100px;
}

/* Estilo para la sección de Sedes y Turnos */
.main_title_2 {
    margin-bottom: 30px;
}

    .main_title_2 h2 {
        color: #1e40af;
        font-size: 2rem;
        font-weight: 700;
        text-align: center;
    }

/* Tabla de sedes */
#cphMain_gvSedes {
    width: 100%;
    margin-bottom: 0;
}

    #cphMain_gvSedes thead th {
        background-color: #1e40af;
        color: #fff;
        font-weight: 600;
        padding: 12px;
        text-align: left;
        border: none;
    }

    #cphMain_gvSedes tbody td {
        padding: 16px 12px;
        vertical-align: middle;
        border-bottom: 1px solid #e5e7eb;
    }

    #cphMain_gvSedes tbody tr:hover {
        background-color: #f9fafb;
    }

    /* Botón Inscribirse */
    #cphMain_gvSedes a[id*="lnkSeleccionar"] {
        display: inline-block;
        padding: 10px 24px;
        text-decoration: none;
        border-radius: 24px;
        border: 2px solid #3f9fff;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

        #cphMain_gvSedes a[id*="lnkSeleccionar"]:hover {
            background-color: #1e3a8a;
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
            transform: translateY(-2px);
        }

/* Mensaje de alertas */
#cphMain_pnlMensaje {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 8px;
}

    #cphMain_pnlMensaje .bullets {
        list-style: none;
        padding-left: 0;
        margin: 0;
    }

        #cphMain_pnlMensaje .bullets li {
            position: relative;
            padding-left: 28px;
            margin-bottom: 8px;
            color: #92400e;
            font-weight: 500;
        }

            #cphMain_pnlMensaje .bullets li:before {
                content: "";
                position: absolute;
                left: 0;
                font-size: 1.2rem;
                color: #f59e0b;
            }

/* Ajuste responsive */
@media (max-width: 994px) {
    body:has(#cphMain_pnlSedes) #hero_in,
    .has-sedes-visible #hero_in {
        padding-bottom: 150px;
    }

    #cphMain_pnlSedes {
        margin-top: -30px;
    }

    .main_title_2 h2 {
        font-size: 1.5rem;
    }

    #cphMain_gvSedes thead {
        display: none;
    }

    #cphMain_gvSedes tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 16px;
        background: #fff;
    }

    #cphMain_gvSedes tbody td {
        display: block;
        text-align: left;
        padding: 8px 0;
        border: none;
    }

        #cphMain_gvSedes tbody td:before {
            content: attr(data-label);
            font-weight: 600;
            display: block;
            margin-bottom: 4px;
            color: #1e40af;
        }
}

/* Box para la tabla de sedes */
#sedes .box_cart {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Animación al aparecer */
#cphMain_pnlSedes {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Turnos como badges */
#cphMain_gvSedes .form-check label {
    display: inline-block;
    padding: 6px 12px;
    background-color: #e0e7ff;
    color: #3730a3;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 4px;
}

#cphMain_gvSedes .form-check-input:checked + label {
    background-color: #1e40af;
    color: #fff;
}