:root {
  --red: #e30613;
  --red-dark: #b5000b;
  --yellow: #ffd21a;
  --black: #101113;
  --ink: #202124;
  --muted: #6c6d71;
  --soft: #f7f5f2;
  --line: #dedbd7;
  --white: #ffffff;
  --container: 1180px;
  --shadow: 0 18px 55px rgba(16, 17, 19, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--soft); font-family: "DM Sans", Arial, sans-serif; line-height: 1.55; }
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(calc(100% - 48px), var(--container)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; color: var(--white); background: var(--black); border-radius: 0 0 8px 8px; transition: top .2s; }
.skip-link:focus { top: 0; }

.location-strip { color: rgba(255,255,255,.84); background: var(--black); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.strip-inner { display: flex; justify-content: space-between; gap: 20px; min-height: 36px; align-items: center; }
.strip-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.status-dot { width: 7px; height: 7px; background: var(--yellow); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,210,26,.15); }
.strip-address { color: rgba(255,255,255,.58); }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(0,0,0,.08); backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 32px; }
.brand { width: 188px; background: var(--black); }
.brand img { width: 100%; height: auto; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: .84rem; font-weight: 700; }
.main-nav > a:not(.nav-cta) { position: relative; padding: 8px 0; }
.main-nav > a:not(.nav-cta)::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--red); content: ""; transform: scaleX(0); transform-origin: right; transition: transform .25s; }
.main-nav > a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: inline-flex; align-items: center; gap: 12px; padding: 12px 17px; color: var(--white); background: var(--red); border-radius: 4px; transition: transform .2s, background .2s; }
.nav-cta:hover, .button-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--black); transition: transform .2s; }

.hero { position: relative; display: flex; min-height: min(760px, calc(100vh - 114px)); align-items: center; overflow: hidden; color: var(--white); background: var(--black); }
.hero-media { position: absolute; inset: 0; background: url("img/fachada-frontal.jpg") center 50% / cover no-repeat; transform: scale(1.02); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,10,12,.92) 0%, rgba(9,10,12,.63) 44%, rgba(9,10,12,.16) 100%), linear-gradient(0deg, rgba(9,10,12,.66), transparent 42%); }
.hero-content { position: relative; z-index: 1; padding: 110px 0 132px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--red); font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 22px; height: 3px; background: currentColor; }
.eyebrow.light { color: var(--yellow); }
.hero h1 { max-width: 680px; margin: 0; font-family: Manrope, Arial, sans-serif; font-size: clamp(3.1rem, 7vw, 6.4rem); line-height: .98; letter-spacing: -.075em; }
.hero-lead { max-width: 500px; margin: 28px 0 0; color: rgba(255,255,255,.8); font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 50px; padding: 0 20px; border: 1px solid transparent; border-radius: 3px; font-size: .82rem; font-weight: 800; transition: transform .2s, background .2s, border-color .2s; }
.button-primary { color: var(--white); background: var(--red); }
.button-ghost { color: var(--white); border-color: rgba(255,255,255,.48); }
.button-ghost:hover { border-color: var(--yellow); color: var(--yellow); transform: translateY(-2px); }
.hero-note { display: flex; align-items: center; gap: 15px; margin-top: 92px; }
.quote-mark { color: var(--yellow); font-family: Georgia, serif; font-size: 3rem; line-height: .6; }
.hero-note p { margin: 0; font-family: Manrope, Arial, sans-serif; font-size: .86rem; font-weight: 700; }
.scroll-hint { position: absolute; right: 42px; bottom: 34px; z-index: 1; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.7); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; writing-mode: vertical-rl; }
.scroll-hint span { color: var(--yellow); font-size: 1.25rem; }

.section-pad { padding: 120px 0; }
.intro-section { background: var(--white); }
.intro-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 100px; }
.section-heading h2 { max-width: 600px; margin: 0; font-family: Manrope, Arial, sans-serif; font-size: clamp(2.35rem, 4.3vw, 4.15rem); line-height: 1.02; letter-spacing: -.07em; }
.intro-copy { padding-top: 30px; font-size: 1rem; color: var(--muted); }
.intro-copy p { max-width: 600px; margin: 0 0 18px; }
.intro-copy .lead-copy { color: var(--ink); font-size: 1.28rem; line-height: 1.38; }
.text-link { display: inline-flex; align-items: center; gap: 16px; margin-top: 17px; color: var(--red); font-size: .86rem; font-weight: 800; }
.text-link span { font-size: 1.2rem; transition: transform .2s; }
.text-link:hover span { transform: translateX(5px); }

