﻿/*----------------------- 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;
    }
}

/* ===== Dashboard Cards General (desktop/tablet) ===== */
.dashboard-cards-container {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2.2rem;
    scrollbar-width: thin;
    scrollbar-color: #6fa4fb #eee;
}

    .dashboard-cards-container::-webkit-scrollbar {
        height: 6px;
        background: #eee;
    }

    .dashboard-cards-container::-webkit-scrollbar-thumb {
        background: #6fa4fb;
        border-radius: 6px;
    }

.dashboard-card {
    min-width: 230px;
    flex: 1 1 210px;
    max-width: 330px;
    border-radius: 1.1rem;
    color: #fff;
    padding: 1.3rem 1.5rem 1.1rem 1.5rem;
    box-shadow: 0 2px 14px #0002;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.14s;
}

    .dashboard-card:hover {
        transform: translateY(-4px) scale(1.03);
    }

.card-header {
    font-weight: 600;
    font-size: 1.08rem;
    opacity: 0.93;
    letter-spacing: 0.04em;
}

.card-main {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-amount {
    font-size: 2.1rem;
    font-weight: bold;
    letter-spacing: -1px;
}

.card-icon {
    font-size: 2.5rem;
    opacity: 0.14;
    margin-left: auto;
}

.card-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.99rem;
    opacity: 0.93;
    gap: 2rem;
}

    .card-details b {
        font-size: 1.08em;
        font-weight: 600;
        display: block;
        margin-top: 0.05rem;
    }

