@font-face{font-family:"IM Fell DW Pica";src:url(/fonts/im-fell-dw-pica.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Open Sans";src:url(/fonts/open-sans.woff2) format("woff2");font-style:normal;font-weight:300 800;font-display:swap}
:root{--red:#830310;--white:#f8f7f4;--green:#006837;--ink:#2a1a12;--nav-h:3.5rem;--cta-h:var(--nav-h)}
*{box-sizing:border-box}
body{margin:0;padding-bottom:var(--cta-h);background:var(--white);color:var(--ink);font:1rem/1.5 "Open Sans",system-ui,sans-serif}
a{color:inherit}

/* top bar */
.bar{position:sticky;top:0;z-index:10;height:var(--nav-h);display:flex;align-items:center;justify-content:center;padding:0 1rem;color:var(--white);background:var(--red)}
.bar h1{margin:0;font-size:inherit}
.brand{display:flex;align-items:center}
.brand img{position:absolute;left:1rem;width:2.75rem;height:2.75rem;border:2px solid var(--white);border-radius:50%}
.brand .wordmark{position:static;border:0;filter:brightness(0) invert(1);width:auto;height:clamp(1.1rem,calc((100vw - 9.5rem)/7.8),1.8rem);border-radius:0}
.bar button{position:absolute;right:1rem;display:grid;place-items:center;width:2.75rem;height:2.75rem;padding:0;border:2px solid var(--white);border-radius:50%;background:none;color:var(--white);cursor:pointer}
.bar path{transform-origin:12px 12px;transition:transform .3s,opacity .3s}
.bar:has(:popover-open) path:nth-child(1){transform:rotate(45deg) translateY(6px)}
.bar:has(:popover-open) path:nth-child(2){opacity:0}
.bar:has(:popover-open) path:nth-child(3){transform:rotate(-45deg) translateY(-6px)}
@media (prefers-reduced-motion:reduce){.bar path{transition:none}}
.bar ul{position:fixed;inset:var(--nav-h) 1rem auto auto;margin:0;padding:.5rem 0;min-width:11rem;max-height:calc(100dvh - var(--nav-h) - var(--cta-h));overflow:auto;list-style:none;color:inherit;background:var(--red);border:0;box-shadow:0 .5rem 1rem #0002}
.bar li a{display:block;padding:.5rem 1rem;text-decoration:none}
.bar li a:hover{background:#ffffff1f}
.bar li.menu-lang{padding:.5rem 1rem .25rem;margin-top:.25rem;border-top:1px solid #fff6;font-size:.8rem;text-transform:uppercase;letter-spacing:.05em}
.bar li a[aria-current]{font-weight:700;border-left:3px solid var(--white)}

/* fixed bottom space for the CTA */
.cta{position:fixed;inset:auto 0 0;z-index:10;height:var(--cta-h);display:flex;align-items:center;justify-content:center;gap:.75rem;padding:.375rem 1rem;color:var(--white);background:var(--red)}
/* el verde queda reservado para los botones del CTA */
.cta a{display:grid;place-items:center;width:2.75rem;height:2.75rem;color:#fff;background:var(--green);border-radius:50%}

/* hero */
.hero{position:relative;overflow:hidden;min-height:calc(100svh - var(--nav-h) - var(--cta-h));display:grid;place-items:end center;background:#0f1211;color:#fff;text-align:center}
.bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:49% 50%}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 45%,#000a)}
.hero-text{position:relative;z-index:1;padding:2rem 1rem 3rem;text-shadow:0 .1rem .6rem #0008}
.hero-text p{margin:0;font-family:"IM Fell DW Pica",Georgia,serif;font-size:clamp(2.75rem,8vw,6.25rem);font-weight:400;line-height:1.2}
.hero-text span{white-space:nowrap}
@media (max-width:600px){.hero-text p,.block h2{font-size:clamp(2.25rem,11.8vw,4rem)}.hero-text span,.phrases span{display:block}}

/* home sections */
.block{max-width:72rem;margin:0 auto;padding:3rem 1rem 1rem;text-align:center;scroll-margin-top:var(--nav-h)}
.block h2{margin:0 0 1rem;color:var(--red);font-family:"IM Fell DW Pica",Georgia,serif;font-size:clamp(2.75rem,8vw,6.25rem);font-weight:400;line-height:1.2;text-wrap:balance}
.block p{max-width:42rem;margin:0 auto 1rem;text-align:left}
@media (max-width:600px){.block,.doc,.legal{padding-inline:clamp(.625rem,calc(50vw - 9.5rem),1.75rem)}}
/* cylindrical carousel (coffee); js/carousel.js places the photos on the inside of the cylinder */
.carousel{--w:clamp(6.5rem,30vw,13rem);position:relative;margin:2rem 0 0}
.view{overflow:hidden;height:calc(var(--w) * 2);perspective:calc(var(--w) * 4);touch-action:pan-y;cursor:grab;user-select:none}
.view.dragging{cursor:grabbing}
.view:focus-visible{outline:3px solid var(--red);outline-offset:-3px}
.ring{position:relative;height:100%;margin:0;padding:0;list-style:none;transform-style:preserve-3d}
.ring li{position:absolute;left:calc(50% - var(--w) / 2);top:calc(50% - var(--w) * .665);width:var(--w);aspect-ratio:602/800;cursor:pointer}
.ring img{display:block;width:100%;height:100%;object-fit:cover;border-radius:.75rem}

.photos{display:flex;flex-wrap:wrap;justify-content:center;gap:1rem;margin:2rem 0 0;padding:0;list-style:none}
.photos img{display:block;width:100%;height:auto;border-radius:.75rem}
.photos.single li{flex-basis:min(100%,24rem)}
.photos.wide li{flex-basis:min(100%,48rem)}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}

.legal{max-width:44rem;margin:0 auto;padding:1.5rem 1rem;text-align:left;font-size:.9rem}

/* legal / text pages */
.doc{overflow-wrap:break-word;max-width:46rem;margin:0 auto;padding:2rem 1rem 3rem;text-align:left}
.doc h1{font-size:clamp(1.6rem,5vw,2.2rem);line-height:1.2}
.doc h2{margin-top:2.5rem;padding-bottom:.25rem;border-bottom:2px solid var(--red)}
.doc h3{margin-top:1.5rem}
.doc a{color:var(--red)}
.doc .updated{margin-top:2.5rem;font-size:.9rem;opacity:.75}
