﻿/*----------------------- Contenido Exlusivo para Login ----------------------------*/

.superwow-login-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4ff, #ffffff);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', sans-serif;
}

    .superwow-login-bg::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
        background-size: 40px 40px;
        animation: gridTwinkle 6s ease-in-out infinite;
        z-index: 0;
    }

@keyframes gridTwinkle {
    0%, 100% {
        opacity: 0.08;
    }

    50% {
        opacity: 0.2;
    }
}

.animated-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.shooting-star {
    position: absolute;
    left: -160px;
    width: 140px;
    height: 2px;
    border-radius: 2px;
    opacity: 0;
    animation: starFlyDiagonal 5s linear infinite;
}

    .shooting-star.blue {
        background: linear-gradient(to right, #00cfff, transparent);
        box-shadow: 0 0 12px #00cfff;
    }

    .shooting-star.gold {
        background: linear-gradient(to right, #FFD700, transparent);
        box-shadow: 0 0 12px #FFD700;
    }

@keyframes starFlyDiagonal {
    0% {
        transform: translateX(-160px);
        opacity: 0;
    }

    5% {
        opacity: 0.9;
    }

    90% {
        opacity: 0.9;
    }

    100% {
        transform: translateX(140vw);
        opacity: 0;
    }
}

.superwow-login-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(25px);
    border-radius: 1.8rem;
    padding: 3rem 2.2rem;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    text-align: center;
    animation: fadeInBounce 0.8s ease forwards;
}

@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    60% {
        opacity: 1;
        transform: scale(1.02) translateY(0);
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

.superwow-logo {
    position: relative;
    z-index: 1;
    width: 90px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

    .superwow-logo:hover {
        transform: scale(1.05);
    }

    .superwow-logo::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 110px;
        height: 110px;
        transform: translate(-50%, -50%);
        background: radial-gradient(circle, rgba(0, 116, 217, 0.2), transparent 70%);
        border-radius: 50%;
        animation: logoPulse 3s ease-in-out infinite;
        z-index: -1;
    }

@keyframes logoPulse {
    0%, 100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.superwow-login-card h2 {
    font-size: 1.8rem;
    color: #1a1a1a;
}

.superwow-login-card p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 2rem;
}

.superwow-input {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #ccc;
    border-radius: 2rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.2rem;
    transition: border-color 0.3s ease;
}

    .superwow-input:hover {
        border-color: #0074D9;
    }

    .superwow-input i {
        color: #0074D9;
        margin-right: 0.8rem;
        font-size: 1.2rem;
    }

    .superwow-input input {
        border: none;
        outline: none;
        width: 100%;
        background: transparent;
        font-size: 1rem;
        color: #333;
    }



.superwow-btn {
    width: 100%;
    background: linear-gradient(270deg, #0074D9, #005BBB, #FFD700, #FFB400);
    background-size: 600% 600%;
    color: white;
    border: none;
    border-radius: 2rem;
    padding: 0.9rem;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    animation: gradientBG 3s ease infinite;
    box-shadow: 0 6px 18px rgba(0, 116, 217, 0.3);
    transition: transform 0.2s;
}

    .superwow-btn:hover {
        transform: scale(1.03);
    }

    .superwow-btn:active {
        transform: scale(0.98);
        box-shadow: 0 4px 12px rgba(0, 116, 217, 0.2);
    }

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.superwow-footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #333;
}

    .superwow-footer a {
        color: #0074D9 !important;
        font-weight: 600;
        text-decoration: none;
    }

        .superwow-footer a:hover {
            text-decoration: underline;
        }

@media (max-width: 480px) {
    .superwow-login-card {
        padding: 2rem 1.5rem;
    }

        .superwow-login-card h2 {
            font-size: 1.5rem;
        }

    .superwow-logo {
        width: 75px;
    }
}




/* ------------------------ Contenido exclusivo para Registro ----------------- */

.superwow-register-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4ff, #ffffff);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', sans-serif;
}

.superwow-register-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(22px);
    border-radius: 1.8rem;
    padding: 3rem 2rem;
    max-width: 430px;
    width: 90%;
    text-align: center;
    border-top: 5px solid #0074D9;
    border-bottom: 4px solid #FFD700;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    animation: fadeIn 1s ease forwards;
}

    .superwow-register-card h2 {
        font-size: 1.9rem;
        color: #0074D9;
        margin-bottom: 0.5rem;
    }

    .superwow-register-card p {
        font-size: 1.05rem;
        color: #555;
        margin-bottom: 1.5rem;
    }

.school-highlight {
    color: #FFD700;
    font-weight: bold;
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 27, 58, 0.68); /* fondo oscuro azulado */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2.5px);
    transition: background 0.3s;
}

.superwow-register-modal {
    background: rgba(255,255,255,0.95);
    border-radius: 1.7rem;
    padding: 2.6rem 2.2rem 2.3rem 2.2rem;
    width: 95%;
    max-width: 420px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 64px 0 rgba(0,0,0,0.24), 0 2px 8px #ffd70033;
    border-top: 5px solid #0074D9;
    border-bottom: 4px solid #FFD700;
    animation: fadeInBounce 0.7s cubic-bezier(.47,1.64,.41,.8);
}

.modal-close {
    position: absolute;
    top: 0.6rem;
    right: 1.3rem;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #0074D9;
    font-weight: 700;
    cursor: pointer;
    z-index: 10;
    transition: color 0.18s, transform 0.16s;
}

    .modal-close:hover {
        color: #FFD700;
        transform: scale(1.15);
    }

.register-logo img {
    height: 42px;
    margin-bottom: 0.9rem;
}

.register-title {
    font-size: 1.6rem;
    color: #0074D9;
    margin-bottom: 0.4rem;
    font-weight: 800;
}

.register-desc {
    font-size: 1.07rem;
    color: #444;
    margin-bottom: 1.1rem;
}

