/*
Theme Name: Congreso COVID Theme
*/
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

body { font-family: 'Open Sans', sans-serif; color: #333; margin: 0; padding: 0; background: #fff; }
.site-content { max-width: 1400px; margin: 0 auto; padding: 20px; }

/* Cabecera */
.site-header { background: #25314d; }
.header-top { display: flex; justify-content: space-between; align-items: center; padding: 25px 40px; position: relative; overflow: hidden; }
.logo-container { z-index: 2; }
.logo-container img { max-height: 120px; width: auto; }
.header-dots { width: 450px; height: 100%; background-size: cover; background-repeat: no-repeat; background-position: right top; position: absolute; right: 0; top: 0; pointer-events: none; }
.header-search { z-index: 2; }
.header-search form { display: flex; gap: 5px; }
.header-search input[type="search"] { padding: 10px 15px; width: 350px; border: none; border-radius: 4px; }
.header-search button { padding: 10px 20px; background: #486da6; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; }
.header-search button:hover { background: #1a202c; }

/* Navegación */
.main-navigation { background: #486da6; padding: 10px 40px; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; justify-content: center; }
.main-navigation a { color: white; text-decoration: none; font-weight: 600; font-size: 16px; text-transform: uppercase; }
.main-navigation a:hover { color: #ccc; }

/* Pie de página */
.site-footer { background: #25314d; color: white; text-align: center; padding: 20px; margin-top: 50px; font-size: 14px; }

/* Tarjetas y Grillas */
h2.eje-title { border-bottom: 2px solid #25314d; padding-bottom: 10px; margin-top: 50px; color: #25314d; text-transform: uppercase; font-size: 1.4rem; font-weight: 700; }
.poster-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 40px; }
.poster-card { background: #fff; border: 1px solid #ddd; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow 0.3s; }
.poster-card:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.poster-card-img { width: 100%; height: 250px; object-fit: cover; object-position: top; border-bottom: 1px solid #eee; }
.poster-card-content { padding: 15px; }
.poster-card-title { font-size: 1rem; font-weight: 700; margin: 0 0 10px 0; color: #25314d; line-height: 1.3; }
.poster-card-authors { font-size: 0.8rem; color: #555; margin-bottom: 10px; }
.poster-card-number { font-size: 0.8rem; font-weight: 700; color: #486da6; }

/* Vista Individual */
.single-poster-wrapper { max-width: 1400px; margin: 0 auto; padding: 40px 20px; }
.single-poster-header { text-align: center; margin-bottom: 30px; }
.single-poster-title { font-size: 2.2rem; color: #25314d; margin-bottom: 15px; text-transform: uppercase; line-height: 1.2; }
.single-poster-meta { font-size: 1rem; color: #555; text-align: left; max-width: 1000px; margin: 0 auto 20px; }
.single-poster-image-container { width: 100%; background: #f4f4f4; text-align: center; }
.single-poster-image { width: 100%; height: auto; display: block; }
.audio-wrapper { text-align: right; margin-bottom: 20px; }
.custom-audio-player { width: 100%; max-width: 400px; height: 40px; outline: none; }
.btn-back { display: inline-block; padding: 10px 20px; background: #486da6; color: white; text-decoration: none; border-radius: 4px; font-weight: 600; }
.btn-back:hover { background: #25314d; }

/* Video al 75% */
.video-container { max-width: 75%; margin: 20px auto; }
.video-container iframe { width: 100%; aspect-ratio: 16/9; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

/* Paginación */
.pagination { text-align: center; margin: 40px 0; font-size: 1.1rem; }
.pagination .page-numbers { padding: 10px 15px; margin: 0 3px; background: #e2e8f0; color: #334155; text-decoration: none; border-radius: 4px; font-weight: 600; }
.pagination .page-numbers.current { background: #486da6; color: white; }
.pagination .page-numbers:hover:not(.current) { background: #cbd5e1; }

/* Responsividad */
@media (max-width: 900px) { .poster-grid { grid-template-columns: repeat(2, 1fr); } .video-container { max-width: 100%; } }
@media (max-width: 600px) { 
    .poster-grid { grid-template-columns: 1fr; } 
    .single-poster-title { font-size: 1.5rem; }
    .main-navigation ul { flex-direction: column; align-items: center; gap: 10px; }
    .single-poster-meta { text-align: center; }
    .audio-wrapper { text-align: center; }
    .header-top { flex-direction: column; gap: 20px; padding: 15px; }
    .header-dots { display: none; }
    .header-search input[type="search"] { width: 100%; }
}
