:root {
  --burgundy: #801820;
  --cream: #f2d39f;
  --line: rgba(128, 24, 32, .55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  color: var(--burgundy);
  background-color: #f5dba9;
  font-family: Georgia, "Times New Roman", serif;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background-color: #f5dba9;
  background-image: url("assets/ELEMENTOS_WEB_NAV_ONC_BACKGROUND_LANA.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.hero {
  position: relative;
  height: 100svh;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 5vh, 64px) 20px 60px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/ELEMENTOS_WEB_NAV_ONC_PORTADA.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.onc-logo { width: clamp(118px, 11vw, 190px); }

.hero-copy {
  position: absolute;
  top: auto;
  bottom: 82px;
  left: 50%;
  width: min(350px, 72vw);
  margin: 0;
  text-align: center;
  transform: translateX(-50%);
}

.hero-copy p {
  margin: 14px 0 0;
  font-size: clamp(16px, 1.25vw, 21px);
  font-size: clamp(18px, 1.5vw, 27px);
  line-height: 1.15;
}

.hero-copy strong {
  display: inline-block;
  margin-bottom: 8px;
  letter-spacing: .03em;
}

.scroll-cue {
  position: absolute;
  bottom: 22px;
  width: 38px;
  height: 38px;
}

.scroll-cue span {
  position: absolute;
  inset: 7px 10px 12px;
  border-right: 2px solid var(--burgundy);
  border-bottom: 2px solid var(--burgundy);
  transform: rotate(45deg);
}

.menus {
  padding: clamp(68px, 9vw, 130px) 24px clamp(80px, 10vw, 150px);
}

.section-title {
  width: min(877px, 88vw);
  margin: 0 auto clamp(48px, 7vw, 92px);
}

.cards {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 58px);
}

.card {
  border: 3px solid var(--burgundy);
  background: rgba(244, 216, 171, .38);
  box-shadow: 0 8px 24px rgba(86, 44, 20, .12);
}

.card-art { width: 100%; aspect-ratio: 1; object-fit: cover; }
.card-logo {
  width: 100%;
  height: auto;
  border-top: 3px solid var(--burgundy);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 3px solid var(--burgundy);
}

.card-actions a {
  min-height: 45px;
  display: grid;
  place-items: center;
  padding: 8px;
  text-decoration: none;
  text-transform: uppercase;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .035em;
  transition: background-color .2s, color .2s;
}

.card-actions a:hover { background: var(--burgundy); color: var(--cream); }
.card-actions a + a { border-left: 3px solid var(--burgundy); }
.card-actions.single { grid-template-columns: 1fr; }

.contact-block {
  width: min(920px, 100%);
  margin: clamp(54px, 7vw, 90px) auto 0;
  padding: clamp(24px, 4vw, 38px);
  border: 3px solid var(--burgundy);
  background: rgba(244, 216, 171, .5);
  text-align: center;
}

.contact-block p {
  margin: 0;
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.45;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 10px !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(14px, 1.35vw, 18px) !important;
}

.contact-links a {
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.gallery {
  width: 100%;
  overflow: hidden;
  padding: 0;
  border-top: 3px solid var(--burgundy);
  border-bottom: 3px solid var(--burgundy);
  background: transparent;
}

.gallery-track {
  display: flex;
  width: max-content;
  animation: gallery-marquee 42s linear infinite;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .gallery:hover .gallery-track { animation-play-state: paused; }
}

.gallery-card {
  position: relative;
  flex: 0 0 clamp(280px, 25vw, 480px);
  aspect-ratio: 1;
  overflow: hidden;
  border-right: 3px solid var(--burgundy);
  color: #fff;
  text-decoration: none;
}

.gallery-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background-color .35s ease;
}

.gallery-content {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 32px;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.45;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s ease, transform .35s ease;
}

.gallery-content img {
  width: min(210px, 72%);
  max-height: 105px;
  object-fit: contain;
}

.gallery-card:hover .gallery-overlay,
.gallery-card:focus-visible .gallery-overlay { background: rgba(0, 0, 0, .62); }
.gallery-card:hover .gallery-photo,
.gallery-card:focus-visible .gallery-photo { transform: scale(1.055); }
.gallery-card:hover .gallery-content,
.gallery-card:focus-visible .gallery-content { opacity: 1; transform: translateY(0); }

@keyframes gallery-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

footer {
  min-height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(20px, 5vw, 70px);
  background: rgba(244, 216, 171, .52);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}

footer a { text-decoration: none; }

@media (max-width: 760px) {
  .hero { height: 100svh; min-height: 700px; }
  .hero::before { background-size: cover; }
  .onc-logo { width: 122px; }
  .hero-copy {
    top: auto;
    bottom: 62px;
    left: 50%;
    width: min(300px, 78vw);
    margin: 0;
    transform: translateX(-50%);
  }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .card-actions a { font-size: 11px; min-height: 42px; }
  .gallery-track { animation-duration: 34s; }
  .gallery-card { flex-basis: 78vw; max-width: 390px; }
  .gallery-overlay { background: rgba(0, 0, 0, .48); }
  .gallery-content { opacity: 1; transform: none; }
}

@media (max-height: 800px) {
  .hero { min-height: 620px; }
  .onc-logo { width: 105px; }
  .hero-copy { bottom: 58px; width: min(290px, 74vw); }
  .scroll-cue { bottom: 10px; }
}

@media (max-width: 440px) {
  .menus { padding-inline: 16px; }
  .cards { grid-template-columns: 1fr; width: min(325px, 100%); gap: 30px; }
  .contact-block { padding: 24px 16px; }
  .contact-links { display: grid; gap: 8px; }
  .contact-links span { display: none; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-track { animation: none; }
}