.school-highlight {
    color: #FFD700;
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* Reutiliza tus estilos .superwow-input, .superwow-btn, etc. */

@media (max-width: 500px) {
    .superwow-register-modal {
        padding: 1.5rem 0.7rem;
        max-width: 91vw;
    }

    .register-logo img {
        height: 32px;
    }
}

/*----------------------- Contenido Exlusivo para EL NAVMENU y Dashboard----------------------------*/

:root {
    --sidebar-main-width: 190px;
    --sidebar-mini-width: 54px;
}

.sidebar-mini {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-mini-width);
    background: #273c75;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1001;
    transition: width 0.2s;
}

.sidebar-main {
    position: fixed;
    left: var(--sidebar-mini-width);
    top: 0;
    bottom: 0;
    width: var(--sidebar-main-width);
    background: #fff;
    border-right: 1.5px solid #e6ecfa;
    z-index: 1000;
    padding: 2.2rem 0.6rem 1.1rem 0.6rem;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 16px #0074d91a;
    transition: width 0.2s, left 0.2s;
    overflow-x: hidden;
}

    .sidebar-main.collapsed {
        width: 0 !important;
        padding: 0;
        min-width: 0;
        overflow: hidden;
    }

.brand-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #0074d9;
    margin-bottom: 2.7rem;
    font-size: 1.14rem;
    white-space: nowrap;
}

.brand-logo {
    height: 36px;
    margin-bottom: 0.1rem;
    filter: drop-shadow(0 2px 10px #0074d955);
}

.sidebar-main ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.sidebar-link {
    color: #373c52;
    font-weight: 500;
    font-size: 1.03rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.77rem;
    padding: 0.75rem 1.1rem;
    transition: background 0.15s, color 0.13s;
    white-space: nowrap;
}

    .sidebar-link i {
        font-size: 1.17rem;
    }

    .sidebar-link:hover, .sidebar-link.active {
        background: #f2f6fc;
        color: #0074d9;
    }

.sidebar-mini ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    margin-top: 2.2rem;
}

.sidebar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background 0.13s;
}

    .sidebar-icon i {
        font-size: 1.35rem;
        color: #fff;
        transition: color 0.17s;
    }

    .sidebar-icon:hover, .sidebar-icon.active {
        background: #fff2c8;
    }

        .sidebar-icon:hover i, .sidebar-icon.active i {
            color: #FFD700;
        }

/* Hamburguesa y drawer para móvil */
.sidebar-hamburger {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 3002;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    box-shadow: 0 4px 16px #0074d91a;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .sidebar-hamburger i {
        font-size: 1.4rem;
        color: #0074d9;
    }


.sidebar-backdrop {
    position: fixed;
    z-index: 2999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0007;
    animation: fadeIn 0.17s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.sidebar-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 220px;
    background: #fff;
    box-shadow: 6px 0 28px #0074d91a;
    z-index: 3001;
    padding: 0; /* Ojo: padding 0 aquí */
    display: flex;
    flex-direction: column;
    animation: drawerSlideIn 0.2s;
}

.drawer-header {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1.1rem 1.2rem 0.3rem 1.2rem;
}

@keyframes drawerSlideIn {
    from {
        transform: translateX(-230px);
    }

    to {
        transform: translateX(0);
    }
}

.sidebar-drawer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.sidebar-drawer .sidebar-link {
    padding: 0.7rem 1.0rem;
}

.sidebar-drawer .brand-logo {
    height: 34px;
}

.sidebar-drawer .brand-name {
    margin-bottom: 2.3rem;
}

.sidebar-drawer-close {
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #0074d9;
    cursor: pointer;
    border-radius: 50%;
    padding: 0.18rem 0.28rem;
    line-height: 1;
    transition: background 0.14s;
}

    .sidebar-drawer-close:hover {
        background: #f2f6fc;
    }

/* Responsive */
@media (max-width: 1000px) {
    :root {
        --sidebar-main-width: 110px;
    }

    .sidebar-main .brand-name span {
        display: none;
    }
}

@media (max-width: 750px) {
    .dashboard-header, .dashboard-main {
        margin-left: 0 !important;
    }

    .sidebar-main,
    .sidebar-mini {
        display: none !important;
    }

    .sidebar-drawer {
        display: block !important;
    }

    .sidebar-hamburger {
        display: flex !important;
    }
}

@media (min-width: 751px) {
    .sidebar-drawer {
        display: none !important;
    }
}

.dashboard-header {
    margin-left: calc(var(--sidebar-main-width) + var(--sidebar-mini-width));
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.2rem;
    background: #fff;
    border-bottom: 1.5px solid #e6ecfa;
    box-shadow: 0 4px 16px #0074d91a;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: margin-left 0.22s;
}

    .dashboard-header.sidebar-collapsed {
        margin-left: var(--sidebar-mini-width) !important;
    }

.dashboard-main.sidebar-collapsed {
    margin-left: var(--sidebar-mini-width) !important;
}

.dashboard-main {
    transition: margin-left 0.22s;
    margin-left: calc(var(--sidebar-main-width) + var(--sidebar-mini-width));
}

@media (max-width: 1000px) {
    .dashboard-header {
        margin-left: calc(110px + var(--sidebar-mini-width));
    }
}

@media (max-width: 750px) {
    .dashboard-header {
        margin-left: 0 !important;
        padding-left: 68px; /* para dejar espacio a la hamburguesa */
    }
}

.search-bar {
    border: 1.3px solid #d5d9ee;
    border-radius: 1.5rem;
    padding: 0.68rem 1.2rem;
    font-size: 1.06rem;
    outline: none;
    margin-right: 1.7rem;
    min-width: 180px;
    background: #f5f8fd;
    transition: box-shadow 0.18s;
}

    .search-bar:focus {
        box-shadow: 0 2px 8px #0074d955;
        border-color: #0074d9;
    }

.dashboard-stats {
    display: flex;
    gap: 2.2rem;
}

