
:root{
  --primary:#528049; --sec1:#4c8280; --sec2:#558a67; --location:#5a1236; --footer:#333333;
  --text:#222; --text-inv:#fff;
}
*{box-sizing:border-box} html{scroll-behavior:smooth}
body{margin:0;font-family:'Noto Sans',system-ui,Segoe UI,Roboto,Arial,sans-serif;color:var(--text);background:#f7f7f7;line-height:1.55;padding-bottom:88px;}
a{color:var(--sec1);text-decoration:none} a:hover{text-decoration:underline}

/* Header */
header.site-header{background:var(--primary);color:#fff;}
.header-top{max-width:1200px;margin:0 auto;padding:10px 18px 0;display:grid;grid-template-columns:160px 1fr 160px;align-items:center;gap:10px;}
.header-logos img{width:140px;height:auto;display:block;background:rgba(255,255,255,.06);border-radius:10px;padding:6px;}
.header-logos.right{text-align:right} .brand-center{text-align:center;padding:8px 6px 12px;}
.brand-center .institution{font-weight:800;font-size:22px;letter-spacing:.3px}
.brand-center .area{font-weight:600;font-size:16px;opacity:.95}
.brand-center .congress{font-weight:800;font-size:20px}
.nav-bar{margin-top:8px;background:#000;position:sticky;top:0;z-index:1100;box-shadow:0 6px 14px rgba(0,0,0,.12)}
.nav-inner{max-width:1200px;margin:0 auto;padding:8px 12px}
nav.main-nav ul{display:flex;gap:14px;list-style:none;margin:0;padding:0;flex-wrap:wrap;align-items:center;justify-content:center}
nav.main-nav a{color:#fff;padding:8px 10px;border-radius:8px;display:block;font-weight:700}
nav.main-nav a:hover{background:rgba(255,255,255,.18);text-decoration:none}
@media (max-width:980px){.header-top{grid-template-columns:120px 1fr 120px}.header-logos img{width:110px}.brand-center .institution{font-size:20px}.brand-center .congress{font-size:18px}}
@media (max-width:680px){.header-top{grid-template-columns:1fr;text-align:center}.header-logos{display:none}.brand-center{padding-top:14px}}

/* Slider */
.hero-slider{max-height:72vh;background:#fff;overflow:hidden}
.slides{display:flex; height: 100%; width: auto; animation:slide 14s infinite}
/*.hero-slider .slides{ display: flex; height: 100%; width: auto; transition: transform .5s ease; }*/
.slide{flex:0 0 100%} .slide img{width:100%;height:min(68vh,700px);object-fit:cover;display:block}
@keyframes slide{0%{transform:translateX(0%)}30%{transform:translateX(0%)}35%{transform:translateX(-100%)}65%{transform:translateX(-100%)}70%{transform:translateX(-200%)}100%{transform:translateX(-200%)}}
/*@media (max-width:100%){.hero-slider{max-height:auto}.slide img{height:min(54vh,520px)}}*/
/*@media (max-width:100%){.hero-slider{max-height:auto}.slide img{height:min(42vh,440px)}}*/

@media (max-width:900px){.hero-slider{max-height:58vh}.slide img{height:min(54vh,520px)}}
@media (max-width:560px){.hero-slider{max-height:48vh}.slide img{height:min(42vh,440px)}}

/* Layout */
.container{text-align: justify;max-width:1100px;margin:0 auto;padding:22px 18px 40px;background:#fff}
.section-title{margin:8px 0 16px;font-size:28px;font-weight:800;color:#222}
.grid{display:grid;gap:16px}
.grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:920px){.grid.cols-3,.grid.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.grid.cols-2,.grid.cols-3,.grid.cols-4{grid-template-columns:1fr}}
.card{background:#fff;border:1px solid #e5e5e5;border-radius:14px;overflow:hidden;box-shadow:0 6px 16px rgba(0,0,0,.06)}
.card img{width:100%;height:auto;display:block} .card .p{padding:12px 14px}
.badge{display:inline-block;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:700}
.badge.sec1{background:var(--sec1);color:#fff} .badge.sec2{background:var(--sec2);color:#fff}

/* Location fixed + Footer (joined) */
.location-fixed{position:fixed;left:0;right:0;bottom:0;background:var(--location);color:#fff;padding:12px 18px;display:flex;align-items:center;gap:14px;flex-wrap:wrap;z-index:999}
.location-fixed .pin{width:10px;height:10px;background:#ffcf33;border-radius:50%;box-shadow:0 0 0 4px rgba(255,207,51,.25)}
.location-fixed a{color:#fff;text-decoration:underline}
/* Logos */
.location-fixed .loc-logo img{height:78px;width:auto;display:block;border-radius:6px;padding:4px}
footer.site-footer{background:var(--footer);color:#ccc;margin:0;padding:14px 0}
.footer-inner{max-width:1200px;margin:0 auto;padding:0 18px;display:flex;align-items:center;gap:12px;font-size:14px}
.footer-inner .footer-logo img{height:78px;width:auto;display:block;border-radius:6px;padding:4px}

/* Notes */
.hero-note{background:linear-gradient(135deg,rgba(76,130,128,.2),rgba(85,138,103,.2));border-left:4px solid var(--sec2);padding:12px 14px;border-radius:12px;margin:14px 0}
.small{font-size:13px;opacity:.85}

/* Homenajeado */
.honoree-wrap{align-items:start} .honoree-photo{width:100%;height:auto;max-width:520px;border-radius:12px;box-shadow:0 8px 22px rgba(0,0,0,.12)}
@media (max-width:900px){.honoree-photo{max-width:100%}}

/* Gallery */
.gallery{display:grid;gap:10px;grid-template-columns:repeat(3,minmax(0,1fr))} .gallery img{width:100%;height:auto;border-radius:12px}
@media (max-width:900px){.gallery{grid-template-columns:repeat(2,1fr)}} @media (max-width:560px){.gallery{grid-template-columns:1fr}}

/* Oradores Modal */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);display:none;align-items:center;justify-content:center;z-index:1000}
.modal-overlay.active{display:flex} .modal{width:min(960px,92vw);background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 14px 40px rgba(0,0,0,.35)}
.modal-header{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;background:var(--sec1);color:#fff;font-weight:800}
.modal-body{display:grid;grid-template-columns:360px 1fr;gap:16px;padding:14px} .modal-body img{width:100%;height:auto;border-radius:12px}
.modal-body h3{margin:0 0 6px} .modal-body .small{font-size:14px} .modal-close{cursor:pointer;font-size:22px;font-weight:900;line-height:1}
@media (max-width:760px){.modal-body{grid-template-columns:1fr}} .speaker-card{cursor:pointer}

/* Programa Tabs */
.tabs{margin-top:8px} .tab-buttons{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.tab-buttons button{border:none;padding:10px 14px;border-radius:10px;background:var(--sec1);color:#fff;font-weight:700;cursor:pointer}
.tab-buttons button.active{background:var(--sec2)} .tab-panel{display:none;margin-top:12px}
.tab-panel.active{display:block;animation:tabfade .25s ease} .tab-panel img{width:100%;height:auto;border-radius:12px;box-shadow:0 10px 24px rgba(0,0,0,.12)}
@keyframes tabfade{from{opacity:0}to{opacity:1}}
