:root { color-scheme: light; --ink: #25313a; --orange: #e85d2a; --green: #283d36; --soft-green: #e8f0eb; --paper: #fff; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Trebuchet MS", sans-serif; }
body.gallery-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); box-shadow: 0 2px 8px rgba(37, 49, 58, .08); }
.header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { width: 200px; max-width: 46vw; height: auto; }
.navigation { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px 22px; }
.navigation a { color: #37433f; text-decoration: none; font-size: 14px; font-weight: 700; }
.navigation a:hover, .navigation a[aria-current="page"] { color: #a63b17; }
.hero { position: relative; min-height: min(680px, 72vh); display: flex; align-items: center; color: #fff; background: #39453d url('assets-proyectos/red2026-4.jpg') center 48% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 32, 29, .9), rgba(20, 32, 29, .62) 48%, rgba(20, 32, 29, .18)); }
.hero-content { position: relative; padding: 82px 0 94px; }
.eyebrow, .section-label { margin: 0 0 18px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.eyebrow { color: #ffd794; }
.section-label { color: #b94a20; }
h1, h2, h3 { font-family: Georgia, serif; line-height: 1.15; }
h1 { max-width: 800px; margin: 0; font-size: clamp(40px, 5vw, 62px); }
h2 { margin: 0; font-size: clamp(32px, 4vw, 42px); }
h3 { margin: 0 0 14px; font-size: 25px; }
p { line-height: 1.75; }
.intro { max-width: 620px; margin: 24px 0 30px; font-size: 19px; line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; max-width: 100%; min-height: 52px; align-items: center; justify-content: center; padding: 14px 23px; border-radius: 4px; background: var(--orange); color: #fff; font-size: 15px; font-weight: 700; text-align: center; text-decoration: none; transition: background .2s; }
.button:hover { background: #bb421b; }
.button-secondary { border: 1px solid #fff; background: transparent; }
.button-secondary:hover { background: rgba(255, 255, 255, .16); }
a:focus-visible, button:focus-visible { outline: 3px solid #ffc45b; outline-offset: 4px; }
.section { padding: 88px 0; }
.section-soft { background: var(--soft-green); }
.section-warm { background: #fffaf6; }
.section-heading { max-width: 760px; margin-bottom: 36px; }
.section-intro { max-width: 760px; font-size: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.split-copy p { font-size: 17px; }
.statement { margin: 25px 0; color: #53836d; font-family: Georgia, serif; font-size: 25px; line-height: 1.4; }
.text-link { color: #a63b17; font-weight: 700; text-underline-offset: 4px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: #fff; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 24px; }
.card-body p { margin: 0 0 16px; }
.cards-plain .card { background: transparent; border-top: 2px solid #578b75; padding-top: 22px; }
.cards-plain .card-body { padding: 0; }
.page-heading { padding: 72px 0; background: var(--soft-green); }
.page-heading p:last-child { margin-bottom: 0; }
.breadcrumb { display: inline-block; margin-bottom: 25px; color: #a63b17; font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 64px; align-items: start; }
.prose { max-width: 760px; }
.prose p { font-size: 17px; }
.prose h2 { margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 32px; }
.aside { padding: 25px; border-top: 3px solid var(--orange); background: #fffaf6; overflow-wrap: anywhere; }
.aside p { margin: 0 0 16px; }
.history-images { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 28px 0; }
.history-images img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
figcaption { grid-column: 1 / -1; color: #57645e; font-size: 13px; line-height: 1.5; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.values-grid article { border-top: 2px solid #578b75; padding-top: 20px; }
.project-list { display: grid; gap: 48px; }
.project-list article { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.project-list img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.project-list h2 { font-size: 32px; }
.project-list article + article { border-top: 1px solid #e8e8e3; padding-top: 48px; }
.carousel:not(.is-enhanced) { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.carousel:not(.is-enhanced) .photo-link:first-child { grid-column: 1 / -1; }
.carousel .photo-link img { width: 100%; aspect-ratio: 2 / 1; max-height: 540px; object-fit: cover; }
.carousel-viewport { position: relative; overflow: hidden; background: #283d36; }
.carousel-track { display: flex; transition: transform .4s ease; touch-action: pan-y; }
.carousel-track .photo-link { flex: 0 0 100%; min-width: 0; }
.carousel-arrow { position: absolute; z-index: 1; top: 50%; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%; background: rgba(20, 32, 29, .8); color: #fff; font: 30px/1 sans-serif; cursor: pointer; transform: translateY(-50%); }
.carousel-arrow:hover { background: var(--orange); }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.carousel-status { margin: 12px 0; color: #57645e; font-size: 14px; }
.carousel-thumbnails { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.carousel-thumbnail { min-height: 44px; padding: 0; overflow: hidden; border: 3px solid transparent; border-radius: 4px; background: #e8f0eb; cursor: pointer; opacity: .7; }
.carousel-thumbnail[aria-current="true"] { border-color: var(--orange); opacity: 1; }
.carousel-thumbnail:hover { opacity: 1; }
.carousel-thumbnail img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-link { position: relative; display: block; overflow: hidden; background: #e8f0eb; }
.photo-link[hidden] { display: none; }
.photo-link img { transition: transform .3s ease; }
.photo-link:hover img, .photo-link:focus-visible img { transform: scale(1.04); }
.photo-link:focus-visible { outline-offset: 3px; }
.photo-hint { position: absolute; right: 12px; bottom: 12px; padding: 8px 11px; border-radius: 4px; background: rgba(20, 32, 29, .85); color: #fff; font-size: 13px; font-weight: 700; }
.lightbox { width: min(1100px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 20px; border: 0; border-radius: 8px; background: #fff; color: var(--ink); }
.lightbox::backdrop { background: rgba(14, 25, 21, .88); }
.lightbox-header, .lightbox-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lightbox-header { margin-bottom: 12px; }
.lightbox-header h2 { font-size: 22px; }
.lightbox button { min-height: 44px; padding: 9px 14px; border: 1px solid #a63b17; border-radius: 4px; background: #fff; color: #a63b17; font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer; }
.lightbox button:hover { background: #fff4ed; }
.lightbox figure { margin: 0; }
.lightbox-media { position: relative; touch-action: pan-y; }
.lightbox img { width: 100%; max-height: calc(100vh - 250px); object-fit: contain; background: #1c2924; }
.lightbox .lightbox-arrow { position: absolute; top: 50%; display: grid; width: 48px; height: 48px; place-items: center; padding: 0; border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%; background: rgba(20, 32, 29, .8); color: #fff; font: 30px/1 sans-serif; transform: translateY(-50%); }
.lightbox .lightbox-arrow:hover { background: var(--orange); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox figcaption { margin-top: 10px; }
.lightbox-count { margin: 10px 0 0; color: #57645e; font-size: 14px; }
.credit { color: #57645e; font-size: 14px; font-weight: 700; }
.contact-band { padding: 65px 0; background: var(--green); color: #fff; }
.contact-band .section-label { color: #ffc078; }
.contact-band p { max-width: 700px; }
.copy-button { padding: 10px 14px; border: 1px solid #a63b17; border-radius: 4px; background: #fff; color: #a63b17; font: inherit; font-weight: 700; cursor: pointer; }
.copy-button:hover { background: #fff4ed; }
.copy-status { margin: 8px 0 0; font-size: 14px; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 30px 0; color: #66716d; font-size: 13px; }
.footer p { margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 16px; }
@media (max-width: 900px) {
  .header { padding: 16px 0; }
  .navigation { gap: 10px 16px; }
  .split, .content-grid { gap: 36px; }
  .cards, .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 0; }
  .site-header { position: static; }
  .header { align-items: flex-start; flex-direction: column; gap: 16px; }
  .navigation { justify-content: flex-start; }
  .logo { width: 160px; }
  .hero { min-height: 580px; background-position: 58% center; }
  .hero::before { background: linear-gradient(90deg, rgba(20, 32, 29, .88), rgba(20, 32, 29, .5)); }
  .hero-content { padding: 75px 0 85px; }
  h1 { font-size: clamp(32px, 10vw, 40px); overflow-wrap: anywhere; }
  .intro { font-size: 17px; }
  .section { padding: 62px 0; }
  .page-heading { padding: 52px 0; }
  .split, .content-grid, .project-list article { grid-template-columns: 1fr; gap: 28px; }
  .cards, .values-grid { grid-template-columns: 1fr; }
  .carousel .photo-link img { aspect-ratio: 3 / 2; }
  .carousel-thumbnails { gap: 4px; }
  .carousel-arrow { width: 44px; height: 44px; }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
  .lightbox { padding: 16px; }
  .lightbox-header h2 { font-size: 19px; }
  .lightbox button { padding: 8px 10px; font-size: 14px; }
}
@media (max-width: 400px) { .wrap { width: calc(100% - 36px); } }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: page-out .2s ease both; }
  ::view-transition-new(root) { animation: page-in .3s ease both; }
  .page-heading > .wrap, .hero-content { animation: content-in .45s ease both; }
  .cards:not(.cards-plain) .card { transition: transform .25s ease, box-shadow .25s ease; }
  .cards:not(.cards-plain) .card:hover, .cards:not(.cards-plain) .card:focus-within { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(37, 49, 58, .12); }
  @keyframes page-out { to { opacity: 0; } }
  @keyframes page-in { from { opacity: 0; } }
  @keyframes content-in { from { opacity: 0; transform: translateY(12px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .photo-link img, .carousel-track { transition: none; }
  .photo-link:hover img, .photo-link:focus-visible img { transform: none; }
}
