:root {
  --bg: #12261c;
  --bg-deep: #0c1a13;
  --ink: #ece4cd;
  --muted: rgba(236, 228, 205, .68);
  --line: rgba(236, 228, 205, .28);
  --gutter: clamp(20px, 5vw, 64px);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Serif ligera tipo Cambria: Source Serif 4 Light; Cambria como respaldo */
  --grotesk: "Source Serif 4", Cambria, Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(1180px, 100% - var(--gutter) * 2); margin-inline: auto; }

/* Cabecera */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 18px var(--gutter);
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.brand img { width: 44px; height: 44px; opacity: .92; }
.top nav ul { list-style: none; margin: 0; padding: 0; width: min(236px, 58vw); }
.top nav li { border-bottom: 1px solid var(--line); }
.top nav li:first-child { border-top: 1px solid var(--line); }
.top nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 0; font-size: .74rem; font-weight: 400; letter-spacing: .02em;
  text-decoration: none;
}
.arr { position: relative; width: 18px; height: 1px; background: currentColor; flex: none; transition: width .25s ease; }
.arr::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.top nav a:hover .arr { width: 26px; }

/* Portada */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 90px var(--gutter);
}
.stage { width: min(760px, 100%); }
.hero h1 {
  margin: 0; font-family: var(--grotesk); font-weight: 300;
  font-size: 14pt; line-height: 1.25; letter-spacing: 0;
}
.titular {
  margin: 4px 0 clamp(18px, 3vh, 30px); font-family: var(--grotesk); font-weight: 300;
  font-size: 12pt; line-height: 1.3; color: var(--muted);
}
#field { display: block; width: 100%; height: 200px; }

/* Bloques */
.block { padding: clamp(72px, 12vw, 150px) 0 0; }
.label {
  margin: 0 0 clamp(26px, 4vw, 48px); padding-bottom: 14px; border-bottom: 1px solid var(--line);
  font-family: var(--sans); font-weight: 500; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
}

/* Galería */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(10px, 1.6vw, 20px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.grid button { display: block; width: 100%; padding: 0; border: 0; background: var(--bg-deep); cursor: zoom-in; overflow: hidden; aspect-ratio: 3 / 2; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s ease; }
.grid button:hover img { transform: scale(1.045); }

/* Contacto */
.contact { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
address { font-style: normal; }
.k { margin: 0 0 4px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.v { margin: 0 0 28px; font-family: var(--grotesk); font-weight: 300; font-size: 14pt; line-height: 1.45; }
.v a, .more a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .3s ease; }
.v a:hover, .more a:hover { background-size: 0 1px; background-position: 100% 100%; }
.more { margin: 0; font-size: .8rem; }
.map { position: relative; aspect-ratio: 4 / 3; background: var(--bg-deep); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Aviso de privacidad */
.legal { max-width: 74ch; font-size: .92rem; color: rgba(236, 228, 205, .86); }
.legal p { margin: 0 0 1.2em; }
.legal ul { margin: 0 0 1.4em; padding-left: 1.2em; }
.legal li { margin-bottom: .6em; }
.legal li::marker { color: var(--muted); }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal-title { margin: 0 0 2em !important; font-family: var(--grotesk); font-weight: 500; font-size: 1.15rem; line-height: 1.35; color: var(--ink); text-transform: uppercase; letter-spacing: .03em; }
.legal-title span { display: block; margin-top: 4px; font-size: .82rem; font-weight: 400; color: var(--muted); }
.legal h3 { margin: 2.2em 0 .7em; font-family: var(--grotesk); font-weight: 500; font-size: 1rem; color: var(--ink); }
.legal ol { margin: 0 0 1.4em; padding-left: 1.6em; }
.legal strong { font-weight: 500; color: var(--ink); }
.legal .updated { margin-top: 2.6em; font-size: .82rem; color: var(--muted); }

/* Pie */
.foot { margin-top: clamp(72px, 12vw, 150px); padding: 26px 0 34px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* Visor */
dialog#lb { border: 0; padding: 0; background: transparent; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; color: var(--ink); }
dialog#lb::backdrop { background: rgba(8, 17, 12, .94); }
dialog#lb[open] { display: grid; place-items: center; }
#lb-img { max-width: min(94vw, 1600px); max-height: 86vh; max-height: 86dvh; width: auto; height: auto; object-fit: contain; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: none; border: 0; color: var(--ink); cursor: pointer; font-family: var(--sans); }
.lb-close { top: 18px; right: var(--gutter); padding: 8px 0; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.lb-prev, .lb-next { top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; background: rgba(12, 26, 19, .55); }
.lb-prev { left: clamp(4px, 2vw, 28px); }
.lb-next { right: clamp(4px, 2vw, 28px); }
.lb-prev::before, .lb-next::before { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; border-top: 1.5px solid currentColor; border-left: 1.5px solid currentColor; }
.lb-prev::before { transform: translate(-30%, -50%) rotate(-45deg); }
.lb-next::before { transform: translate(-70%, -50%) rotate(135deg); }

@media (max-width: 820px) {
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .top nav a { font-size: .74rem; padding: 11px 0; }
}
