@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Montserrat:wght@400;600;700&display=swap');

:root {
    --primary-color: #005f73;
    --secondary-color: #0a9396;
    --accent-color: #e9d8a6;
    --light-bg: #f8f9fa;
    --dark-text: #343a40;
    --light-text: #ffffff;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa; /* Prioritized from style_single.css */
    color: #343a40; /* Prioritized from style_single.css */
    line-height: 1.6; /* Prioritized from style_single.css */
}

/* --- Header & Navigation --- */
.custom-navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
}

.custom-navbar .navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #0056b3; /* A strong brand color */
    font-size: 1.7rem;
}

.custom-navbar .nav-link {
    font-weight: 500;
    color: #495057;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease-in-out;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
    color: #007bff !important; /* Primary brand color for active/hover */
}

.language-selector button {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 5px 10px;
    margin-left: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
}

.language-selector button img {
    width: 20px;
    height: 15px;
    margin-right: 5px;
    border: 1px solid #ced4da;
}

.language-selector button:hover,
.language-selector button.active {
    background-color: #e9ecef;
    border-color: #007bff;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    border-radius: 25px; /* Pill shape */
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px); /* Slight lift on hover */
}


/* --- Hero Section --- */
.hero-section {
    width: 100%;
    overflow: hidden; /* Ensures the image doesn't overflow */
    margin-bottom: 30px;
}

.hero-section img {
    width: 100%;
    height: auto;
    display: block; /* Removes extra space below image */
}

/* --- Breadcrumb Navigation --- */
.breadcrumb-nav {
    background-color: #e9ecef;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #dee2e6;
}

.breadcrumb-nav .breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-nav .breadcrumb-item.active {
    color: #6c757d;
}


/* --- BOTÓN IR ARRIBA (from style.css) --- */
#btnGoUp {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 12px 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.3s;
}

#btnGoUp:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

/* --- PÁGINA DE SELECCIÓN DE PONENCIAS (from style.css) --- */
.ponencia-selector-card {
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.ponencia-selector-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 95, 115, 0.3);
    color: white;
}

.btn_category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 95, 115, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white;
}

.ponencia-selector-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* --- TARJETAS DE PONENCIA (LISTADO) (from style.css) --- */
.ponencia-card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ponencia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.ponencia-card .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.ponencia-card .btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.ponencia-card ul {
    list-style-type: none;
}


/* --- FORMULARIO DE BÚSQUEDA (from style.css) --- */
.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(10, 147, 150, 0.25);
}


/********** de old (from style.css) *****************************/

/* Cards */
.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15)!important;
}
.card-title {
    color: var(--primary-color);
}

.card-title a {
    text-decoration: none !important;
    color: #005f73;
    font-size: 1.25rem;
    font-weight: 700;
}

.themed-card .card-body i {
    transition: transform 0.3s ease;
}
.themed-card:hover .card-body i {
    transform: scale(1.1);
}


