/* ==========================================================================
   Eventos La Nave — sistema de diseño (oscuro + dorado)
   Mobile-first · breakpoints: 48rem (768px) y 64rem (1024px)
   ========================================================================== */

/* ---------- Fuentes (alojadas en local) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0908;
  --bg-2: #100e0c;
  --surface: #171510;
  --surface-2: #201d16;
  --line: rgba(203, 169, 92, 0.2);
  --line-strong: rgba(203, 169, 92, 0.45);

  --gold: #cba95c;
  --gold-bright: #e3c677;
  --gold-dark: #a8853a;
  --on-gold: #15110a;

  --text: #f4efe4;
  --muted: #b9b09d;
  --danger: #ff8a7a;
  --ok: #8fd19e;

  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-h3: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --fs-h2: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --fs-h1: clamp(2.6rem, 1.7rem + 4.4vw, 5.25rem);

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --sp-9: 6.5rem;

  --radius-s: 0.5rem;
  --radius: 1rem;
  --radius-l: 1.5rem;

  --header-h: 4.5rem;
  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);

  --shadow: 0 1.25rem 3rem -1rem rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 220ms;

  --z-header: 100;
  --z-fab: 90;
  --z-lightbox: 1000;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main {
  flex: 1 0 auto;
}
img,
svg,
iframe {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: var(--gold);
  color: var(--on-gold);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 600;
  border-radius: var(--radius-s);
  transform: translateY(-200%);
  transition: transform var(--t) var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Iconos ---------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Tipografía ---------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
  line-height: 1.15;
}
h1 em,
h2 em,
h3 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}
.lead {
  font-size: var(--fs-lg);
  color: var(--muted);
  max-width: 42rem;
  text-wrap: pretty;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
}
.text-link {
  color: var(--gold);
  border-bottom: 1px solid var(--line-strong);
  transition: color var(--t), border-color var(--t);
}
.text-link:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--sp-8);
}
.section--alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.section-head {
  display: grid;
  gap: var(--sp-4);
  margin-bottom: var(--sp-7);
}
.split {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}
.stack > * + * {
  margin-top: var(--sp-4);
}

@media (min-width: 48rem) {
  .section {
    padding-block: var(--sp-9);
  }
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }
  .split--reverse > :first-child {
    order: 2;
  }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: var(--fs-base);
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform var(--t) var(--ease), background var(--t), color var(--t),
    border-color var(--t), box-shadow var(--t);
}
.btn:active {
  transform: scale(0.97);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-dark));
  color: var(--on-gold);
  box-shadow: 0 0.5rem 1.75rem -0.5rem rgba(203, 169, 92, 0.55);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.9rem 2.25rem -0.6rem rgba(203, 169, 92, 0.75);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(203, 169, 92, 0.08);
}
.btn-sm {
  min-height: 2.75rem;
  padding: 0.55rem 1.2rem;
  font-size: var(--fs-sm);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background var(--t), border-color var(--t), backdrop-filter var(--t);
}
.site-header.is-scrolled,
.site-header.nav-open {
  background: rgba(10, 9, 8, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  min-height: 2.75rem;
}
.brand {
  gap: 0.7rem;
}
.brand-mark {
  flex: none;
  width: 3rem;
  height: 3rem;
  overflow: hidden;
  border-radius: 50%;
  background: #000; /* el PNG del logo tiene fondo negro: se recorta en círculo */
  box-shadow: 0 0 0 1px var(--line-strong);
}
.brand-mark img {
  width: 5.6rem;
  height: 5.6rem;
  max-width: none;
  margin: -1.3rem;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-name em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 1.25rem;
}
.nav-toggle .icon-close,
.nav-open .nav-toggle .icon-menu {
  display: none;
}
.nav-open .nav-toggle .icon-close {
  display: block;
}