.card-blue {
    background: linear-gradient(90deg, #3a8dde 75%, #45c6fc 100%);
}

.card-purple {
    background: linear-gradient(90deg, #9c42e8 75%, #7e6df9 100%);
}

.card-darkblue {
    background: linear-gradient(90deg, #2749a8 60%, #7036e8 100%);
}

.card-green {
    background: linear-gradient(90deg, #2abfa5 60%, #33cdd2 100%);
}

.dashboard-card::after {
    content: "";
    position: absolute;
    top: -30px;
    right: -40px;
    width: 100px;
    height: 100px;
    background: #fff3;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}



/* ===== Responsive Carousel para móvil ===== */
@media (max-width: 750px) {
    .dashboard-cards-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1rem;
        width: 100%;
        box-sizing: border-box;
        padding-left: 1rem;
        padding-right: 1rem;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 1rem;
        scroll-padding-right: 1rem;
        -webkit-overflow-scrolling: touch;
        margin-top: 2.2rem;
        justify-content: flex-start;
    }

    .dashboard-card {
        min-width: 179px;
        max-width: 189px;
        flex: 0 0 160px;
        scroll-snap-align: start;
        padding: 1rem 0.7rem 0.8rem 0.7rem;
        font-size: 0.92rem;
        margin-bottom: 0.4rem;
        box-shadow: 0 2px 8px #0001;
    }
}




/*----------------------- 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: #273c75;
        color: #ffffff;
    }

.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;
        z-index: 1000;
    }
}

.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.10s, 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: #273c75;
        color: #fff !important;
        border-radius: 3.50rem;
        flex: 0.7 0 auto;
    }

        .bottom-nav-link.active i,
        .bottom-nav-link:active i,
        .bottom-nav-link:hover i {
            color: #FFD700 !important;
            font-size: 1.6rem;
        }

    .bottom-nav-link span {
        font-size: 0.70rem;
        margin-top: 0.06rem;
        letter-spacing: 0.01em;
        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: 576px) {
    .modern-card {
        padding: 1rem;
        margin: 1.1rem auto 1.5rem auto;
        width: 95vw;
        max-width: 95vw;
        border-radius: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .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;
}

/* Elevar el modal de carreras por encima del menú hamburguesa */
#modalCarreras,
#modalCarreras .modal-dialog,
#modalCarreras .modal-content {
    z-index: 4050 !important; /* valor alto, mayor que 3002 */
}

.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;
        z-index: 3050 !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;
}

#modalCargaWhatsapp,
#modalCargaWhatsapp .modal-dialog,
#modalCargaWhatsapp .modal-content {
    z-index: 4051 !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;
}


/*----------------------- Contenido Exclusivo para Prospectos ----------------------------*/
:root {
    --fondo-claro: #eef4f8;
    --gris-oscuro: #2f3542;
    --azul-info: #17A2B8;
    --azul-vital: #0074D9;
    --verde-salud: #28A745;
    --naranja-ia: #FF851B;
    --rojo-aviso: #DC3545;
    --gris-suave: #f8f9fa;
    --amarillo-suave: #FFC107;
    --borde-suave: #dee2e6;
}

/* ============ HEADER GLASS MODERNO ============ */
.prospectos-header-glass {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.8rem;
    padding: 1.5rem 2.2rem 1.2rem 2.2rem;
    border-radius: 1.3rem;
    background: rgba(255,255,255,0.65);
    box-shadow: 0 8px 28px #0074D911, 0 2px 10px #ffd7000d;
    backdrop-filter: blur(16px) saturate(135%);
    position: relative;
    margin-bottom: 1.5rem;
    border-top: 4px solid #FFD70022;
    border-bottom: 3px solid #0074D930;
    animation: fadeInHeaderPros 0.7s cubic-bezier(.24,.72,.61,.89);
}

@keyframes fadeInHeaderPros {
    from {
        opacity: 0;
        transform: translateY(-18px) scale(.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.prospectos-header-left {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.prospectos-header-icon {
    width: 60px;
    height: 60px;
    border-radius: 1.1rem;
    background: linear-gradient(120deg, #0074D9 50%, #0074D9 120%);
    box-shadow: 0 3px 16px #0074D932, 0 0px 7px #ffd70022;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.05rem;
    color: #fff;
    margin-right: 0.3rem;
}

.prospectos-header-title {
    font-size: 2.13rem;
    font-weight: 900;
    color: #005bb5;
    margin: 0 0 0.09rem 0;
    letter-spacing: 0.02em;
}

.prospectos-header-title-sub {
    font-size: 1rem;
    font-weight: 700;
    color: #FFD700;
    margin-left: .5rem;
    letter-spacing: .04em;
}

.prospectos-header-subdesc {
    color: #5b6378;
    font-size: 1rem;
    margin-top: .09rem;
    opacity: 0.92;
}

.prospectos-header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.prospectos-header-filtros-group {
    display: flex;
    align-items: center;
    gap: .55rem;
    background: rgba(255,255,255,0.82);
    border-radius: 1.1rem;
    box-shadow: 0 1px 10px #0074D91a;
    padding: 0.32rem 0.42rem;
}

.prospectos-header-buscador {
    border: none;
    background: transparent;
    font-size: 1.01rem;
    min-width: 160px;
    padding: 0.52rem 1.1rem;
    border-radius: 1rem 0 0 1rem;
    color: #2f3542;
    transition: background .19s, box-shadow .16s;
    outline: none;
}

    .prospectos-header-buscador:focus {
        background: #f5faff;
        box-shadow: 0 1px 10px #0074D92a;
    }

.prospectos-header-select {
    border: none;
    background: transparent;
    font-size: 1rem;
    padding: 0.52rem 1.1rem 0.52rem 0.8rem;
    border-radius: 0 1rem 1rem 0;
    color: #2f3542;
    appearance: none;
    outline: none;
}

    .prospectos-header-select:focus {
        background: #f5faff;
    }

.prospectos-header-limpiar {
    background: none;
    border: none;
    color: #DC3545;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.13s, color 0.19s;
    padding: .23rem .31rem;
}

    .prospectos-header-limpiar:hover {
        background: #ffe0e3;
        color: #a71d2a;
    }

.prospectos-header-buttons {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.prospectos-header-btn-nuevo,
.prospectos-header-btn-calendar {
    background: linear-gradient(90deg, #0074D9 70%, #FFD700 120%);
    color: #fff;
    border: none;
    border-radius: 1.2rem;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.68rem 1.5rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    box-shadow: 0 3px 14px #0074D922, 0 2px 9px #FFD70018;
    transition: background 0.21s, box-shadow 0.13s, transform 0.13s;
}

.prospectos-header-btn-nuevo {
    background: linear-gradient(90deg, #0074D9 70%, #45c6fc 100%);
}

.prospectos-header-btn-calendar {
    background: linear-gradient(90deg, #FFD700 60%, #ecb91a 100%);
    color: #473b0c;
}

    .prospectos-header-btn-nuevo:hover,
    .prospectos-header-btn-calendar:hover {
        transform: translateY(-2px) scale(1.035);
        box-shadow: 0 7px 24px #0074D940;
    }

    .prospectos-header-btn-calendar:hover {
        background: linear-gradient(90deg, #ecb91a 40%, #FFD700 100%);
        color: #332702;
    }
/* Responsive header */
@media (max-width: 1000px) {
    .prospectos-header-glass {
        padding: 1.1rem 0.8rem 1rem 0.8rem;
    }

    .prospectos-header-title {
        font-size: 1.45rem;
    }
}

@media (max-width: 750px) {
    .prospectos-header-glass {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 0.8rem 0.6rem 0.5rem 0.6rem;
        border-radius: 1.05rem;
    }

    .prospectos-header-actions {
        flex-direction: column;
        gap: 0.55rem;
        align-items: stretch;
        margin-top: .6rem;
    }

    .prospectos-header-filtros-group {
        flex-wrap: wrap;
        padding: .16rem .16rem;
        gap: 0.15rem;
    }

    .prospectos-header-btn-nuevo,
    .prospectos-header-btn-calendar {
        font-size: 1.11rem;
        width: 100%;
        padding: 0.7rem 0;
        justify-content: center;
        margin-bottom: 0.32rem;
    }

    .prospectos-header-title-sub,
    .prospectos-header-subdesc {
        display: none !important;
    }

    .prospectos-header-icon {
        width: 46px;
        height: 46px;
        font-size: 1.25rem;
        margin-right: 0.12rem;
    }

    .prospectos-header-title {
        font-size: 1.18rem;
    }
}

@media (max-width: 500px) {
    .prospectos-header-btn-nuevo,
    .prospectos-header-btn-calendar {
        font-size: 0.99rem;
    }
}
/* ============ FAB PARA MÓVIL ============ */
@media (max-width: 768px) {
    .prospectos-btn-nuevo {
        position: fixed;
        bottom: 110px;
        right: 1.25rem;
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
        font-size: 1.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        animation: pulse 1.5s infinite ease-in-out;
        z-index: 1005;
    }

        .prospectos-btn-nuevo span {
            display: none;
        }

    .prospectos-btn-calendar {
        position: fixed;
        bottom: 174px;
        right: 1.25rem;
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
        font-size: 1.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        animation: pulse 1.5s infinite ease-in-out;
        z-index: 1005;
    }

        .prospectos-btn-calendar span {
            display: none;
        }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 116, 217, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(0, 116, 217, 0);
    }
}

/* ======= KANBAN Y RESTO DE TU CSS ACTUAL (NO MODIFICADO) ======= */
.prospectos-kanban-bg {
    padding: 2rem;
    background: linear-gradient(135deg, var(--fondo-claro), #ffffff);
    min-height: 100vh;
    padding-bottom: 9rem;
}

.prospectos-kanban {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    margin-top: 1rem;
}

.prospectos-columna {
    background-color: white;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    min-height: 300px;
    transition: background 0.3s ease;
    border-top: 4px solid var(--azul-info);
    position: relative;
}

.prospectos-columna-header {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--azul-vital);
    margin-bottom: 0.75rem;
}

.prospectos-columna-count {
    background-color: var(--naranja-ia);
    color: white;
    border-radius: 1rem;
    padding: 0.1rem 0.6rem;
    font-size: 0.85rem;
}

.prospectos-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.prospecto-moviendo {
    transform: translateX(100px);
    opacity: 0;
}

.prospecto-slide-out {
    transform: translateX(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.prospectos-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: grab;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    border-left: 5px solid var(--azul-vital);
    position: relative;
}

    .prospectos-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    }

.prospectos-card-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--gris-oscuro);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.prospectos-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.prospectos-card-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-kanban-accion {
    background-color: transparent;
    border: none;
    color: var(--azul-vital);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .btn-kanban-accion:hover {
        color: var(--naranja-ia);
    }

.prospectos-alert {
    text-align: center;
    color: var(--gris-oscuro);
    font-style: italic;
    font-size: 0.95rem;
    opacity: 0.7;
}

.prospecto-formulario-bg {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    position: fixed;
    inset: 0;
    z-index: 3030;
    display: flex;
    justify-content: center;
    align-items: start;
    padding-top: 3rem;
    padding-bottom: 6rem;
    overflow-y: auto;
}

.btn-cerrar-form {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background-color: transparent;
    border: none;
    font-size: 1.25rem;
    color: #999;
    transition: color 0.3s ease;
}

    .btn-cerrar-form:hover {
        color: #000;
    }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: var(--gris-suave);
    border-radius: 1rem;
    padding: 0.25rem 0.6rem;
    font-weight: 500;
}

.chip-azul {
    background-color: var(--azul-info);
    color: white;
}

.chip-localidad {
    background-color: var(--verde-salud);
    color: white;
}

.chip-cel {
    background-color: var(--naranja-ia);
    color: white;
}

.chip-facebook {
    background-color: #3b5998;
    color: white;
}

.badge-rojo, .badge-verde, .badge-amarillo, .badge-azul {
    border-radius: 1rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-rojo {
    background-color: var(--rojo-aviso);
    color: white;
}

.badge-verde {
    background-color: var(--verde-salud);
    color: white;
}

.badge-amarillo {
    background-color: var(--amarillo-suave);
    color: #333;
}

.badge-azul {
    background-color: var(--azul-info);
    color: white;
}

/* Modern select style */
.prospectos-select {
    border-radius: 0.7rem !important;
    border: 1.2px solid #d1d7e6 !important;
    font-size: 1rem !important;
    padding: 0.75rem 1rem !important;
    background: #f8f9fa !important;
    transition: border-color 0.17s, background 0.17s;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='gray' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.prospectos-paginacion {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-paginacion {
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-paginacion-atras {
    background-color: var(--azul-info);
    color: white;
}

.btn-paginacion-mas {
    background-color: var(--naranja-ia);
    color: white;
}

.btn-paginacion:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

#modal-carga-kanban {
    z-index: 3100 !important;
}


/*-------------------------modal pros -------------------------*/
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 1rem;
}

.prospecto-actividad-form,
.prospecto-detalle {
    background-color: white;
    border-radius: 1.5rem;
    max-width: 500px;
    width: 100%;
    padding: 2rem;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 116, 217, 0.3);
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prospecto-detalle {
    max-height: 90vh;
    overflow-y: auto;
}

.btn-closepros {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: #000; /* ← Color negro */
    cursor: pointer;
}

    .btn-closepros:hover {
        color: #dc3545; /* Rojo al pasar el mouse (opcional, se ve elegante) */
    }

.modern-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0074D9;
}

.list-group-item {
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
}

@media (max-width: 480px) {
    .prospecto-actividad-form,
    .prospecto-detalle {
        padding: 1rem;
        border-radius: 1rem;
    }

    .modern-card-title {
        font-size: 1rem;
    }

    .btn {
        font-size: 0.9rem;
    }
}

/*---------------------- CALENDARIO ----------------------------------*/

.prospectos-calendar {
    font-family: 'Inter', sans-serif;
    color: #212529;
    margin-top: 1rem;
}

    /* === Panel lateral === */
    .prospectos-calendar .detalles-panel {
        background-color: #ffffff;
        border-radius: 16px;
        box-shadow: 0 0 18px rgba(0, 0, 0, 0.06);
        padding: 1.5rem;
        transition: all 0.3s ease;
    }

/* Colores por tipo */
.borde-visita {
    border-left: 5px solid #0074D9 !important;
}

.borde-llamada {
    border-left: 5px solid #28A745 !important;
}

.borde-correo {
    border-left: 5px solid #17A2B8 !important;
}

.borde-recordatorio {
    border-left: 5px solid #FFC107 !important;
}

/* Eventos completados */
.prospectos-calendar .evento-completado {
    background-color: #e0e0e0 !important;
    text-decoration: line-through;
    color: #888 !important;
    opacity: 0.6;
}

/* Botones */
.prospectos-calendar .btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.9rem;
    margin-top: 0.5rem;
    margin-right: 0.4rem;
    border-radius: 1.5rem;
}

/* Estilo del scheduler Radzen */
.prospectos-calendar .rz-scheduler {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.08);
    padding: 0.5rem;
}

.prospectos-calendar .rz-scheduler-header,
.prospectos-calendar .rz-scheduler-time-header {
    background-color: #0074D9;
    color: white;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
}

.prospectos-calendar .rz-scheduler-time-cell {
    background-color: #f8f9fa;
    color: #444;
}

.prospectos-calendar .rz-scheduler-cell {
    border: 1px solid #e0e0e0;
    transition: background 0.2s ease-in-out;
}

    .prospectos-calendar .rz-scheduler-cell:hover {
        background-color: #eef6ff;
    }

.prospectos-calendar .rz-scheduler-appointment {
    background-color: #0074D9;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.rz-scheduler-appointment.llamada {
    background-color: #28A745;
}

.rz-scheduler-appointment.visita {
    background-color: #17A2B8;
}

.rz-scheduler-appointment.correo {
    background-color: #FF851B;
}

.rz-scheduler-appointment.recordatorio {
    background-color: #FFC107;
    color: #000;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .prospectos-calendar .row {
        flex-direction: column;
    }

    .prospectos-calendar .col-md-8,
    .prospectos-calendar .col-md-4 {
        width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .prospectos-calendar {
        padding-bottom: 190px;
    }
}


/* Ajuste para que las celdas tengan bordes suaves y fondo claro */
.rz-scheduler-cell {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
}

/* Mejor contraste en los encabezados */
.rz-scheduler-header,
.rz-scheduler-time-header {
    background-color: #0074D9;
    color: white;
    font-weight: bold;
}

/* Sombras modernas para eventos */
.rz-scheduler-appointment {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}

    .rz-scheduler-appointment:hover {
        transform: scale(1.02);
    }

/* Panel de detalles */
.prospectos-calendar .detalles-panel {
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Tipografía general */
.prospectos-calendar {
    font-family: 'Inter', sans-serif;
}

.rz-scheduler-appointment {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.prospectos-calendar .detalles-panel {
    overflow-wrap: break-word;
    word-break: break-word;
}


/* --- MODAL EXCLUSIVO PARA CALENDARIO DE PROSPECTOS --- */
#prospectos-calendar-modal-citas-overlay.prospectos-calendar-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 24, 56, 0.60);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12050;
    backdrop-filter: blur(3.5px);
    animation: fadeInProspectosCal 0.3s;
}

@keyframes fadeInProspectosCal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#prospectos-calendar-modal-citas.prospectos-calendar-modal-contenido {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2.3rem 2rem 2.1rem 2rem;
    width: 94vw;
    max-width: 400px;
    position: relative;
    box-shadow: 0 12px 48px #0074D94d, 0 2px 12px #FFD70024;
    animation: slideInModalCal 0.33s;
}

@keyframes slideInModalCal {
    from {
        transform: translateY(32px) scale(.98);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.prospectos-calendar-modal-cerrar {
    position: absolute;
    top: 1.1rem;
    right: 1.35rem;
    font-size: 2rem;
    background: none;
    border: none;
    color: #0074D9;
    cursor: pointer;
    font-weight: 800;
    z-index: 10;
    transition: color .16s, transform .14s;
}

    .prospectos-calendar-modal-cerrar:hover {
        color: #FFD700;
        transform: scale(1.18);
    }

.prospectos-calendar-modal-titulo {
    font-size: 1.25rem;
    color: #0074D9;
    margin-bottom: 1.2rem;
    font-weight: 800;
}

.prospectos-calendar-lista-citas {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.prospectos-calendar-item-cita {
    background: #f8faff;
    border-radius: 0.85rem;
    margin-bottom: 0.8rem;
    padding: 1.2em 1em 0.9em 1.1em;
    border-left: 7px solid #0074D9;
    box-shadow: 0 3px 10px #0074D911;
    font-size: 1rem;
    animation: fadeInProspectosCal 0.18s;
}

    .prospectos-calendar-item-cita.borde-llamada {
        border-color: #28A745;
    }

    .prospectos-calendar-item-cita.borde-visita {
        border-color: #17A2B8;
    }

    .prospectos-calendar-item-cita.borde-correo {
        border-color: #FF851B;
    }

    .prospectos-calendar-item-cita.borde-recordatorio {
        border-color: #FFC107;
    }

.prospectos-calendar-item-titulo {
    font-weight: 700;
    color: #0074D9;
    font-size: 1.09rem;
    display: block;
}

.prospectos-calendar-item-hora {
    color: #636e72;
    font-size: 0.97rem;
    font-weight: 600;
    margin-left: 0.2rem;
}

.prospectos-calendar-item-desc {
    font-size: 0.92rem;
    color: #636e72;
    margin-top: 0.3em;
}

.prospectos-calendar-modal-vacio {
    text-align: center;
    color: #bbb;
    font-style: italic;
    font-size: 1.1rem;
    margin-top: 1.7rem;
}
/* Modo oscuro */
body.modo-oscuro #prospectos-calendar-modal-citas.prospectos-calendar-modal-contenido {
    background: #1e2537;
    color: #e9eaf3;
    box-shadow: 0 8px 32px #0074D92a;
}

body.modo-oscuro .prospectos-calendar-item-cita {
    background: #23283a;
    color: #e9eaf3;
}

body.modo-oscuro .prospectos-calendar-modal-cerrar {
    color: #FFD700;
}

/*----------------- agendar exclusivo: backdrop y modal ----------------------*/

#modal-agendar-actividad.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(40,56,82,0.18);
    z-index: 3030;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

#modal-agendar-actividad .modern-card-title {
    position: relative;
    padding-right: 48px; /* Espacio para el botón de cerrar */
    min-height: 46px;
    font-size: 1.12rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

/* Formulario principal */
#modal-agendar-actividad .prospecto-actividad-form {
    max-width: 440px;
    min-width: 320px;
    margin: 70px auto 0 auto;
    position: relative;
    z-index: 1300;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 32px 0 rgba(0,0,0,0.10);
    padding-bottom: 18px;
}


/* Elevar el modal de modalProspectos por encima del menú hamburguesa */
#modalProspectos,
#modalProspectos .modal-dialog,
#modalProspectos .modal-content {
    z-index: 4055 !important; /* valor alto, mayor que 3002 */
}

/* ---------- Header con botón de cerrar siempre visible ---------- */
#modal-agendar-actividad .modal-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-right: 6px;
    min-height: 46px;
    margin-bottom: 1.1rem;
}

#modal-agendar-actividad .modal-title-text {
    flex: 1 1 auto;
    font-size: 1.12rem;
    font-weight: 600;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 88vw;
}

/* Botón cerrar bien visible, accesible, y responsivo */
#modal-agendar-actividad .btn-closepros {
    position: absolute;
    top: 10px;
    right: 10px;
    min-width: 36px;
    min-height: 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #e1e8ef;
    font-size: 1.4rem;
    color: #0074d9;
    cursor: pointer;
    z-index: 1400;
    box-shadow: 0 1px 8px 0 #0074d930;
    transition: color 0.2s, border 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #modal-agendar-actividad .btn-closepros:hover,
    #modal-agendar-actividad .btn-closepros:focus {
        color: #ff851b;
        background: #f8f9fa;
        border: 2px solid #ff851b;
        outline: none;
    }

/*------------------- Sidebar lateral exclusivo de computadora ------------------*/
#modal-agendar-actividad .sidebar-modal-agendar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 340px;
    height: calc(100% - 90px);
    background: #fff;
    border-top-right-radius: 32px;
    border-bottom-right-radius: 32px;
    box-shadow: 0 6px 32px 0 rgba(0,0,0,0.12);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem 1rem 1.5rem;
    animation: slideInLeft 0.3s;
}

#modal-agendar-actividad .sidebar-header {
    font-size: 1.12rem;
    font-weight: bold;
}

#modal-agendar-actividad .sidebar-content {
    flex: 1 1 auto;
    overflow-y: auto;
}

/* Scroll solo en computadora para la sidebar (ajusta max-height si quieres) */
#modal-agendar-actividad .tabla-actividades-scroll {
    max-height: 340px;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 12px 0 #0074d920;
}

/* Responsive: sidebar desaparece en móvil/tablet */
@media (max-width: 991px) {
    #modal-agendar-actividad .sidebar-modal-agendar {
        display: none !important;
    }

    #modal-agendar-actividad .prospecto-actividad-form {
        margin: 32px auto 0 auto;
        min-width: unset;
        max-width: 99vw;
    }

    #modal-agendar-actividad .tabla-actividades-scroll {
        max-height: 200px;
    }
}