.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-bottom: 1.5rem;
    border-radius: 0.25rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* boton resaltado */

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--dark-text); /* Changed from --dark-text-color to --dark-text based on :root */
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.btn-accent:hover {
    background-color: #e6b422; /* Un tono más oscuro de amarillo */
    border-color: #e6b422;
    transform: translateY(-2px);
}

    /* slider 06-06-2025 */

        /* --- Estilos Generales (puedes adaptarlos) --- */
        
        #acompañamiento-academico {
            background-color: #f8f9fa;
        }

        .section-title {
            text-align: center;
            margin-bottom: 40px;
            font-size: 2.5rem;
            color: #333;
        }

        /* --- La Magia del Slider con CSS --- */

        /* 1. Define la animación de scroll */
        @keyframes scroll {
            0% { transform: translateX(0); }
            100% { transform: translateX(calc(-200px * 10)); } /* Mueve el track completo (ancho de slide * num slides) */
        }
        
        /* 2. El contenedor principal que oculta el desbordamiento */
        .slider {
            height: 150px; /* Altura de nuestros logos */
            margin: auto;
            overflow: hidden; /* ¡Clave! Oculta lo que no cabe en el contenedor */
            position: relative;
            width: 90%; /* Ancho del slider en la página */
        }
        
        /* Efecto de degradado en los bordes para un look más suave */
        .slider::before,
        .slider::after {
            content: "";
            height: 100%;
            position: absolute;
            width: 15%;
            z-index: 2;
        }
        
        .slider::before {
            left: 0;
            top: 0;
            background: linear-gradient(to left, rgba(248,249,250,0), #f8f9fa);
        }

        .slider::after {
            right: 0;
            top: 0;
            background: linear-gradient(to right, rgba(248,249,250,0), #f8f9fa);
        }

        /* 3. El track que se moverá */
        .slide-track {
            animation: scroll 30s linear infinite; /* Aplica la animación */
            display: flex;
            width: calc(200px * 20); /* Doble de slides para un bucle perfecto (ancho de slide * num slides * 2) */
        }
        
        /* Pausa la animación al pasar el mouse */
        .slider:hover .slide-track {
            animation-play-state: paused;
        }

        /* 4. Estilo de cada slide individual */
        .slide {
            height: 150px;
            width: 200px; /* Ancho fijo para cada logo */
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 15px;
            perspective: 150px;
        }

        .slide img {
            width: 100%;
            height: auto;
            object-fit: contain;
            transition: transform 0.3s;
        }
        
        .slide a:hover img {
            transform: scale(1.1);
        }
  
  /* fin slider 06-06-2025 */


      /* Clases personalizadas para el acordeón compacto (from style.css) */
      .accordion-compact .accordion-button {
        font-size: 0.85rem; /* Reduce el tamaño de la fuente del título del botón */
        padding: 0.25rem 0.75rem !important; /* Reduce el padding del botón */
    }

    .accordion-compact .accordion-body {
        font-size: 0.75rem; /* Reduce el tamaño de la fuente del contenido */
        padding: 0.5rem 0.75rem; /* Reduce el padding del cuerpo del acordeón */
    }

    /* Ajustes generales para el acordeón y sus elementos */
    .accordion-item {
        margin-bottom: 0px; /* Elimina el margen entre los ítems del acordeón */
        border: 1px solid rgba(0, 0, 0, .125); /* Mantiene un borde fino para separación visual */
    }

    .accordion-item:not(:first-of-type) {
        border-top: 0; /* Elimina el borde superior redundante */
    }

    .accordion-button:focus {
        box-shadow: none; /* Elimina el box-shadow al hacer foco para un aspecto más compacto */
    }

/* --- Footer (from style.css) --- */
footer {
    background-color: #2c3e50 !important; /* Darker tone for footer */
    color: #ecf0f1;
    padding: 2.5rem 0;
    font-size: 0.9rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

footer strong {
    color: #f1c40f; /* Highlight important text */
}

footer a {
    color: #a2d2ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* --- Presentation Detail Section (from style_single.css) --- */
.presentation-detail {
    padding-top: 20px;
    padding-bottom: 50px;
}

.presentation-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.presentation-card .card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #343a40;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.presentation-meta {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.presentation-meta .authors {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 0.5rem;
}

.presentation-meta .author-name {
    display: block;
    margin-bottom: 0.2rem;
}

.affiliation-country {
    font-weight: 500;
}

.flag-icon {
    font-size: 1.5rem;
    vertical-align: middle;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.presentation-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.presentation-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    margin-top: 1.5rem;
}

.presentation-content p {
    margin-bottom: 1rem;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.document-viewer {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.pdf-embed-responsive {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pdf-embed-responsive object {
    width: 100%;
    height: 100%;
    display: block;
}

.download-btn {
    background-color: #28a745;
    border-color: #28a745;
    border-radius: 25px;
    padding: 0.7rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-2px);
}

.presentation-tags {
    font-size: 0.9rem;
    color: #6c757d;
    background-color: #f1f1f1;
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block; /* Makes it fit content */
}

/* --- Responsibility Disclaimer (from style_single.css) --- */
.responsibility-disclaimer {
    border-radius: 10px;
    border: 1px solid #ffeeba;
    background-color: #fff3cd; /* Light yellow for notice */
    color: #856404;
    font-size: 0.85rem;
}

.responsibility-disclaimer h4 {
    color: #856404;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
}

/* --- Chat Section (from style_single.css) --- */
.chat-section {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.chat-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #343a40;
    font-size: 1.8rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 1.5rem;
}

.chat-intro {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.chat-guidelines {
    font-size: 0.9rem;
    color: #777;
}

.chat-box {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background-color: #fefefe;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.05);
}

.chat-messages {
    max-height: 350px; /* Fixed height for scrollable chat area */
    overflow-y: auto;
    background-color: #e9f5ff; /* Light blue background for chat area */
    border-radius: 8px 8px 0 0;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

/* Styling individual chat messages (if fetched with specific structure) */
.chat-message {
    background-color: #d1ecf1; /* Light cyan for messages */
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 8px;
    word-wrap: break-word;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.chat-message .message-author {
    font-weight: bold;
    color: #0056b3;
    margin-right: 5px;
}

.chat-message .message-time {
    font-size: 0.75rem;
    color: #6c757d;
    float: right; /* Align time to the right */
}

.chat-input-area {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 0 0 10px 10px;
}

.chat-input-area .form-control {
    border-radius: 20px; /* Rounded input fields */
    border-color: #ced4da;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
    padding: 0.6rem 1rem;
}

.chat-input-area .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.chat-input-area .btn-success {
    background-color: #28a745;
    border-color: #28a745;
    border-radius: 20px;
    font-weight: 600;
}

.chat-input-area .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* --- WhatsApp Button (from style_single.css) --- */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    background-color: #25d366;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn:hover {
    background-color: #1da851;
    transform: translateY(-3px);
    color: #ffffff;
}

.whatsapp-btn img {
    width: 30px; /* Adjust size as needed */
    height: 30px;
    margin-right: 10px;
}

/* Responsive Adjustments (from style_single.css) */
@media (max-width: 991.98px) {
    .custom-navbar .navbar-nav {
        text-align: center;
        margin-top: 15px;
    }

    .custom-navbar .d-flex {
        flex-direction: column;
        align-items: center !important;
        margin-top: 15px;
    }

    .language-selector {
        margin-bottom: 10px;
    }

    .custom-navbar .btn-primary {
        margin-left: 0 !important;
        margin-top: 10px;
        width: 80%; /* Make button wider on small screens */
    }

    .presentation-card .card-title {
        font-size: 1.8rem;
    }

    .chat-input-area .col-md-2,
    .chat-input-area .col-md-8 {
        margin-bottom: 10px;
    }
}

@media (max-width: 767.98px) {
    .presentation-detail {
        padding-top: 20px;
        padding-bottom: 30px;
    }

    .presentation-card {
        padding: 20px;
    }

    .chat-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        margin-bottom: 15px;
    }

    .breadcrumb-nav {
        padding: 10px 0;
        margin-bottom: 20px;
    }

    .presentation-card .card-title {
        font-size: 1.5rem;
    }

    .presentation-meta {
        font-size: 0.85rem;
    }

    .chat-input-area .row > div {
        margin-bottom: 10px;
    }
}
/* fin estilos para el detalle*/