/* ==========================================
   MAIN-STYLES.CSS - CORREGIDO TÉCNICAMENTE
   ========================================== */

/* ÚNICO ROOT - Todas las variables centralizadas */
:root {
    /* Colores principales - sin códigos hexadecimales dispersos */
    --primary: #6282a8;
    --secondary: #1e2447;
    --terciary: #bfa45a;
    --accent: #e74c3c;
    --background: #ffffff;
    --text-dark: #2d3436;
    --text-light: #585856;
    
    /* Tipografías corregidas - TODAS con sans-serif fallback */
    --tipography-1: 'Roboto', sans-serif;
    --tipography-titles: 'CustomTitle', 'Montserrat', sans-serif;
    --tipography-custom-light: 'CustomLight', 'Open Sans', sans-serif;
    --tipography-custom-footer: 'CustomFooter', 'Open Sans', sans-serif;
    
    /* Footer */
    --footer-bg: var(--background);
    --footer-text: var(--text-dark);
    
    /* Espaciados */
   
    --spacing-sm: 8px;
    
    /* Bordes */
    --border-radius-sm: 10px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Para navegadores webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px; /* Ancho del scrollbar vertical */
    height: 8px; /* Alto del scrollbar horizontal */
}

::-webkit-scrollbar-track {
    background: var(--gray-light); /* Color del fondo del track */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary) !important; /* Color principal para el thumb */
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary); /* Color secundario al hacer hover */
}

::-webkit-scrollbar-corner {
    background: var(--gray-light);
}

/* Para Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--secondary) var(--gray-light) !important;
}

.active{
    border:2px solid var(--terciary) !important;
}

.active a{
    color:var(--terciary) !important;
}

/* Enlaces usando variables en lugar de colores hardcoded */
.links a {
    color: var(--secondary) !important;
    font-size: 0.9rem;
}

.active {
    font-weight: bold;
}

/* Fuente principal con fallback corregido */
body {
    font-family: var(--tipography-1) !important;
    background-color: var(--background);
    background-repeat: no-repeat;
    background-size: cover;
}

.btn-logout,
.btn-logout:hover,
.btn-logout:active {
    background-color: var(--secondary) !important;
    font-family: var(--tipography-1) !important;
}

.index-page .container {
    padding: 0;
}

.fondo {
    border:1px solid var(--terciary) !important;
    border-radius:0px 0px 15px 15px !important;
    background-color: var(--background);
    -webkit-border-radius:0px 0px 15px 15px !important;
    -moz-border-radius:0px 0px 15px 15px !important;
    -ms-border-radius:0px 0px 15px 15px !important;
    -o-border-radius:0px 0px 15px 15px !important;
}
.fondo-home{
    background-color: var(--background);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    min-height: 55vh !important;
    border:1px solid rgb(192, 192, 192) !important;
    -webkit-border-radius: var(--border-radius-lg);
    -moz-border-radius: var(--border-radius-lg);
    -ms-border-radius: var(--border-radius-lg);
    -o-border-radius: var(--border-radius-lg);
}

.box-shadow {
    box-shadow: var(--shadow-lg);
}
div.row:nth-child(10) > div:nth-child(1) > span:nth-child(1){
    display: none !important;
}
#despedida div.row:nth-child(10) > div:nth-child(1){
    display: none !important;
}

/* Títulos usando variables de color */
.title-session {
    line-height: 35px;
    background-color: var(--primary);
    color: var(--background);
    font-family: var(--tipography-titles) !important;
    font-weight: 600;
    font-size: 22px;
    border-radius: var(--border-radius-sm);
    letter-spacing: 1px;
    padding: 10px 15px;
}

.nombre-session {
    line-height: 35px;
    color: var(--terciary);
    font-family: var(--tipography-titles) !important;
    font-weight: 600;
    font-size: 22px;
    border-radius: var(--border-radius-sm);
    letter-spacing: 1px;
}