.section-dark { color: var(--white); background: var(--black); }
.centered { text-align: center; }
.centered .eyebrow { justify-content: center; }
.centered h2 { margin: 0 auto; }
.section-heading em, .contact-intro em { color: var(--yellow); font-style: normal; }
.purpose-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 970px; margin: 70px auto 0; }
.purpose-card { position: relative; min-height: 350px; padding: 38px 38px 42px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.045); }
.purpose-card.featured { color: var(--black); border-color: var(--yellow); background: var(--yellow); }
.purpose-number { display: block; color: rgba(255,255,255,.48); font-size: .73rem; font-weight: 800; letter-spacing: .12em; }
.featured .purpose-number { color: rgba(16,17,19,.56); }
.purpose-icon { margin: 44px 0 18px; color: var(--yellow); font-family: Georgia, serif; font-size: 2.8rem; line-height: 1; }
.featured .purpose-icon { color: var(--red); }
.purpose-card h3 { margin: 0 0 15px; font-family: Manrope, Arial, sans-serif; font-size: 1.65rem; letter-spacing: -.04em; }
.purpose-card p { margin: 0; color: rgba(255,255,255,.68); font-size: .94rem; }
.featured p { color: rgba(16,17,19,.72); }
.purpose-card .small-copy { margin-top: 14px; font-size: .81rem; }
.verse { max-width: 630px; margin: 74px auto 0; text-align: center; }
.verse-mark { display: block; color: var(--red); font-family: Georgia, serif; font-size: 4rem; line-height: .7; }
.verse p { margin: 18px 0 7px; font-family: Manrope, Arial, sans-serif; font-size: 1.1rem; font-weight: 700; }
.verse cite { color: var(--yellow); font-size: .77rem; font-style: normal; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.categories-section { background: #efede9; }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.heading-aside { max-width: 350px; margin: 0 0 8px; color: var(--muted); font-size: .96rem; }
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 64px; }
.category-card { position: relative; min-height: 305px; padding: 23px; overflow: hidden; color: var(--white); border-radius: 2px; }
.category-red { background: var(--red); }
.category-yellow { color: var(--black); background: var(--yellow); }
.category-dark { background: #25272b; }
.category-pink { background: #c91450; }
.category-blue { background: #28436e; }
.category-index { font-size: .67rem; font-weight: 800; letter-spacing: .08em; opacity: .66; }
.category-illustration { margin: 42px 0 28px; font-family: Georgia, serif; font-size: 3.35rem; font-weight: 400; line-height: 1; opacity: .9; }
.category-card h3 { margin: 0 0 10px; font-family: Manrope, Arial, sans-serif; font-size: 1.2rem; letter-spacing: -.045em; }
.category-card p { max-width: 175px; margin: 0; font-size: .79rem; line-height: 1.45; opacity: .73; }
.card-arrow { position: absolute; right: 22px; bottom: 20px; font-size: 1.4rem; }

.gallery-section { background: var(--white); }
.gallery-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr; grid-template-rows: 260px 230px; gap: 12px; margin-top: 62px; }
.gallery-item { position: relative; min-height: 0; padding: 0; overflow: hidden; border: 0; background: var(--black); cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.6,.25,1); }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-large { grid-row: span 2; }
.gallery-wide { grid-column: span 2; }
.gallery-overlay { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px; color: var(--white); background: linear-gradient(transparent, rgba(0,0,0,.75)); font-size: .77rem; font-weight: 700; text-align: left; }
.gallery-overlay b { display: grid; width: 28px; height: 28px; place-items: center; color: var(--black); background: var(--yellow); border-radius: 50%; font-size: 1.2rem; font-weight: 400; }

.contact-section { color: var(--white); background: var(--red); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 100px; padding-top: 100px; padding-bottom: 105px; }
.contact-intro h2 { max-width: 580px; margin: 0; font-family: Manrope, Arial, sans-serif; font-size: clamp(2.8rem, 5vw, 5.1rem); line-height: .98; letter-spacing: -.075em; }
.contact-intro > p:not(.eyebrow) { max-width: 450px; margin: 28px 0 32px; color: rgba(255,255,255,.82); font-size: 1rem; }
.contact-intro .button-primary { color: var(--black); background: var(--yellow); }
.contact-intro .button-primary:hover { background: var(--white); }
.contact-details { display: grid; align-content: center; gap: 36px; padding-left: 50px; border-left: 1px solid rgba(255,255,255,.35); }
.detail-block { display: grid; gap: 4px; }
.detail-label { margin-bottom: 8px; color: var(--yellow); font-size: .71rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.detail-block address, .detail-block a { margin: 0; color: var(--white); font-size: 1.04rem; font-style: normal; }
.detail-block a:hover { color: var(--yellow); }
.detail-badge { display: inline-flex; align-items: center; gap: 9px; width: fit-content; padding: 8px 12px; color: var(--white); border: 1px solid rgba(255,255,255,.38); border-radius: 2px; font-size: .71rem; font-weight: 700; }
.detail-badge span { color: var(--yellow); font-size: .65rem; }

.site-footer { color: rgba(255,255,255,.66); background: var(--black); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 52px; padding-bottom: 44px; }
.footer-brand { width: 165px; }
.footer-top p { margin: 0 auto 0 0; font-size: .78rem; line-height: 1.35; }
.footer-top strong { color: var(--yellow); }
.back-top { display: inline-flex; align-items: center; gap: 12px; color: var(--white); font-size: .75rem; font-weight: 700; }
.back-top span { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 17px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .68rem; }
.footer-bottom p { margin: 0; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 40px; background: rgba(8,9,10,.93); opacity: 0; pointer-events: none; transition: opacity .25s; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox figure { max-width: min(1100px, 94vw); max-height: 90vh; margin: 0; }
.lightbox img { max-width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox figcaption { margin-top: 13px; color: rgba(255,255,255,.72); font-size: .8rem; text-align: center; }
.lightbox-close { position: absolute; top: 18px; right: 24px; width: 44px; height: 44px; color: var(--white); border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: transparent; cursor: pointer; font-size: 1.7rem; line-height: 1; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1000px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .category-card { min-height: 260px; }
  .category-card:nth-child(4), .category-card:nth-child(5) { grid-column: span 1; }
  .contact-grid, .intro-grid { gap: 55px; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 36px), var(--container)); }
  .strip-inner { min-height: 42px; }
  .strip-address { display: none; }
  .header-inner { min-height: 68px; }
  .brand { width: 154px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; right: 0; left: 0; display: grid; gap: 0; padding: 12px 18px 20px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 15px 30px rgba(0,0,0,.1); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s, transform .2s; }
  .main-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .main-nav > a:not(.nav-cta) { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 15px; justify-content: center; }
  .hero { min-height: 670px; }
  .hero-content { padding: 86px 0 110px; }
  .hero h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .hero-lead { font-size: 1rem; }
  .hero-note { margin-top: 60px; }
  .scroll-hint { right: 18px; bottom: 25px; }
  .section-pad { padding: 82px 0; }
  .intro-grid, .purpose-grid, .contact-grid { grid-template-columns: 1fr; }
  .intro-grid { gap: 30px; }
  .intro-copy { padding-top: 0; }
  .purpose-grid { margin-top: 48px; }
  .purpose-card { min-height: auto; }
  .purpose-icon { margin-top: 34px; }
  .split-heading { display: block; }
  .heading-aside { margin-top: 25px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); margin-top: 45px; }
  .category-card { min-height: 255px; padding: 18px; }
  .category-illustration { margin: 30px 0 22px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 230px 180px 180px; margin-top: 45px; }
  .gallery-large { grid-row: span 2; }
  .gallery-wide { grid-column: span 2; }
  .contact-grid { gap: 50px; padding-top: 78px; padding-bottom: 82px; }
  .contact-details { padding-top: 35px; padding-left: 0; border-top: 1px solid rgba(255,255,255,.35); border-left: 0; }
  .footer-top { flex-wrap: wrap; }
  .footer-top p { margin-right: auto; }
  .back-top { width: 100%; justify-content: flex-end; }
  .footer-bottom { display: grid; gap: 7px; }
}

@media (max-width: 460px) {
  .category-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .category-card { min-height: 230px; }
  .category-card h3 { font-size: 1.03rem; }
  .category-card p { font-size: .73rem; }
  .gallery-grid { grid-template-rows: 190px 145px 145px; gap: 8px; }
  .gallery-overlay { padding: 12px; font-size: .68rem; }
  .gallery-overlay b { width: 24px; height: 24px; font-size: 1rem; }
  .lightbox { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