.stat {
    background: #f5f8fd;
    border-radius: 1.1rem;
    padding: 0.6rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.58rem;
    font-size: 0.97rem;
    color: #1b2231;
    box-shadow: 0 1px 6px #0074d922;
    flex-direction: column;
    min-width: 80px;
    align-items: flex-start;
}

    .stat i {
        font-size: 1.15rem;
        margin-bottom: 0.1rem;
        color: #0074d9;
    }

    .stat.active {
        background: #0074d9;
        color: #fff;
        box-shadow: 0 2px 8px #0074d977;
    }

        .stat.active i {
            color: #FFD700;
        }

    .stat span {
        font-weight: 700;
        font-size: 1.09rem;
        margin-bottom: 0.07rem;
    }

    .stat small {
        font-size: 0.78rem;
        opacity: 0.76;
        margin-top: -0.14rem;
    }

.avatar img {
    border-radius: 50%;
    width: 37px;
    height: 37px;
    border: 2px solid #f6c700;
    box-shadow: 0 0 8px #ffd70047;
}

.brand-name-mobile {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-bottom: 2.2rem !important;
    gap: 0.25rem !important;
}

.brand-title-mobile {
    font-size: 1.12rem !important;
    font-weight: 700 !important;
    color: #0074d9 !important;
    text-align: center !important;
    letter-spacing: 0.04em !important;
    margin-top: 0.15rem !important;
    white-space: nowrap !important;
}

@media (max-width: 750px) {
    .brand-name-mobile {
        margin-bottom: 2.3rem !important;
    }

    .brand-logo {
        height: 35px !important;
    }

    .brand-title-mobile {
        font-size: 1.08rem !important;
    }
}

.drawer-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    margin-bottom: 2.2rem;
    margin-top: 0.2rem;
}

