@font-face{font-family:"TGS Perfect";src:url("../assets/perfect-condensed.woff2") format("woff2"),url("../assets/perfect-condensed.otf") format("opentype");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"Avenir Congreso";src:url("../assets/Avenir-Book.woff2") format("woff2"),url("../assets/Avenir.ttc") format("truetype");font-style:normal;font-weight:400;font-display:swap}

*{box-sizing:border-box}
html,body{margin:0;background:#1e1f21;color:#fff;font-family:"Avenir Next","Helvetica Neue",Arial,sans-serif}
body{overflow-x:hidden}
img{display:block;max-width:100%}
a{text-decoration:none;color:inherit}
button{font:inherit}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
:root{--navy:#061b4b;--cyan:#00fff9;--dark:#1e1f21;--header:89px}

.site-header{height:var(--header);position:sticky;top:0;z-index:1000;display:flex;align-items:center;justify-content:space-between;padding:0 5vw;background:linear-gradient(90deg,#0b2676,#2649e1 38%,#00fff9 65%,#d1edf6);box-shadow:0 5px 18px #0004}
.brand img{width:176px;height:auto;object-fit:contain}
.site-header nav{display:flex;gap:clamp(24px,3vw,58px);align-items:center}
.site-header nav a{font-family:"TGS Perfect",sans-serif;font-size:26px;text-transform:uppercase;color:var(--navy);position:relative;padding:10px 0}
.site-header nav a:after{content:"";position:absolute;left:0;right:0;bottom:5px;height:2px;background:currentColor;transform:scaleX(0);transition:transform .2s ease}
.site-header nav a:hover:after,.site-header nav a.active:after,.site-header nav a:focus-visible:after{transform:scaleX(1)}
.menu-toggle{display:none;background:none;border:0;width:44px}
.menu-toggle span{display:block;height:2px;background:var(--navy);margin:7px}

.btn{display:inline-flex;align-items:center;justify-content:center;min-height:56px;padding:0 26px;border-radius:999px;background:var(--cyan);color:var(--navy);font-family:"TGS Perfect",sans-serif;font-size:30px;text-transform:uppercase;transition:.2s;border:2px solid var(--cyan);cursor:pointer}
.btn:hover,.btn:focus-visible,.btn:active{background:var(--navy);color:white;border-color:var(--navy);transform:translateY(-2px);box-shadow:0 12px 26px #061b4b88}
.gradient-footer{height:89px;background:linear-gradient(90deg,#0b2676,#2649e1 38%,#00fff9 65%,#d1edf6)}

/* Home */
.home{background:var(--navy)}
.home-raster{width:100%;height:auto}
.home-top{height:auto;aspect-ratio:1920/1850;object-fit:cover;object-position:top center}
.messages{position:relative;overflow:hidden;min-height:1000px;background:#061b4b}
.messages-heading{max-width:1920px;margin:auto;padding:90px 7.86vw 18px;position:relative;z-index:5}
.messages-heading h2{font:60px/1 "TGS Perfect",sans-serif;margin:0}
.messages-heading p{font-size:42px;line-height:1.15;margin:6px 0}
.slider-wrap{position:relative}
.slider-wrap:after{content:"";position:absolute;z-index:2;left:0;right:0;top:40%;bottom:-120px;pointer-events:none;background:linear-gradient(90deg,#d1edf6 0%,#00fff9 38%,#2547df 70%,#061b4b 100%);-webkit-mask-image:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.18) 16%,#000 72%);mask-image:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.18) 16%,#000 72%)}
.speaker-scroller{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-behavior:smooth;cursor:grab;overscroll-behavior-inline:contain;outline-offset:-3px}
.speaker-scroller:focus-visible{outline:2px solid #fff8}
.speaker-scroller.is-dragging{cursor:grabbing;scroll-behavior:auto}
.speaker-scroller::-webkit-scrollbar{display:none}
.speaker-track{display:flex;width:max-content;align-items:flex-end;padding:0 20px;min-height:680px}
.speaker-card{position:relative;flex:0 0 548px;width:548px;height:650px}
.speaker-portrait{position:absolute;inset:0}
.speaker-card img{width:100%;height:100%;object-fit:contain;object-position:center bottom;-webkit-user-drag:none;user-select:none}
.speaker-card h3{position:absolute;left:84px;bottom:54px;font-size:36px;font-weight:400;line-height:1;margin:0;z-index:3;white-space:nowrap}
.speaker-card .btn{position:absolute;left:84px;bottom:0;z-index:4;min-height:47px;font-size:30px;padding:0 14px;background:#fff;border-color:#fff}
.speaker-card .btn:hover,.speaker-card .btn:focus-visible,.speaker-card .btn:active{background:var(--navy);border-color:var(--navy);color:#fff}
.slider-nav{position:absolute;z-index:20;border:0;background:none;color:#fff;font:700 56px/1 Arial,sans-serif;cursor:pointer;top:58%;text-shadow:0 2px 8px #000;transition:opacity .2s ease}
.slider-nav:hover,.slider-nav:focus-visible{opacity:.72}
.slider-nav.prev{left:55px}
.slider-nav.next{right:55px}
.home-bottom{display:block;height:min(77.9167vw,1496px);object-fit:cover;object-position:center bottom}

/* Days */
.day-content{max-width:1920px;margin:auto;background:#000}
.sermon{position:relative;min-height:1080px;display:grid;grid-template-columns:1fr 1fr;overflow:hidden;background:#020305}
.sermon:before{content:"";position:absolute;inset:0;background-image:linear-gradient(90deg,#000c,#061b4b40),var(--texture);background-size:cover;background-position:center;opacity:.46}
.sermon.reverse:before{background-image:linear-gradient(270deg,#000c,#061b4b40),var(--texture)}
.sermon-copy{position:relative;z-index:2;padding:70px 4.2vw 60px;align-self:center;max-width:960px}
.sermon.reverse .sermon-copy{grid-column:2}
.sermon h1{font:60px/1 "TGS Perfect",sans-serif;margin:0 0 4px}
.sermon h2{font-size:36px;line-height:1.16;font-weight:400;text-transform:uppercase;margin:0 0 8px}
.sermon h3{font-size:26px;font-weight:400;margin:0 0 22px}
.sermon-text{font-family:"Avenir Congreso",Avenir,"Avenir Next","Helvetica Neue",Arial,sans-serif;font-size:18px;line-height:1.45;max-width:830px}
.sermon-text p{margin:0 0 17px}
.sermon-visual{position:absolute;right:0;top:0;width:52%;height:100%;display:flex;align-items:center;justify-content:flex-end;z-index:1}
.sermon.reverse .sermon-visual{right:auto;left:0;justify-content:flex-start}
.sermon-visual img{height:100%;width:auto;max-width:100%;object-fit:contain;object-position:right center}
.sermon.reverse .sermon-visual img{object-position:left center}
.sermon .btn{margin-top:8px}

/* Día 2: aislado para no alterar Día 1 ni Día 3 */
body.day-page:has(nav a[href="dia-2.html"].active) .sermon{min-height:780px;height:clamp(780px,53.90625vw,1035px)}
body.day-page:has(nav a[href="dia-2.html"].active) .sermon:before{inset:-1px}
body.day-page:has(nav a[href="dia-2.html"].active) .sermon-copy{grid-column:2;padding:clamp(44px,3.65vw,70px) clamp(34px,3.49vw,67px) clamp(40px,3.13vw,60px) clamp(24px,1.77vw,34px)}
body.day-page:has(nav a[href="dia-2.html"].active) .sermon.reverse .sermon-copy{grid-column:1;padding-right:clamp(24px,1.77vw,34px);padding-left:clamp(34px,3.49vw,67px)}
body.day-page:has(nav a[href="dia-2.html"].active) .sermon h1{font:clamp(44px,3.125vw,60px)/1 "TGS Perfect",sans-serif}
body.day-page:has(nav a[href="dia-2.html"].active) .sermon h2{font-size:clamp(26px,1.875vw,36px)}
body.day-page:has(nav a[href="dia-2.html"].active) .sermon h3{font-size:clamp(20px,1.354vw,26px);margin-bottom:clamp(14px,1.15vw,22px)}
body.day-page:has(nav a[href="dia-2.html"].active) .sermon-text{font-family:"Avenir Congreso",Avenir,"Avenir Next","Helvetica Neue",Arial,sans-serif;font-size:clamp(14px,.9375vw,18px)}
body.day-page:has(nav a[href="dia-2.html"].active) .sermon-text p{margin-bottom:clamp(11px,.885vw,17px)}
body.day-page:has(nav a[href="dia-2.html"].active) .sermon-visual{left:0;right:auto;justify-content:flex-start}
body.day-page:has(nav a[href="dia-2.html"].active) .sermon.reverse .sermon-visual{left:auto;right:0;justify-content:flex-end}
body.day-page:has(nav a[href="dia-2.html"].active) .sermon-visual img{object-position:left center}
body.day-page:has(nav a[href="dia-2.html"].active) .sermon.reverse .sermon-visual img{object-position:right center}
body.day-page:has(nav a[href="dia-2.html"].active) .sermon .btn{min-height:clamp(44px,2.92vw,56px);font-size:clamp(24px,1.563vw,30px);padding:0 clamp(18px,1.35vw,26px)}
body.day-page:has(nav a[href="dia-2.html"].active) .sermon .btn:hover,
body.day-page:has(nav a[href="dia-2.html"].active) .sermon .btn:focus-visible,
body.day-page:has(nav a[href="dia-2.html"].active) .sermon .btn:active,
.home-page .messages .btn:hover,
.home-page .messages .btn:focus-visible,
.home-page .messages .btn:active{transform:none;box-shadow:none}

/* Conferences */
.conference-main,.gallery-main{min-height:100vh;background:var(--dark);padding:105px 4.2vw 180px}
.conference-main>h1{font:60px/1 "TGS Perfect",sans-serif;margin:0 auto 28px;max-width:1786px}
.filters{display:flex;gap:16px;flex-wrap:wrap;max-width:1786px;margin:0 auto 70px}
.filter-btn{min-height:56px;padding:0 22px;border-radius:999px;background:transparent;border:2px solid var(--cyan);color:#fff;font-size:24px;cursor:pointer;transition:.2s}
.filter-btn:hover,.filter-btn:focus-visible,.filter-btn.active{background:var(--cyan);color:var(--navy)}
.conference-grid{max-width:1786px;margin:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:150px 84px}
.conference-card[hidden]{display:none}
.conference-card img{width:100%;aspect-ratio:531/262;object-fit:cover;border:2px solid var(--cyan);border-radius:28px}
.conference-card p{font-size:30px;margin:12px 0 0}
.conference-card h2{font-size:30px;font-weight:400;line-height:1.15;min-height:70px;margin:0 0 16px}
.conference-card .btn{float:right;font-size:28px}

/* Gallery */
.gallery-heading{text-align:center;max-width:1200px;margin:0 auto 50px;color:#fff}
.gallery-heading span{font:30px "TGS Perfect",sans-serif;text-transform:uppercase}
.gallery-heading h1{font:100px/.9 "TGS Perfect",sans-serif;margin:14px 0}
.gallery-heading p{font-size:42px;margin:0;font-weight:400}
.gallery-filters{justify-content:center}
.gallery-grid{max-width:1786px;margin:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.gallery-item{border:0;padding:0;background:#111;border-radius:18px;overflow:hidden;aspect-ratio:16/9;cursor:pointer}
.gallery-item[hidden]{display:none}
.gallery-item img{width:100%;height:100%;object-fit:cover;transition:.25s}
.gallery-item:hover img,.gallery-item:focus-visible img{transform:scale(1.04);filter:brightness(1.08)}
.lightbox{position:fixed;inset:0;background:#000e;z-index:5000;display:grid;place-items:center;padding:50px 80px}
.lightbox[hidden]{display:none}
.lightbox img{max-width:90vw;max-height:88vh}
.lightbox button{position:absolute;border:0;background:none;color:#fff;font-size:54px;cursor:pointer}
.lightbox-close{right:24px;top:12px}
.lightbox-prev{left:22px;top:50%}
.lightbox-next{right:22px;top:50%}

@media(max-width:1100px){
  body.day-page:has(nav a[href="dia-2.html"].active) .sermon{min-height:0;height:auto;display:flex;flex-direction:column;padding:0}
  body.day-page:has(nav a[href="dia-2.html"].active) .sermon:before,
  body.day-page:has(nav a[href="dia-2.html"].active) .sermon.reverse:before{background-image:linear-gradient(180deg,#0009,#061b4b55),var(--texture)}
  body.day-page:has(nav a[href="dia-2.html"].active) .sermon-copy,
  body.day-page:has(nav a[href="dia-2.html"].active) .sermon.reverse .sermon-copy{order:1;padding:32px 20px 20px;grid-column:auto;align-self:stretch;max-width:none}
  body.day-page:has(nav a[href="dia-2.html"].active) .sermon-visual,
  body.day-page:has(nav a[href="dia-2.html"].active) .sermon.reverse .sermon-visual{position:relative;order:2;width:100%;height:auto;min-height:0;left:auto;right:auto;justify-content:center}
  body.day-page:has(nav a[href="dia-2.html"].active) .sermon-visual img,
  body.day-page:has(nav a[href="dia-2.html"].active) .sermon.reverse .sermon-visual img{width:100%;height:auto;max-width:700px;object-position:center bottom}
  body.day-page:has(nav a[href="dia-2.html"].active) .sermon h1{font-size:40px;line-height:1}
  body.day-page:has(nav a[href="dia-2.html"].active) .sermon h2{font-size:18px;line-height:1.2}
  body.day-page:has(nav a[href="dia-2.html"].active) .sermon h3{font-size:18px;line-height:1.2;margin-bottom:14px}
  body.day-page:has(nav a[href="dia-2.html"].active) .sermon-text{font-size:14px;line-height:1.36}
  body.day-page:has(nav a[href="dia-2.html"].active) .sermon-text p{margin-bottom:14px}
  body.day-page:has(nav a[href="dia-2.html"].active) .sermon .btn{min-height:44px;font-size:26px;margin-top:4px;padding:0 18px}
}

@media(max-width:1000px){
  :root{--header:76px}
  .site-header{height:76px;padding:0 26px}
  .brand{width:140px;height:40px}
  .brand img{width:140px;height:40px;object-fit:contain}
  .menu-toggle{display:block}
  .site-header nav{position:fixed;inset:76px 0 0;background:linear-gradient(150deg,#d1edf6,#00fff9 42%,#2146d5);display:flex;flex-direction:column;align-items:flex-start;padding:45px 30px;gap:10px;transform:translateX(100%);transition:transform .25s ease}
  .site-header nav.open{transform:none}
  .site-header nav a{font-size:34px}
  .conference-grid{grid-template-columns:repeat(2,1fr)}
  .gallery-grid{grid-template-columns:repeat(3,1fr)}
}

@media(max-width:700px){
  :root{--header:76px}
  .site-header{height:76px;padding:0 20px}
  .site-header nav{inset:76px 0 0}
  .home-page .site-header,
  body.day-page:has(nav a[href="dia-2.html"].active) .site-header{height:56px;padding:0 19px 0 26px}
  .home-page .site-header nav,
  body.day-page:has(nav a[href="dia-2.html"].active) .site-header nav{inset:56px 0 0}
  .home-top{width:100%;height:auto;aspect-ratio:1920/1850}
  .home-bottom{width:100%;height:77.9167vw;object-fit:cover;object-position:center bottom}
  .messages{min-height:650px;background:#061b4b}
  .slider-wrap:after{top:42%;background:linear-gradient(90deg,#d1edf6 0%,#00fff9 42%,#2547df 78%,#061b4b 100%)}
  .messages-heading{padding:44px 20px 12px}
  .messages-heading h2{font-size:40px}
  .messages-heading p{font-size:24px;line-height:1.15;max-width:326px}
  .speaker-track{min-height:520px;padding:0 20px}
  .speaker-card{flex-basis:350px;width:350px;height:520px}
  .speaker-card h3{left:56px;bottom:52px;font-size:22px}
  .speaker-card .btn{left:56px;bottom:8px;min-height:40px;font-size:22px}
  .slider-nav{font-size:42px;top:63%}
  .slider-nav.prev{left:8px}
  .slider-nav.next{right:8px}

  .sermon{min-height:0;display:flex;flex-direction:column;padding-bottom:0}
  .sermon:before,.sermon.reverse:before{background-image:linear-gradient(180deg,#0009,#061b4b55),var(--texture)}
  .sermon-copy,.sermon.reverse .sermon-copy{order:1;padding:48px 24px 30px;grid-column:auto}
  .sermon-visual,.sermon.reverse .sermon-visual{position:relative;order:2;width:100%;height:520px;left:auto;right:auto;justify-content:center}
  .sermon-visual img,.sermon.reverse .sermon-visual img{height:100%;max-width:none;object-position:center}
  .sermon h1{font-size:45px}
  .sermon h2{font-size:24px}
  .sermon h3{font-size:21px}
  .sermon-text{font-size:17px;line-height:1.5}

  .btn{min-height:50px;font-size:25px}
  .conference-main,.gallery-main{padding:60px 20px 100px}
  .conference-main>h1{font-size:44px}
  .filters{flex-wrap:nowrap;overflow-x:auto;margin-right:-20px;padding-right:20px;scrollbar-width:none}
  .filter-btn{min-height:46px;font-size:17px;white-space:nowrap}
  .conference-grid{grid-template-columns:1fr;gap:70px}
  .conference-card p{font-size:23px}
  .conference-card h2{font-size:25px;min-height:0}
  .conference-card .btn{float:none}
  .gallery-heading span{font-size:22px}
  .gallery-heading h1{font-size:72px}
  .gallery-heading p{font-size:26px}
  .gallery-grid{grid-template-columns:repeat(2,1fr);gap:9px}
  .gallery-item{border-radius:10px}
  .lightbox{padding:50px 12px}
  .gradient-footer{height:34px}
  body.day-page:has(nav a[href="dia-2.html"].active) .gradient-footer{height:56px}
}