/* Tabla visual solo aquí */
#modal-agendar-actividad table {
    font-size: 0.98rem;
    background: transparent;
}

/* Scrollbar personalizado SOLO aquí */
#modal-agendar-actividad .tabla-actividades-scroll::-webkit-scrollbar {
    height: 8px;
    width: 8px;
    background: #f3f5fa;
    border-radius: 8px;
}

#modal-agendar-actividad .tabla-actividades-scroll::-webkit-scrollbar-thumb {
    background: #0074D930;
    border-radius: 8px;
}

/*------------------------------header calendario-------------------------------------------*/


.calendario-kanban-min {
    padding: 1rem;
    background: linear-gradient(135deg, var(--fondo-claro), #ffffff);
    min-height: 2vh;
    padding-bottom: 0rem;
}


.calendario-kanban {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    margin-top: 1rem;
}


.calendario-header-btn-whats {
    background: linear-gradient(90deg, #0074D9 70%, #FFD700 120%);
    color: #fff;
    border: none;
    border-radius: 1.2rem;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.68rem 1.5rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    box-shadow: 0 3px 14px #0074D922, 0 2px 9px #FFD70018;
    transition: background 0.21s, box-shadow 0.13s, transform 0.13s;
}

.calendario-header-btn-whats {
    background: linear-gradient(90deg, #44b002 70%, #3a9006 100%);
}


    .calendario-header-btn-whats:hover {
        transform: translateY(-2px) scale(1.035);
        box-shadow: 0 7px 24px #0074D940;
    }

.calendario-header-btn-whats {
    font-size: 1.11rem;
    width: 100%;
    padding: 0.7rem 0;
    justify-content: center;
    margin-bottom: 0.32rem;
}


@media (max-width: 500px) {
    .calendario-header-btn-whats {
        font-size: 0.99rem;
    }