.site-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  display: none;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-5) var(--gutter) var(--sp-6);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.nav-open .site-nav {
  display: flex;
}
.site-nav ul {
  display: grid;
}
.site-nav li a {
  display: block;
  padding: 0.9rem 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  transition: color var(--t);
}
.site-nav li a:hover,
.site-nav li a[aria-current="page"] {
  color: var(--gold);
}

@media (min-width: 64rem) {
  .nav-toggle {
    display: none;
  }
  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--sp-6);
    padding: 0;
    background: none;
    border: 0;
    max-height: none;
    overflow: visible;
  }
  .site-nav ul {
    display: flex;
    gap: var(--sp-5);
  }
  .site-nav li a {
    position: relative;
    padding: 0.5rem 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border: 0;
  }
  .site-nav li a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.1rem;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t) var(--ease);
  }
  .site-nav li a:hover::after,
  .site-nav li a[aria-current="page"]::after {
    transform: scaleX(1);
  }
}

/* ---------- Hero (portada) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + var(--sp-7)) 0 var(--sp-8);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 9, 8, 0.8) 0%, rgba(10, 9, 8, 0.55) 35%, rgba(10, 9, 8, 0.92) 85%, var(--bg) 100%),
    radial-gradient(60% 50% at 20% 60%, rgba(10, 9, 8, 0.55), transparent);
}
.hero-content {
  display: grid;
  gap: var(--sp-5);
  max-width: 46rem;
}
.hero-content .lead {
  color: #d8d0bf;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* ---------- Cabecera de página interior ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + var(--sp-8)) 0 var(--sp-7);
  background: radial-gradient(70% 90% at 85% 0%, rgba(203, 169, 92, 0.14), transparent 60%), var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero .container {
  display: grid;
  gap: var(--sp-4);
}

/* ---------- Tarjetas y listas ---------- */
.cards {
  display: grid;
  gap: var(--sp-4);
}
.card {
  position: relative;
  padding: var(--sp-6);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  transition: border-color var(--t), transform var(--t) var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.card h3 {
  margin-bottom: var(--sp-3);
}
.card p {
  color: var(--muted);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: var(--sp-4);
  border-radius: 50%;
  background: rgba(203, 169, 92, 0.1);
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-size: 1.4rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 500;
  line-height: 1.35;
}
.feature .icon {
  font-size: 1.75rem;
  color: var(--gold);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.tag {
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: var(--fs-sm);
  color: var(--text);
  background: rgba(203, 169, 92, 0.05);
}

.check-list {
  display: grid;
  gap: var(--sp-3);
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.check-list .icon {
  margin-top: 0.2em;
  color: var(--gold);
}
@media (min-width: 48rem) {
  .cards--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Imágenes y mosaico ---------- */
.photo {
  overflow: hidden;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--surface);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform 600ms var(--ease);
}
a.photo:hover img {
  transform: scale(1.04);
}
.photo--tall img {
  aspect-ratio: 4 / 5;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
.mosaic .photo img {
  aspect-ratio: 1;
}
.mosaic .photo--wide {
  grid-column: span 2;
}
.mosaic .photo--wide img {
  aspect-ratio: 16 / 9;
}
@media (min-width: 48rem) {
  .mosaic {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--sp-4);
  }
  .mosaic .photo {
    grid-column: span 2;
  }
  .mosaic .photo--wide {
    grid-column: span 4;
  }
  .mosaic .photo img {
    aspect-ratio: 4 / 3;
  }
  .mosaic .photo--wide img {
    aspect-ratio: 16 / 9;
  }
}

/* ---------- Galería + paginación ---------- */
/* Mosaico por columnas: cada foto conserva su proporción (vertical, apaisada o panorámica) */
.gallery {
  columns: 2;
  column-gap: var(--sp-3);
}
.gallery .photo {
  display: block;
  margin-bottom: var(--sp-3);
  break-inside: avoid;
  cursor: zoom-in;
}
.gallery .photo img {
  height: auto;
  aspect-ratio: auto;
}
@media (min-width: 48rem) {
  .gallery {
    columns: 3;
    column-gap: var(--sp-4);
  }
  .gallery .photo {
    margin-bottom: var(--sp-4);
  }
}

/* Variantes de foto para las páginas con contenido fijo */
.photo--43 img {
  aspect-ratio: 4 / 3;
}
.photo--sq img {
  aspect-ratio: 1;
}
.photo--pano img {
  aspect-ratio: 1600 / 439; /* proporción real de la foto panorámica: se ve entera */
}
.photo-card {
  display: grid;
  gap: var(--sp-3);
}
.photo-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
}
.photo-card figcaption .icon {
  color: var(--gold);
}
.photo-pair {
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 48rem) {
  .photo-pair {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
  }
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-7);
}
.pagination a,
.pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: border-color var(--t), color var(--t), background var(--t);
}
.pagination a:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}
.pagination .is-current {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-gold);
}
.pagination .is-gap {
  border-color: transparent;
  color: var(--muted);
}
.pagination-info {
  margin-top: var(--sp-4);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.empty {
  padding: var(--sp-8) var(--sp-4);
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-l);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  background: rgba(5, 4, 3, 0.94);
  touch-action: pan-y;
}
.lightbox.is-open {
  display: flex;
  animation: fade-in 200ms var(--ease);
}
.lightbox img {
  max-width: min(100%, 90rem);
  max-height: 86dvh;
  object-fit: contain;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow);
}
.lightbox-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(23, 21, 16, 0.85);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 1.35rem;
  transition: background var(--t), color var(--t);
}
.lightbox-btn:hover {
  background: var(--gold);
  color: var(--on-gold);
}
.lightbox-close {
  top: var(--sp-4);
  right: var(--sp-4);
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev {
  left: var(--sp-3);
}
.lightbox-next {
  right: var(--sp-3);
}
.lightbox-count {
  position: absolute;
  bottom: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-sm);
  color: var(--muted);
}
body.lightbox-open {
  overflow: hidden;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}