.thumb-container {
    border-right: 4px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-container img {
    width: 300px;
    cursor: pointer;
    transition: transform var(--transition-normal);
}

.thumb-container img:hover {
    transform: scale(1.05);
}

.info-container {
    display: flex;
    align-items: center;
    justify-content: left;
}

/* Tipografías corregidas con fallback */
.doctor {
    font-family: var(--tipography-1) !important;
    font-style: italic;
    color: var(--text-light);
    font-size: 16px;
}

.doctor-name {
    font-family: var(--tipography-1) !important;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 500;
}

.video-title {
    font-family: var(--tipography-titles) !important;
    color: var(--primary);
    font-size: 22px;
    font-weight: 600;
}

.modal-title {
    font-family: var(--tipography-titles) !important;
    color: var(--primary);
    font-weight: 600;
}

.moderan {
    font-family: var(--tipography-1) !important;
    font-style: italic;
}


.organized img,
.sponsors img {
    width: 240px;
}

.textos-patrocinadores {
    font-family: var(--tipography-1) !important;
    font-size: 16px;
    color: var(--secondary);
    font-weight: bold;
}



.head540 {
    display: none !important;
}

/* Botones corregidos */
.btn-pdf,
.btn-ver {
    border-radius: var(--border-radius-xl) !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    transition: all var(--transition-normal) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.btn-pdf,
.btn-pdf:hover,
.btn-pdf:focus,
.btn-pdf:active,
.btn-pdf:checked {
    background-color: var(--accent) !important;
    border: none !important;
}

.btn-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}
.btn-secondary{
    background-color: var(--secondary);
}
.btn-secondary:hover{
    background-color: var(--primary) !important;
}


.btn-ver{
    background-color: var(--terciary) !important;
    border: none !important;
}
.btn-ver:hover,
.btn-ver:focus,
.btn-ver:active,
.btn-ver:checked {
    background-color: var(--secondary) !important;
    font-family: var(--tipography-1) !important;
    border: none !important;
}

.btn-ver:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Tarjetas */
.card {
    border: none !important;
    border-radius: var(--border-radius-md) !important;
    box-shadow: var(--shadow-md) !important;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

.card-title {
    color: var(--primary) !important;
    font-family: var(--tipography-titles) !important;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
}

.card-text {
    font-family: var(--tipography-1) !important;
    font-weight: 400;
    font-size: 15px;
    color: var(--text-dark);
}

/* Elementos de texto con tipografías corregidas */
.sede {
    font-family: var(--tipography-1) !important;
    font-style: italic;
    color: var(--text-light);
    font-weight: 400;
    font-size: 14px;
}

.lista {
    font-family: var(--tipography-1) !important;
    color: var(--secondary);
    font-weight: 400;
    font-size: 14px;
}

/* Imagen de overlay - CORREGIDA ruta a WebP */
.ver {
    width: 100%;
    height: 100%;
    cursor: pointer !important;
    background-image: url('../img/thumb/ver.webp') !important;
    background-size: cover !important;
    position: absolute;
    top: 0;
    opacity: 0.7;
    transition: opacity var(--transition-normal);
}

.ver:hover {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 991px) {
    .col-12 {
        width: 90% !important;
        text-align: center;
    }
    .thumb-container img {
        width: 100%;
    }
    .info-container {
        justify-content: center;
        margin-top: 5%;
    }
    .btn-pdf {
        margin-top: 1.5% !important;
    }
    .footer {
        height: 100px;
    }
    .footer-bar {
        display: none;
    }
    .modal-dialog {
        max-width: 710px;
    }
    .aviso-legal {
        text-align: center !important;
    }
    .thumb-container {
        border-right: 0;
    }
}

@media (max-width: 540px) {
    .head {
        display: none !important;
    }
    .head540 {
        display: block !important;
    }
    .responsive-logo {
        width: 100%;
        height: auto !important;
    }
    .title-session {
        font-size: 18px;
        line-height: 26px;
        padding: 10px;
    }
    .btn-ver,
    .btn-pdf {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 450px) {
    .thumb-container {
        margin-bottom: 5%;
    }
    .responsive-logo {
        width: 100%;
        height: auto !important;
    }

    .organized .col-12 {
        text-align: center;
    }

    .sponsors .col-12 {
        margin-bottom: 8%;
    }
}