.drawer-logo {
    height: 38px;
    margin-bottom: 0.14rem;
    filter: drop-shadow(0 2px 10px #0074d955);
}

.drawer-title {
    font-size: 1.13rem;
    font-weight: 700;
    color: #0074d9;
    text-align: center;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.mobile-branding {
    display: none;
    align-items: center;
    gap: 0.6rem;
}

.mobile-logo {
    height: 31px;
    filter: drop-shadow(0 3px 1px #0074d955);
}

.mobile-title {
    font-size: 1.3rem;
    font-weight: 750;
    color: #0074d9;
    letter-spacing: 0.08em;
    white-space: nowrap;
    filter: drop-shadow(0 3px 2px #0074d955);
}

@media (max-width: 750px) {
    .mobile-branding {
        display: flex;
        margin-right: 1.1rem;
    }

    .dashboard-header input.search-bar,
    .dashboard-stats,
    .avatar {
        display: none !important;
    }
}

body {
    min-height: 100vh;
    background: linear-gradient(120deg, #f3f9fe 0%, #e7f1ff 100%);
    Líneas verticales sutiles background-image: repeating-linear-gradient(90deg, #e3ecfa 0, #e3ecfa 1px, transparent 1px, transparent 48px);
}


/*----------------------- menu de pie para celular ---------------------------------*/


.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95vw;
    max-width: 410px;
    background: #fff;
    border-radius: 2.2rem;
    box-shadow: 0 8px 24px #0074d92a;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.37rem 0.35rem 0.5rem 0.35rem;
    z-index: 3020;
    border: 1.2px solid #e6ecfa;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .bottom-nav::-webkit-scrollbar {
        display: none;
    }

.bottom-nav-link {
    flex: 1 0 auto;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #0074d9;
    text-decoration: none;
    font-size: 0.93rem;
    padding: 0.2rem 0 0.1rem 0;
    border-radius: 1rem;
    transition: background 0.14s, color 0.13s;
    font-weight: 500;
}

    .bottom-nav-link i {
        font-size: 1.5rem;
        margin-bottom: 0.13rem;
        color: #0074d9;
        transition: color 0.15s;
        filter: drop-shadow(0 2px 6px #FFD70044);
    }

    .bottom-nav-link.active,
    .bottom-nav-link:active,
    .bottom-nav-link:hover {
        background: linear-gradient(90deg, #009BFF 50%, #FFD700 100%);
        color: #fff !important;
    }

        .bottom-nav-link.active i,
        .bottom-nav-link:active i,
        .bottom-nav-link:hover i {
            color: #FFD700 !important;
        }

    .bottom-nav-link span {
        font-size: 0.87rem;
        margin-top: 0.03rem;
        letter-spacing: 0.02em;
        font-weight: 600;
    }

@media (max-width: 750px) {
    .bottom-nav {
        display: flex !important;
    }
}

@media (min-width: 751px) {
    .bottom-nav {
        display: none !important;
    }
}



/* ------------------------ Contenido exclusivo para Preinscripciones ----------------- */


/* -- lista y buscador */

.buscador {
    font-size: 1.1rem !important;
    padding: 0.8rem 1.1rem !important;
    border-radius: 1.2rem !important;
    border: 1.3px solid #d1d7e6 !important;
    box-shadow: 0 2px 10px rgba(0, 116, 217, 0.04);
    background: #f7fafc !important;
}

.tarjeta-alumno {
    background: linear-gradient(90deg, #f8fafc 70%, #e9f3fc 100%);
    box-shadow: 0 4px 20px rgba(90,60,200,0.09);
    border-radius: 1.1rem;
    transition: box-shadow 0.16s;
    cursor: pointer;
    border: 1.2px solid #e3eafc;
}

    .tarjeta-alumno:hover {
        box-shadow: 0 12px 38px 0 rgba(0, 116, 217, 0.13), 0 4px 14px 0 rgba(0, 116, 217, 0.09);
        border-color: #0074D9;
    }

.avatar-alumno {
    width: 60px;
    height: 60px;
    background: #e8e8fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/*----------------------- formulario --------------------*/

.container-preinscripciones {
    max-width: 1100px;
    margin: 2.5rem auto;
    padding: 1rem;
}

.main-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Card visual moderno */
.modern-card {
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 6px 20px rgba(90,60,200,0.12), 0 1.5px 5px rgba(40,80,160,0.04);
    padding: 1.6rem 1.2rem 1.2rem 1.2rem;
    margin-bottom: 1.8rem;
    transition: box-shadow 0.18s;
    border: none;
    min-height: 370px;
}

    .modern-card.sombra-azul:hover, .modern-card.sombra-azul:focus-within {
        box-shadow: 0 12px 38px 0 rgba(0, 116, 217, 0.28), /* sombra azul intensa */
        0 4px 14px 0 rgba(0, 116, 217, 0.16); /* sombra secundaria */
    }

    .modern-card.sombra-dorada:hover, .modern-card.sombra-dorada:focus-within {
        box-shadow: 0 12px 38px 0 rgba(220, 182, 35, 0.35), /* dorado más intenso */
        0 4px 14px 0 rgba(255, 207, 7, 0.22); /* secundaria amarilla */
    }

.modern-card-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: #0962b8;
    margin-bottom: 1.2rem;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: .7rem;
}

.modern-label {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: .12rem;
    color: #272b44;
    letter-spacing: 0.2px;
}

.modern-input,
input[type="date"].modern-input,
select.modern-input {
    border-radius: .7rem !important;
    border: 1.2px solid #d1d7e6 !important;
    font-size: 1rem !important;
    padding: .75rem 1rem !important;
    background: #f8f9fa !important;
    transition: border-color 0.17s, background 0.17s;
    box-shadow: none !important;
}

    .modern-input:focus {
        border-color: #6c5ce7 !important;
        background: #fff !important;
        outline: none !important;
    }

.input-group > .modern-input,
.input-group > select.modern-input {
    flex: 1 1 auto;
}

.btn-azul {
    background: #0074D9;
    color: #fff;
    border: none;
    border-radius: .7rem;
    font-weight: 600;
    padding: .6rem 1.3rem;
    font-size: 1.05rem;
    transition: background 0.18s, box-shadow 0.15s;
    box-shadow: 0 2px 10px rgba(0, 116, 217, 0.08);
}

    .btn-azul:hover, .btn-azul:focus {
        background: #005fa3;
        box-shadow: 0 6px 16px rgba(0, 116, 217, 0.19);
    }

.btn-dorado {
    background: linear-gradient(90deg, #EABE3F 50%, #FFD700 100%);
    color: #473b0c;
    border: none;
    border-radius: .7rem;
    font-weight: 600;
    padding: .6rem 1.3rem;
    font-size: 1.05rem;
    transition: background 0.18s, box-shadow 0.15s;
    box-shadow: 0 2px 10px rgba(234,190,63,0.13);
}

    .btn-dorado:hover, .btn-dorado:focus {
        background: linear-gradient(90deg, #FFD700 0%, #EABE3F 100%);
        box-shadow: 0 6px 16px rgba(234,190,63,0.19);
        color: #332702;
    }

.row.g-3 > [class*="col-"] {
    margin-bottom: 0.9rem;
}

/* Responsividad perfecta con Bootstrap y modern-card */
@media (max-width: 992px) {
    .modern-card {
        min-height: unset;
        padding: 1.1rem .7rem 1rem .7rem;
    }
}

@media (max-width: 576px) {
    .modern-card {
        padding: .8rem;
        margin-bottom: 1.1rem;
    }

    .container-preinscripciones {
        padding: 0.5rem;
    }
}

/* Puedes agregarle también sombra a los inputs cuando están enfocados si te gusta */
.modern-input:focus {
    box-shadow: 0 0 0 2px #1573d7;
}

/* Iconos en los títulos */
.modern-card-title i {
    font-size: 1.3rem;
    color: #EABE3F;
}

/* Mejoras en los select (opcional) */
select.modern-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%236c5ce7' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1.2rem 0.7rem;
    padding-right: 2.5rem !important;
}



/*------------------ MODO OSCURO --------------------*/

body.modo-oscuro,
.modo-oscuro .modern-card {
    background: #181c24 !important;
    color: #e9eaf3 !important;
}

.modo-oscuro .modern-input,
.modo-oscuro input[type="date"].modern-input,
.modo-oscuro select.modern-input {
    background: #222632 !important;
    color: #e9eaf3 !important;
    border-color: #353b4a !important;
}

.modo-oscuro .modern-card-title,
.modo-oscuro .modern-label {
    color: #ffd700 !important;
}

.modo-oscuro .btn-azul {
    background: #09315a;
    color: #ffd700;
}

.modo-oscuro .btn-dorado {
    background: linear-gradient(90deg, #af9d3e 40%, #ffce39 100%);
    color: #242424;
}
/* Sombras más sutiles en modo oscuro */
.modo-oscuro .sombra-azul, .modo-oscuro .sombra-dorada {
    box-shadow: 0 12px 38px 0 rgba(0, 116, 217, 0.13), 0 4px 14px 0 rgba(0, 116, 217, 0.07) !important;
}

/* Botón modo oscuro siempre visible pero nunca encima del navbar */
.boton-modo-oscuro {
    position: fixed;
    top: 1.2rem;
    right: 1.3rem;
    z-index: 2000;
    transition: all 0.25s;
}

@media (max-width: 992px) {
    .boton-modo-oscuro {
        top: 0.8rem;
        right: 1.1rem;
    }
}

/* En móvil: lo ponemos cerca de la parte superior izquierda, ¡nunca tapa el menú hamburguesa! */
@media (max-width: 576px) {
    .boton-modo-oscuro {
        top: 0.7rem;
        right: auto;
        left: 1rem;
        padding: 0.5rem 0.9rem !important;
        font-size: 1.07rem !important;
    }
}

.modo-oscuro .btn-filtro-dropdown {
    background: linear-gradient(90deg, #0b1a2d 0%, #093d63 100%);
    color: #ffd700 !important; /* dorado, si quieres resaltar el ícono en oscuro */
    border-left: 1.8px solid #14285a !important;
    box-shadow: 0 3px 14px rgba(20,40,90,0.18);
}

    .modo-oscuro .btn-filtro-dropdown:hover,
    .modo-oscuro .btn-filtro-dropdown:focus {
        background: linear-gradient(90deg, #093d63 0%, #0b1a2d 100%);
        color: #ffd700 !important;
        box-shadow: 0 7px 22px rgba(40,80,160,0.13);
    }

/*------------------------------------BOTONES FAB------------------------------------------*/

/* Sticky button para desktop */
.btn-guardar-sticky {
    position: sticky;
    top: 16px;
    right: 0;
    z-index: 50;
    float: right;
    margin-bottom: 1.2rem;
    min-width: 120px;
}

/* FAB para móvil */
.btn-fab-guardar {
    position: fixed !important;
    bottom: 110px;
    right: 18px;
    z-index: 1111;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.23);
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.19s, background 0.18s;
    background: #0074D9;
}

    .btn-fab-guardar:hover {
        box-shadow: 0 7px 32px rgba(0,116,217,0.22);
        background: #005fa3;
    }

@media (min-width: 768px) {
    .btn-fab-guardar, #footerBtnGuardar {
        display: none !important;
    }
}

#footerBtnGuardar, #footerBtnEditar {
    margin-bottom: 90px; /* o lo que necesites según tu nav */
}

.btn-fab-editar {
    position: fixed !important;
    bottom: 110px;
    right: 18px;
    z-index: 1111;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(234,190,63,0.23);
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #FFD700 50%, #EABE3F 100%);
    color: #473b0c;
    border: none;
}

    .btn-fab-editar:hover {
        box-shadow: 0 7px 32px rgba(234,190,63,0.22);
        background: linear-gradient(90deg, #EABE3F 0%, #FFD700 100%);
        color: #332702;
    }

@media (min-width: 768px) {
    .btn-fab-editar, #footerBtnEditar {
        display: none !important;
    }
}


/* === BOTÓN FLOTANTE SOPORTE === */
.btn-fab-soporte {
    position: fixed;
    right: 22px;
    bottom: 28px;
    z-index: 5001;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(90deg, #0074D9 80%, #00AEEF 100%);
    color: #fff;
    border: none;
    border-radius: 32px;
    box-shadow: 0 6px 22px #0074d93d;
    padding: 0.7rem 1.5rem 0.7rem 1.2rem;
    font-size: 1.04rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    min-width: 106px;
    max-width: 94vw;
    white-space: nowrap;
    overflow: hidden;
    transition: none; /* SIN animaciones */
}

    .btn-fab-soporte i {
        font-size: 1.32rem;
        color: #FFD700;
        filter: drop-shadow(0 2px 7px #FFD70044);
    }

    .btn-fab-soporte span {
        font-size: 0.98rem;
        font-weight: 600;
        line-height: 1.2;
        display: inline-block;
        text-align: left;
        flex-shrink: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 74px;
    }

/* SOLO ICONO EN MÓVIL */
@media (max-width: 650px) {
    .btn-fab-soporte {
        right: 50%;
        left: 50%;
        bottom: 18px;
        top: unset !important;
        transform: translateX(-50%);
        border-radius: 50%;
        width: 56px;
        min-width: 56px;
        max-width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        font-size: 1.07rem;
    }

        .btn-fab-soporte span {
            display: none !important;
        }
}

/* OFFCANVAS PERSONALIZADO SIN ANIMACIÓN */
.offcanvas-cuaderno-custom {
    position: fixed;
    top: 0;
    right: -410px;
    width: 370px;
    max-width: 100vw;
    height: 100vh;
    background: repeating-linear-gradient( to bottom, #f4f7fa 0px, #f4f7fa 36px, #e3ecfa 37px, #f4f7fa 38px ), linear-gradient(90deg, #0074d93b 3%, transparent 8%);
    box-shadow: 0 12px 42px #0074d928;
    border-left: 7px solid #0074D9;
    border-radius: 1.6rem 0 0 1.6rem;
    overflow-y: auto;
    z-index: 6001;
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    padding: 2.3rem 1.4rem 2.2rem 2.6rem;
    display: flex;
    flex-direction: column;
    bottom: auto;
    pointer-events: none;
    opacity: 0;
    transition: none; /* SIN ANIMACIÓN */
}

    .offcanvas-cuaderno-custom.open {
        right: 0;
        opacity: 1;
        pointer-events: auto;
    }

/* OFFCANVAS MÓVIL SIN ANIMACIÓN */
@media (max-width: 750px) {
    .offcanvas-cuaderno-custom {
        width: 100vw;
        height: 70vh;
        left: 0;
        right: 0 !important;
        bottom: -100vh;
        top: auto;
        border-radius: 1.4rem 1.4rem 0 0;
        padding: 2.1rem 1rem 1.4rem 1.2rem;
        border-left: none;
        border-top: 7px solid #0074D9;
        transition: none; /* SIN ANIMACIÓN */
    }

        .offcanvas-cuaderno-custom.open {
            right: 0 !important;
            bottom: 0;
            opacity: 1;
            pointer-events: auto;
        }
}

/* BACKDROP */
.offcanvas-cuaderno-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 5900;
    background: rgba(24,33,49,0.24);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
}

    .offcanvas-cuaderno-backdrop.show {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

/* DEMÁS ESTILOS INTERNOS IGUALES */
.cuaderno-title {
    font-size: 1.6rem;
    color: #0074D9;
    font-weight: 900;
    margin-bottom: 1.1rem;
    letter-spacing: .4px;
    text-shadow: 0 2px 8px #0074d917;
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
}

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.btn-closecuaderno {
    background: none;
    border: none;
    font-size: 2.1rem;
    color: #d62e2e;
    cursor: pointer;
    padding: 0 6px;
    opacity: 0.75;
    border-radius: 50%;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-closecuaderno span {
        display: inline-block;
        font-family: 'Segoe UI', Arial, sans-serif;
        font-weight: bold;
        line-height: 1;
    }

    .btn-closecuaderno:hover, .btn-closecuaderno:focus {
        color: #0074D9;
        background: #f1f5ff;
        opacity: 1;
    }

.cuaderno-support-section h6 {
    color: #232c42;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.cuaderno-support-section p,
.cuaderno-support-section a {
    color: #24334b !important;
    font-weight: 500;
    font-size: 1rem;
}

.cuaderno-support-section a {
    color: #0074D9 !important;
    text-decoration: underline;
}

.cuaderno-support-section hr {
    border-color: #0074d944;
    margin: 1.1rem 0 1rem 0;
}


/* -------- MODAL CARRERAS EXCLUSIVO ----------- */
.modal-carreras-exclusivo {
    background: rgba(248, 250, 252, 0.85) !important;
    border-radius: 1.6rem !important;
    box-shadow: 0 14px 44px rgba(0,116,217,0.21), 0 4px 24px rgba(220,182,63,0.10);
    backdrop-filter: blur(17px) saturate(130%);
    border: 2.5px solid rgba(0, 116, 217, 0.13);
    padding-bottom: 0 !important;
    overflow: hidden;
    position: relative;
}


    .modal-carreras-exclusivo .modal-header {
        background: none;
        border-bottom: none;
        padding-top: 1.4rem !important;
    }

.text-azul-vital {
    color: #0074D9;
}

.text-dorado {
    color: #EABE3F;
    letter-spacing: 0.5px;
}

.btn-carrera-listo {
    background: linear-gradient(90deg, #0074D9 0%, #1597e9 100%);
    color: #fff;
    font-weight: 700;
    border-radius: 0.9rem;
    border: none;
    box-shadow: 0 2px 12px rgba(0,116,217,0.13);
    transition: box-shadow 0.14s, transform 0.12s, background 0.18s;
}

    .btn-carrera-listo:hover, .btn-carrera-listo:focus {
        background: linear-gradient(90deg, #1597e9 0%, #0074D9 100%);
        transform: translateY(-2px) scale(1.04);
        box-shadow: 0 8px 28px rgba(0,116,217,0.17), 0 2px 10px rgba(0,116,217,0.11);
    }

/* ------- Buscador elegante --------- */
.modern-search-carrera .modern-input-carrera {
    background: rgba(255,255,255,0.97) !important;
    border-radius: 1.2rem 0 0 1.2rem !important;
    border: 1.8px solid #b4cfff !important;
    border-right: none !important;
    font-size: 1.12rem;
    font-weight: 500;
    color: #0d2f61;
    box-shadow: 0 2px 18px rgba(0,116,217,0.10);
}

.buscador-carrera-icono {
    background: linear-gradient(90deg, #0074D9 0%, #1597e9 100%);
    color: #fff !important;
    border-radius: 0 1.2rem 1.2rem 0 !important;
    border: 1.8px solid #b4cfff !important;
    border-left: none !important;
    font-size: 1.25rem;
    transition: background 0.21s;
}

.modern-search-carrera .modern-input-carrera:focus {
    border-color: #EABE3F !important;
    background: #fff !important;
    outline: none !important;
}

.tabla-carreras-exclusiva th {
    background: none !important;
    color: #0074D9;
    font-weight: 700;
    letter-spacing: .6px;
    font-size: 1.09rem;
    border-bottom: 2px solid #EABE3F33 !important;
}

.tabla-carreras-exclusiva td {
    border-top: none !important;
    font-size: 1.07rem;
    padding: .6rem 1rem;
    background: transparent;
    color: #18314b;
    transition: background 0.19s, color 0.17s;
}

/* --- Fila hover y seleccionada con gradiente animado --- */
.fila-carrera {
    border-radius: 0.7rem;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.12s;
    position: relative;
}

    .fila-carrera:hover:not(.fila-carrera-seleccionada) {
        background: linear-gradient(90deg, #EABE3F22 0%, #0074D933 100%);
        color: #0060B7;
        box-shadow: 0 3px 13px #0074D914;
    }

.fila-carrera-seleccionada {
    background: linear-gradient(90deg, #0074D9 0%, #1597e9 85%, #EABE3F 99%);
    color: #fff !important;
    box-shadow: 0 6px 24px #0074D960, 0 1.5px 5px #EABE3F44;
    animation: brillo-carrera 0.9s cubic-bezier(.24,.72,.61,.89);
    position: relative;
    /* Forzar color blanco a todo dentro */
}

    .fila-carrera-seleccionada td,
    .fila-carrera-seleccionada th,
    .fila-carrera-seleccionada .fw-bold,
    .fila-carrera-seleccionada * {
        color: #fff !important;
        /* Si llegas a usar <a> dentro, también pon color blanco: */
        text-shadow: 0 1px 6px rgba(20,20,60,0.09);
    }

@keyframes brillo-carrera {
    0% {
        box-shadow: 0 0 0 #0074D900, 0 0 0 #EABE3F00;
    }

    80% {
        box-shadow: 0 9px 36px #EABE3F77, 0 1.5px 12px #0074D999;
    }

    100% {
        box-shadow: 0 6px 24px #0074D960, 0 1.5px 5px #EABE3F44;
    }
}

/* --- Modal Glass + bordes y sombreado elegante --- */
.modal-glass {
    background: rgba(252,253,255, 0.94) !important;
    backdrop-filter: blur(11px) saturate(124%);
    border: 2.5px solid rgba(0,116,217,0.07);
    box-shadow: 0 10px 36px #EABE3F22, 0 4px 14px #0074D90D;
}

/* --- Modo oscuro exclusivo para el modal --- */
body.modo-oscuro .modal-carreras-exclusivo,
.modo-oscuro .modal-carreras-exclusivo {
    background: rgba(19,22,31,0.95) !important;
    border-color: #373f55 !important;
    color: #e9eaf3 !important;
}


.modo-oscuro .tabla-carreras-exclusiva th {
    color: #EABE3F !important;
    border-bottom: 2px solid #EABE3F44 !important;
}

.modo-oscuro .tabla-carreras-exclusiva td {
    color: #e4e9f5 !important;
    background: transparent;
}

.modo-oscuro .fila-carrera:hover:not(.fila-carrera-seleccionada) {
    background: linear-gradient(90deg, #EABE3F25 0%, #005fa370 100%);
    color: #EABE3F !important;
}

.modo-oscuro .fila-carrera-seleccionada {
    background: linear-gradient(90deg, #0074D9 0%, #1597e9 87%, #EABE3F 100%) !important;
    color: #fff !important;
    border: 2px solid #EABE3F44;
}

    .modo-oscuro .fila-carrera-seleccionada td,
    .modo-oscuro .fila-carrera-seleccionada th,
    .modo-oscuro .fila-carrera-seleccionada * {
        color: #fff !important;
        text-shadow: 0 1px 7px rgba(10,10,30,0.15);
    }

.modo-oscuro .modal-carreras-exclusivo .modal-header {
    background: none;
    color: #EABE3F !important;
}

.modo-oscuro .modal-carreras-exclusivo .modal-title {
    color: #EABE3F !important;
}

.modo-oscuro .modern-input-carrera {
    background: #23283A !important;
    color: #EABE3F !important;
    border-color: #0074D9 !important;
}

.modo-oscuro .buscador-carrera-icono {
    background: linear-gradient(90deg, #005fa3 0%, #1597e9 100%);
    color: #fff !important;
}

.modo-oscuro .btn-carrera-listo {
    background: linear-gradient(90deg, #005fa3 0%, #1597e9 100%);
    color: #fff !important;
}

    .modo-oscuro .btn-carrera-listo:hover,
    .modo-oscuro .btn-carrera-listo:focus {
        background: linear-gradient(90deg, #1597e9 0%, #005fa3 100%);
    }

/* --- Responsive --- */
@media (max-width: 600px) {
    .modal-carreras-exclusivo {
        border-radius: 1rem !important;
    }

    .tabla-carreras-exclusiva th, .tabla-carreras-exclusiva td {
        font-size: 0.99rem;
        padding: .46rem .5rem;
    }

    .modern-search-carrera .modern-input-carrera {
        font-size: 1rem;
    }
}

.btn-carrera-cancelar {
    background: linear-gradient(90deg, #e53935 0%, #f48c6f 100%);
    color: #fff !important;
    font-weight: 600;
    border: none;
    border-radius: 0.9rem;
    box-shadow: 0 2px 12px rgba(229,57,53,0.13);
    transition: background 0.17s, box-shadow 0.14s, transform 0.13s;
}

    .btn-carrera-cancelar:hover, .btn-carrera-cancelar:focus {
        background: linear-gradient(90deg, #f48c6f 0%, #e53935 100%);
        color: #fff !important;
        transform: translateY(-1px) scale(1.03);
        box-shadow: 0 7px 20px rgba(229,57,53,0.17), 0 2px 10px rgba(229,57,53,0.11);
    }

.modo-oscuro .btn-carrera-cancelar {
    background: linear-gradient(90deg, #e53935 0%, #e23c2c 100%);
    color: #fff !important;
}

    .modo-oscuro .btn-carrera-cancelar:hover, .modo-oscuro .btn-carrera-cancelar:focus {
        background: linear-gradient(90deg, #f48c6f 0%, #e53935 100%);
    }
/* ------------------- FIN DISEÑO MODAL CARRERAS -------------------- */


.btn-filtro-dropdown {
    background: linear-gradient(90deg, #0074D9 0%, #1597e9 100%);
    color: #fff !important;
    border: none;
    border-radius: 0 1.2rem 1.2rem 0 !important;
    font-size: 1.22rem;
    padding: 0.47rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 116, 217, 0.09);
    transition: background 0.14s, box-shadow 0.12s;
    border-left: 1.8px solid #b4cfff !important;
}

    .btn-filtro-dropdown:hover, .btn-filtro-dropdown:focus {
        background: linear-gradient(90deg, #1597e9 0%, #0074D9 100%);
        color: #fff !important;
        box-shadow: 0 6px 16px rgba(0,116,217,0.14);
    }

/* -----------------filtros------------------- */
.filtro-dropdown {
    position: absolute;
    right: 0;
    top: 105%;
    min-width: 170px;
    background: rgba(255,255,255,0.98);
    border: 1.7px solid #0074D9;
    border-radius: 1.1rem;
    box-shadow: 0 10px 28px #0074D92a;
    padding: 0.9rem 1.3rem 0.7rem 1.1rem;
    z-index: 1001;
    margin-top: .2rem;
    animation: filtro-fadein 0.28s;
}

/* Checkbox moderno */
.checkbox-label {
    font-size: 1.05rem;
    font-weight: 500;
    color: #093e6c;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.filtro-dropdown input[type="checkbox"] {
    accent-color: #0074D9;
    width: 1.1em;
    height: 1.1em;
    border-radius: 0.2em;
    border: 1.5px solid #1597e9;
}

@keyframes filtro-fadein {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive (ajusta para móvil si lo necesitas) */
@media (max-width: 600px) {
    .filtro-dropdown {
        right: 0;
        left: unset;
        min-width: 120px;
    }

    .checkbox-label {
        font-size: .97rem;
    }
}


/* ----------------------------Franjas incompleta y completas ------------------------------*/

.tarjeta-incompleta {
    position: relative; /* necesario para el after */
}

    .tarjeta-incompleta::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 10px; /* ancho de la franja, ajústalo */
        height: 100%;
        background: linear-gradient(180deg, #e53935 90%, #f9a29b 100%);
        border-top-right-radius: 1.1rem;
        border-bottom-right-radius: 1.1rem;
        z-index: 10;
        /* Sombra opcional para un efecto sutil */
        box-shadow: 0 0 6px 1px #e5393555;
        opacity: 0.94;
    }

.tarjeta-completa {
    position: relative;
}

    .tarjeta-completa::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 10px; /* ancho de la franja */
        height: 100%;
        background: linear-gradient(180deg, #28a745 88%, #8be698 100%);
        border-top-right-radius: 1.1rem;
        border-bottom-right-radius: 1.1rem;
        z-index: 10;
        box-shadow: 0 0 6px 1px #28a74533;
        opacity: 0.94;
    }


.btn-pdf-card {
    position: absolute;
    top: 0.6rem;
    left: 0.7rem;
    z-index: 20;
    background: #e03535;
    color: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 3px 12px rgba(220,53,69,0.2);
    transition: background 0.18s, box-shadow 0.15s;
}

    .btn-pdf-card:hover {
        background: #b02a37;
        box-shadow: 0 6px 20px rgba(220,53,69,0.3);
    }

/*    -----------------opciones de inscripcion*/

.overlay-pdf {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btn-cerrar-overlay {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
}

.card-opcion {
    background: #fff;
    border-radius: 1.2rem;
    padding: 1.5rem 2rem;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 220px;
    transition: transform 0.2s ease;
}

    .card-opcion:hover {
        transform: scale(1.05);
    }

    .card-opcion i {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
        display: block;
    }

    .card-opcion span {
        font-weight: 600;
        font-size: 1rem;
        color: #333;
    }

    .card-opcion.whatsapp {
        box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
        color: #25D366;
    }

    .card-opcion.correo {
        box-shadow: 0 0 15px rgba(220, 53, 69, 0.4);
        color: #DC3545;
    }

    .card-opcion.descargar {
        box-shadow: 0 0 15px rgba(0, 116, 217, 0.4);
        color: #0074D9;
    }



/* ----------------------------------------- PDF */

.pdf-container-modern {
    width: 816px;
    min-height: 1056px;
    background: #ffffff;
    color: #1a1a1a;
    font-family: 'Segoe UI', system-ui, sans-serif;
    padding: 16px;
    margin: 0 auto;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.1);
    font-size: 0.78rem;
    line-height: 1.4;
    border-radius: 8px;
    text-wrap: pretty;
}

.fila-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.2rem;
    margin-bottom: 10px;
}

    .fila-horizontal span {
        min-width: 200px;
        flex: 1;
    }

/* Encabezado */
.pdf-header-modern {
    background: linear-gradient(90deg, #0074D9 0%, #0056b3 100%);
    color: white;
    text-align: center;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.logo-modern {
    height: 55px;
    margin-bottom: 3px;
}

.titulo-modern {
    font-size: 1.6rem;
    margin: 0;
    font-weight: 700;
}

.subtitulo-modern {
    font-size: 0.72rem;
    color: #f1f1f1;
    margin-top: 1px;
}

/* Secciones */
.seccion-modern {
    background: #f9fafe;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e3e9f7;
    margin-bottom: 0.5rem;
}

.titulo-seccion {
    text-align: center;
    font-size: 1.00rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 4px;
}

/* Layout en tres columnas */
.datos-dobles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem 0.8rem;
}

.seccion-modern p {
    margin: 2px 0;
    text-align: left;
}

    .seccion-modern p strong {
        font-weight: 600;
        color: #000;
    }

/* Pie de página */
.footer-franja {
    height: 30px;
    background: #0056b3;
    border-radius: 6px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-text {
    color: white;
    font-size: 0.75rem;
    margin: 0;
}

/* Animaciones */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content {
    z-index: 4010 !important;
    position: relative;
    animation: fadeSlideIn 0.4s ease-out;
}

/* Fondo del modal PDF */
.fondo-modal-pdf {
    z-index: 4000 !important;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    scrollbar-gutter: stable;
}

/* Impresión */
@media print {
    body {
        -webkit-print-color-adjust: exact;
        background: white;
    }

    .pdf-container-modern {
        box-shadow: none;
        margin: 0;
        width: 100%;
        padding: 0;
        border-radius: 0;
    }

    .modal-header,
    .modal-footer,
    .btn,
    .modal-backdrop {
        display: none !important;
    }
}

/* Leyenda final sin fondo, compacta */
.leyenda-confirmacion {
    font-size: 0.76rem;
    text-align: justify;
    margin-top: 0.6rem;
    padding: 4px 6px;
    line-height: 1.4;
    color: #111;
}

    .leyenda-confirmacion p {
        margin: 0;
        font-weight: 500;
        letter-spacing: 0.3px;
    }


/*para MODAL CORREO*/

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4015; /* IMPORTANTE: asegurarse que sea mayor que cualquier otro componente */
    backdrop-filter: blur(2px); /* opcional: difumina el fondo */
}

/* Forzar el modal de carga y su fondo encima de cualquier menú */
#modalCarga,
#modalCarga .modal-dialog,
#modalCarga .modal-content {
    z-index: 4050 !important;
}


.modal-contenido {
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    border-radius: 1.5rem;
    width: 92%;
    max-width: 520px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    border-top: 6px solid #0074D9;
    border-bottom: 3px solid #FFD700;
}

.modal-title {
    color: #0074D9;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e3eafc;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.modal-body label {
    font-weight: 600;
    color: #343a40;
}

.modal-body input,
.modal-body textarea {
    border-radius: 0.7rem;
    border: 1.3px solid #ced4da;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    background-color: #f8f9fa;
    transition: border-color 0.2s;
}

    .modal-body input:focus,
    .modal-body textarea:focus {
        border-color: #0074D9;
        outline: none;
        box-shadow: 0 0 0 0.15rem rgba(0, 116, 217, 0.25);
    }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
}

.btn-dorado {
    background-color: #FFD700;
    color: #343a40;
    border: none;
    padding: 0.6rem 1.3rem;
    border-radius: 1rem;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out;
}

    .btn-dorado:hover {
        background-color: #e6c200;
        color: #1d1d1d;
    }

.close-btn {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: #dc3545;
    transition: color 0.2s ease-in-out;
}

    .close-btn:hover {
        color: #a71d2a;
    }


@keyframes slideFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-contenido {
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    border-radius: 1.5rem;
    width: 92%;
    max-width: 520px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    border-top: 6px solid #0074D9;
    border-bottom: 3px solid #FFD700;
    animation: slideFadeIn 0.4s ease-out;
}


/*----------------- SWALS----------- Siempre por encima de menús, drawers y navs */
.swal2-container {
    z-index: 4100 !important;
}