/* ---------- Contacto y mapa ---------- */
.contact-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  height: 100%;
}
.contact-card .card-icon {
  margin-bottom: var(--sp-2);
}
.contact-card strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  word-break: break-word;
}
.contact-card .label {
  font-size: var(--fs-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
a.contact-card:hover strong {
  color: var(--gold-bright);
}

.map {
  position: relative;
  min-height: 22rem;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--surface);
}
.map iframe {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.85) hue-rotate(180deg);
}
.map-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5);
  text-align: center;
  background: radial-gradient(60% 60% at 50% 40%, rgba(203, 169, 92, 0.12), transparent), var(--surface);
}
.map-placeholder p {
  max-width: 26rem;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.map-placeholder > .icon {
  font-size: 2.5rem;
  color: var(--gold);
}

/* ---------- Banda CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: radial-gradient(70% 120% at 50% 0%, rgba(203, 169, 92, 0.2), transparent 70%), var(--surface);
}
.cta-band .stack {
  display: grid;
  justify-items: center;
  gap: var(--sp-4);
}
.cta-band .btn-row {
  justify-content: center;
}
@media (min-width: 48rem) {
  .cta-band {
    padding: var(--sp-8);
  }
}

/* ---------- Texto legal ---------- */
.prose {
  max-width: 48rem;
  margin-inline: auto;
}
.prose h2 {
  font-size: var(--fs-h3);
  margin: var(--sp-7) 0 var(--sp-4);
  color: var(--gold);
}
.prose h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin: var(--sp-5) 0 var(--sp-2);
}
.prose p,
.prose li {
  color: #d3cbb9;
}
.prose p + p {
  margin-top: var(--sp-3);
}
.prose ul {
  margin: var(--sp-3) 0;
  padding-left: 1.25rem;
  list-style: disc;
}
.prose li + li {
  margin-top: var(--sp-2);
}
.prose a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--sp-8);
  padding-top: var(--sp-8);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  gap: var(--sp-7);
}
.footer-brand p {
  margin-top: var(--sp-3);
  max-width: 24rem;
  color: var(--muted);
}
.footer-col h2 {
  margin-bottom: var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-col ul {
  display: grid;
  gap: var(--sp-1);
}
.footer-col li,
.footer-col a {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: #d3cbb9;
}
.footer-col a {
  min-height: 2.75rem; /* zona táctil mínima de 44 px */
  align-items: center;
  transition: color var(--t);
}
.footer-col a:hover {
  color: var(--gold-bright);
}
.footer-col .icon {
  color: var(--gold);
}
.socials {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.socials a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background var(--t), color var(--t);
}
.socials a:hover {
  background: var(--gold);
  color: var(--on-gold);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-7);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.footer-bottom a:hover {
  color: var(--gold-bright);
}
@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

/* ---------- Botones flotantes ---------- */
.fab-wrap {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: var(--z-fab);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-3);
}
.fab {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  font-size: 1.6rem;
  box-shadow: var(--shadow);
  transition: transform var(--t) var(--ease), background var(--t);
}
.fab:hover {
  transform: translateY(-3px);
}
.fab-wa {
  background: #25d366;
  color: #0b2415;
}
.fab-top {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.2rem;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
}
.fab-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ---------- Animación de entrada ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Login y administración ---------- */
.auth-page {
  display: grid;
  place-items: center;
  flex: 1;
  padding: var(--sp-6) var(--gutter);
  background: radial-gradient(60% 60% at 50% 0%, rgba(203, 169, 92, 0.15), transparent), var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 26rem;
  padding: var(--sp-6);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
}
.auth-card h1 {
  margin-bottom: var(--sp-5);
  font-size: 2.25rem;
  text-align: center;
}
.field {
  display: grid;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.field label {
  font-size: var(--fs-sm);
  font-weight: 500;
}
.field input[type="text"],
.field input[type="password"],
.field input[type="file"] {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid rgba(203, 169, 92, 0.6); /* 3,8:1 sobre el fondo (mín. WCAG 3:1 en campos) */
  border-radius: var(--radius-s);
}
.field input:focus {
  border-color: var(--gold);
}
.field small {
  color: var(--muted);
}
.alert {
  margin-bottom: var(--sp-4);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-s);
  border: 1px solid;
  font-size: var(--fs-sm);
}
.alert-error {
  color: var(--danger);
  border-color: rgba(255, 138, 122, 0.5);
  background: rgba(255, 138, 122, 0.08);
}
.alert-success {
  color: var(--ok);
  border-color: rgba(143, 209, 158, 0.5);
  background: rgba(143, 209, 158, 0.08);
}

.admin {
  flex: 1;
  padding: var(--sp-6) 0 var(--sp-8);
}
.admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.admin-bar h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
}
.admin-panel {
  margin-bottom: var(--sp-6);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}
.admin-panel h2 {
  margin-bottom: var(--sp-4);
  font-size: var(--fs-h3);
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: var(--sp-4);
}
.admin-item {
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.admin-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.admin-item div {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--muted);
  word-break: break-all;
}
.btn-danger {
  border-color: rgba(255, 138, 122, 0.5);
  color: var(--danger);
}
.btn-danger:hover {
  background: rgba(255, 138, 122, 0.12);
  border-color: var(--danger);
}

/* ---------- Preferencias de movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

[hidden] {
  display: none !important;
}

/* <picture> no debe alterar el layout */
picture {
  display: contents;
}

/* Botón "Seleccionar archivo" con el estilo de la web */
.field input[type="file"]::file-selector-button {
  margin-right: 1rem;
  padding: 0.5rem 1.1rem;
  font: inherit;
  font-weight: 600;
  color: var(--gold-bright);
  background: rgba(203, 169, 92, 0.1);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--t), color var(--t);
}
.field input[type="file"]::file-selector-button:hover {
  background: var(--gold);
  color: var(--on-gold);
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
