/* =========================================
   ESTILOS GENERALES Y BOOTSTRAP OVERRIDES
   ========================================= */

/* Títulos de las secciones con estilo subrayado */
.nivel-titulo {
    text-transform: uppercase;
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 1.5rem;
    display: inline-block;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
    letter-spacing: 1px;
}

/* =========================================
   HERO SECTION (PORTADA)
   ========================================= */
.hero-section {
    position: relative;
    /* Imagen de fondo con una capa oscura (overlay) para que se lea el texto */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url("https://www.upo.es/upo_opencms/export/sites/upo/Galerias/Imagenes/cabecera-la-upo.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: #fff;
    /* Altura mínima para que luzca bien en móvil y desktop */
    min-height: 60vh; 
    padding: 80px 0;
}

/* Ajuste de tamaño de fuente del título principal en móviles */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem; /* Más pequeño en móvil */
    }
    .hero-section .h5 {
        font-size: 1.1rem;
    }
}

/* =========================================
   PONENTES (EFECTO HOVER)
   ========================================= */
.card-ponente {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card-ponente:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    cursor: pointer;
}

.card-ponente:hover .card-title {
    color: #0077b5; /* Azul LinkedIn */
    transition: color 0.3s ease;
}

/* =========================================
   PATROCINADORES Y LOGOS
   ========================================= */
.partner-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 120px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #eee; /* Borde sutil para resaltar sobre fondo blanco */
}

.partner-img {
    max-height: 100px;
    width: auto;
    max-width: 100%; /* Asegura que no se salga en móviles muy estrechos */
    transition: filter 0.4s ease;
    filter: blur(0);
}

/* Ajustes específicos por tamaño de columna */
.col-md-4 .partner-img { max-height: 120px; }
.col-md-2 .partner-img { max-height: 70px; }

.partner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 10px;
    text-align: center;
    color: #000;
}

/* Hover Effects */
.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.partner-card:hover .partner-img {
    filter: blur(5px);
}

.partner-card:hover .partner-overlay {
    opacity: 1;
}

/* =========================================
   AJUSTES DE TABLAS PARA MÓVIL
   ========================================= */
/* Evita que los textos de las cabeceras se rompan mal en pantallas pequeñas */
.table th {
    white-space: nowrap; 
}
/* Permite scroll suave en iOS */
.table-responsive {
    -webkit-overflow-scrolling: touch;
}