/* La Delfina — hoja de estilos pública. Adaptada del mockup aprobado
   (04 - Mockups/ladelfina-mockup.html), con las correcciones de la sección 6
   a 12 del prompt de implementación: tipografías locales con rango de peso,
   grillas de servicios y contacto en columnas fijas (nunca auto-fit), y las
   tarjetas de servicio que se dan vuelta. */

/* ===== TIPOGRAFÍAS LOCALES =====
   Cormorant Garamond normal y Manrope son variables (ejes wght 300-700 y
   200-800): un solo archivo por rango unicode cubre todo el peso. La itálica
   de Cormorant y Pinyon Script son estáticas, sin rango. format('woff2') sin
   el sufijo "-variations" a propósito: es el hint que entienden todos los
   navegadores evergreen sin arriesgar que alguno rechace la fuente entera
   por no reconocer el formato. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  src: url('../fonts/cormorant-garamond-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  src: url('../fonts/cormorant-garamond-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/cormorant-garamond-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  font-display: swap;
}
@font-face {
  font-family: 'Pinyon Script';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/pinyon-script-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}
@font-face {
  font-family: 'Pinyon Script';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/pinyon-script-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  font-display: swap;
}

:root {
  --turquesa: #50B0B0;
  --turquesa-vibrante: #60C0C0;
  --turquesa-oscuro: #3F8F8F;
  --lila: #D0B0D0;
  --lila-rosa: #E0B0D0;
  --negro: #1A1A1A;
  --blanco: #FFFFFF;
  --crema: #FAF7F4;
  --gris-suave: #5A5A5A;
  --gris-claro: #E8E4E0;
  --sombra-suave: 0 4px 20px rgba(0,0,0,0.06);
  --sombra-media: 0 12px 40px rgba(0,0,0,0.10);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --script: 'Pinyon Script', cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--negro);
  line-height: 1.6;
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.header.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 2.5rem;
  box-shadow: var(--sombra-suave);
}
/* width:auto explícito, no implícito: el reset "img{max-width:100%}" +
   los atributos width/height del <img> (agregados para no saltar layout)
   hacen que dentro de este flex item el ancho se resuelva contra el
   contenedor en vez de contra el aspect-ratio real — el logo queda
   estirado. Con width:auto, el ancho se calcula desde el alto fijo y el
   aspect-ratio 325:200, como antes de sumar esos atributos. */
.header__logo img { height: 48px; width: auto; transition: height 0.4s; }
.header.scrolled .header__logo img { height: 40px; }
.nav { display: flex; gap: 2rem; align-items: center; }
.nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blanco);
  position: relative;
  transition: color 0.3s;
}
.header.scrolled .nav a { color: var(--negro); }
.nav a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 1px;
  background: var(--turquesa);
  transition: width 0.3s;
}
.nav a:hover::after { width: 100%; }
.nav a:hover { color: var(--turquesa); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span {
  width: 26px; height: 1.5px;
  background: var(--blanco);
  transition: 0.3s;
}
.header.scrolled .menu-toggle span { background: var(--negro); }

/* .header es position:fixed, así que un salto a #ancla (nav o el CTA
   secundario del hero) deja el título tapado atrás del header si la
   sección no reserva ese espacio. scroll-margin-top usa el alto del header
   en su estado .scrolled (logo 40px + 1rem de padding arriba y abajo ≈
   72px, que es el estado real al llegar: scroll-behavior:smooth ya cruzó
   el umbral de 50px de main.js mucho antes de frenar), más un poco de
   aire. Una regla para las cuatro secciones que el nav enlaza. */
#sobre, #servicios, #portfolio, #contacto {
  scroll-margin-top: 6rem;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blanco);
  overflow: hidden;
}
.hero__bg {
  /* La URL va inline en el HTML (index.php), no acá: sale de sitio.json con
     ?v=filemtime para el cache-busting. Si se repite acá y difiere del
     inline, el navegador la descarga dos veces. */
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.72);
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.15); }
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
  max-width: 900px;
  animation: fadeUp 1.4s ease-out;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__tag {
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  font-weight: 400;
}
.hero__title {
  font-family: var(--script);
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.9;
  font-weight: 400;
  margin-bottom: 1rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.hero__subtitle {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 3rem;
  opacity: 0.95;
  letter-spacing: 0.02em;
}
.hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 300px;
}
.hero__divider::before, .hero__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.5);
}
.hero__divider svg {
  width: 16px; height: 16px;
  color: var(--blanco);
  flex-shrink: 0;
}
.hero__ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.95rem 2.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn--primary {
  background: var(--turquesa);
  color: var(--blanco);
}
.btn--primary:hover {
  background: var(--turquesa-oscuro);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(80,176,176,0.4);
}
.btn--ghost {
  background: transparent;
  color: var(--blanco);
  border-color: rgba(255,255,255,0.6);
}
.btn--ghost:hover {
  background: var(--blanco);
  color: var(--negro);
}
/* .btn--ghost es blanco sobre transparente: pensado para el overlay oscuro del
   hero. En una sección de fondo claro (portfolio, eventos.php) ese texto
   queda invisible — de ahí esta variante, mismo sistema, borde turquesa. */
.btn--outline {
  background: transparent;
  color: var(--turquesa-oscuro);
  border-color: var(--turquesa);
}
.btn--outline:hover {
  background: var(--turquesa);
  color: var(--blanco);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--blanco);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: bobUp 2s ease-in-out infinite;
}
@keyframes bobUp {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
  50% { transform: translateX(-50%) translateY(-8px); opacity: 1; }
}

/* ===== SECCIONES GENERALES ===== */
.section {
  padding: 7rem 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
}
.section--full { max-width: none; padding-left: 0; padding-right: 0; }
/* Servicios parte su .section en dos divs (header + grid a ancho completo);
   sin esto, el padding vertical de cada uno se suma y duplica el espacio entre ambos. */
#servicios > .section:first-child { padding-bottom: 0; }
#servicios > .section.section--full { padding-top: 0; }
.section__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--turquesa);
  font-weight: 500;
  margin-bottom: 1rem;
  text-align: center;
}
.section__title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section__title em {
  font-style: italic;
  color: var(--turquesa);
}
.section__subtitle {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gris-suave);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem auto 3.5rem;
  max-width: 200px;
}
.ornament::before, .ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lila), transparent);
}
.ornament svg { color: var(--lila); }

/* ===== SOBRE (EL SALÓN) ===== */
.sobre {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.sobre__img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.sobre__img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.sobre__img::after {
  content: '';
  position: absolute;
  inset: -20px;
  border: 1px solid var(--lila);
  z-index: -1;
  pointer-events: none;
}
.sobre__text h2 { text-align: left; }
.sobre__text .ornament { margin-left: 0; }
.sobre__text p {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: var(--negro);
}
.sobre__firma {
  font-family: var(--script);
  font-size: 2.4rem;
  color: var(--turquesa);
  margin-top: 1rem;
}
.sobre__rol {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gris-suave);
}

/* ===== SERVICIOS =====
   Columnas FIJAS, nunca auto-fit: con auto-fit da hasta 5 columnas, y con 5
   ninguna secuencia de 5 tonos evita vecinos repetidos (12 no divide por 5,
   y a ~1280px quedaban celdas huérfanas grises). Los 4 breakpoints de abajo
   son todos divisores de 12. */
.servicios { background: var(--blanco); }
.servicios__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 1px;
  background: var(--gris-claro);
  border: 1px solid var(--gris-claro);
}
@media (min-width: 700px) {
  .servicios__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .servicios__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1400px) {
  .servicios__grid { grid-template-columns: repeat(6, 1fr); }
}

/* Tarjeta que gira: .servicio-cell es la celda de la grilla (fondo, tamaño);
   .servicio es la parte que rota; .servicio__cara--frente/--dorso son las
   dos caras, superpuestas con backface-visibility para que el dorso siga
   siendo contenido real (lo lee un lector de pantalla, lo indexa Google) y
   no algo que se genera o se saca del DOM. */
.servicio-cell {
  position: relative;
  background: var(--blanco);
  min-height: 260px;
}
.servicio-cell:hover,
.servicio-cell:focus-within {
  z-index: 1;
}
/* .servicio y .servicio__caras se anclan con inset:0 contra .servicio-cell, NO con
   height:100% — un height porcentual necesita que el ancestro tenga una altura
   DEFINIDA, y .servicio-cell solo tiene min-height. Con las dos caras en
   position:absolute (más abajo) no hay contenido en flujo normal que le dé altura
   a .servicio-cell, así que la cadena de 100% podía colapsar a 0 según el navegador
   — encontrado en un navegador real, no en el sandbox. inset:0 no depende de que el
   ancestro tenga altura definida. */
.servicio {
  position: absolute;
  inset: 0;
  perspective: 1200px;
  outline: none;
}
.servicio__caras {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.servicio-cell:hover .servicio__caras,
.servicio:focus-visible .servicio__caras,
.servicio.servicio--girada .servicio__caras {
  transform: rotateY(180deg);
}
.servicio__cara {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  text-align: center;
}
.servicio__cara--frente {
  background: var(--blanco);
}
.servicio__cara--dorso {
  background: var(--turquesa);
  transform: rotateY(180deg);
  color: var(--negro);
}
.servicio-cell[data-tono="turquesa-oscuro"] .servicio__cara--dorso { background: var(--turquesa-oscuro); }
.servicio-cell[data-tono="turquesa"] .servicio__cara--dorso { background: var(--turquesa); }
.servicio-cell[data-tono="turquesa-vibrante"] .servicio__cara--dorso { background: var(--turquesa-vibrante); }
.servicio-cell[data-tono="lila"] .servicio__cara--dorso { background: var(--lila); }
.servicio-cell[data-tono="lila-rosa"] .servicio__cara--dorso { background: var(--lila-rosa); }

.servicio__icon {
  width: 40px; height: 40px;
  margin: 0 auto 1.2rem;
  stroke-width: 1.2;
}
.servicio-cell[data-tono="turquesa-oscuro"] .servicio__icon { color: var(--turquesa-oscuro); }
.servicio-cell[data-tono="turquesa"] .servicio__icon { color: var(--turquesa); }
.servicio-cell[data-tono="turquesa-vibrante"] .servicio__icon { color: var(--turquesa-vibrante); }
.servicio-cell[data-tono="lila"] .servicio__icon { color: var(--lila); }
.servicio-cell[data-tono="lila-rosa"] .servicio__icon { color: var(--lila-rosa); }

.servicio__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.servicio__desc {
  font-size: 0.85rem;
  color: var(--gris-suave);
  line-height: 1.5;
}
.servicio__dorso-texto {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--negro);
}

/* Sin animación para quien la pidió a nivel sistema operativo: cruce de
   opacidad en vez de rotación 3D, mismo resultado. */
@media (prefers-reduced-motion: reduce) {
  .servicio__caras {
    transition: none;
    transform: none !important;
  }
  .servicio__cara { transition: opacity 0.4s; position: absolute; }
  .servicio__cara--frente { opacity: 1; }
  .servicio__cara--dorso { opacity: 0; transform: none; }
  .servicio-cell:hover .servicio__cara--frente,
  .servicio:focus-visible .servicio__cara--frente,
  .servicio.servicio--girada .servicio__cara--frente { opacity: 0; }
  .servicio-cell:hover .servicio__cara--dorso,
  .servicio:focus-visible .servicio__cara--dorso,
  .servicio.servicio--girada .servicio__cara--dorso { opacity: 1; }
}

/* ===== CARRUSEL ===== */
.carrusel { position: relative; background: var(--negro); padding: 0; }
.carrusel__track {
  display: flex;
  height: 75vh;
  min-height: 500px;
  position: relative;
}
.carrusel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  background-size: cover;
  background-position: center;
}
.carrusel__slide.active { opacity: 1; }
.carrusel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--blanco);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.carrusel__btn:hover { background: rgba(255,255,255,0.3); }
.carrusel__btn--prev { left: 2rem; }
.carrusel__btn--next { right: 2rem; }
.carrusel__dots {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.7rem;
  z-index: 3;
}
.carrusel__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: all 0.3s;
  cursor: pointer;
}
.carrusel__dot.active {
  background: var(--blanco);
  width: 28px;
  border-radius: 4px;
}

/* ===== PORTFOLIO ===== */
.portfolio { background: var(--crema); }
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.portfolio__vertodos { text-align: center; margin-top: 3.5rem; }
.evento {
  background: var(--blanco);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  display: flex;
  flex-direction: column;
}
.evento:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-media);
}
.evento__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: var(--gris-claro);
}
.evento__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}
.evento:hover .evento__img img { transform: scale(1.06); }
.evento__badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: rgba(255,255,255,0.95);
  padding: 0.35rem 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--turquesa-oscuro);
  font-weight: 500;
}
.evento__count {
  position: absolute;
  bottom: 1rem; right: 1rem;
  background: rgba(0,0,0,0.6);
  color: var(--blanco);
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.evento__count svg { width: 12px; height: 12px; }
.evento__body { padding: 1.8rem 1.6rem 2rem; }
.evento__fecha {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--lila);
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.evento__titulo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  line-height: 1.25;
}
.evento__desc {
  font-size: 0.92rem;
  color: var(--gris-suave);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.evento__ver {
  margin-top: 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--turquesa);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== EVENTOS.PHP (listado completo con filtro) ===== */
.eventos-listado__filtros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin: 0 auto 3.5rem;
  max-width: 900px;
}
.chip {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--gris-claro);
  color: var(--negro);
  background: var(--blanco);
  transition: all 0.25s ease;
}
.chip:hover { border-color: var(--turquesa); }
.chip--activo {
  background: var(--turquesa);
  border-color: var(--turquesa);
  color: var(--blanco);
}
.eventos-listado__vacio {
  text-align: center;
  color: var(--gris-suave);
  font-size: 0.95rem;
  padding: 2rem 0;
}

/* ===== LIGHTBOX (usado en evento.php, no en la home) ===== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20,20,20,0.95);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; animation: fade 0.3s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__inner {
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0;
  background: var(--blanco);
  overflow: hidden;
}
.lightbox__imgwrap {
  position: relative;
  background: var(--negro);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}
.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--blanco);
  font-size: 1.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.3); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__counter {
  position: absolute;
  bottom: 1rem; left: 50%;
  transform: translateX(-50%);
  color: var(--blanco);
  font-size: 0.85rem;
  background: rgba(0,0,0,0.5);
  padding: 0.4rem 1rem;
  border-radius: 20px;
}
.lightbox__info {
  padding: 3rem 2.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.lightbox__cat {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--lila);
  margin-bottom: 0.7rem;
}
.lightbox__title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.lightbox__fecha {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gris-suave);
  margin-bottom: 1.5rem;
}
.lightbox__desc {
  color: var(--negro);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.lightbox__thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gris-claro);
}
.lightbox__thumb {
  width: 60px; height: 60px;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.3s;
  overflow: hidden;
}
.lightbox__thumb.active { opacity: 1; border: 2px solid var(--turquesa); }
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  background: var(--blanco);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  box-shadow: var(--sombra-suave);
}

/* ===== EVENTO.PHP (ficha de un evento) ===== */
.evento-detalle__fecha {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gris-suave);
  text-align: center;
  margin-top: -0.6rem;
  margin-bottom: 0.5rem;
}
.evento-detalle__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3.5rem;
}
@media (min-width: 600px) {
  .evento-detalle__grid { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
}
@media (min-width: 900px) {
  .evento-detalle__grid { grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
}
.evento-detalle__foto {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gris-claro);
  cursor: pointer;
}
.evento-detalle__foto img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.evento-detalle__foto:hover img { transform: scale(1.06); }
.evento-detalle__cta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}

/* ===== EVENTO.PHP (404) ===== */
.evento-404__texto {
  text-align: center;
  color: var(--gris-suave);
  max-width: 500px;
  margin: 0 auto 2.5rem;
}
.evento-404 { text-align: center; }
.evento-404 .btn { display: inline-block; }

/* ===== CONTACTO ===== */
/* padding vertical propio, más chico que el .section base (7rem): sin las
   tarjetas, esta sección es más corta que las otras y no necesita tanto aire
   — y es el margen que hay que ceder para que entre en 1300×730 (MacBook Air
   de 15" con las barras del navegador puestas) sin achicar tipografía. */
.contacto {
  background: linear-gradient(135deg, var(--turquesa) 0%, var(--turquesa-vibrante) 50%, var(--lila) 100%);
  color: var(--blanco);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.contacto::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 40%);
  pointer-events: none;
}
.contacto > * { position: relative; z-index: 1; }
.contacto .section__eyebrow { color: rgba(255,255,255,0.85); }
.contacto .section__title { color: var(--blanco); }
.contacto .section__title em { color: var(--blanco); font-style: italic; }
.contacto__lead {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto 0.75rem;
  opacity: 0.95;
}
.contacto__btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 3rem;
  padding: 1.1rem 2.5rem;
  background: var(--blanco);
  color: var(--turquesa-oscuro);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.contacto__btn-wa:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 50px rgba(0,0,0,0.2);
}

/* ===== ARMADOR DE MENSAJE DE WHATSAPP =====
   Sin mockup propio: hereda la sobriedad de la sección de contacto. Sin
   cajas con borde grueso, sin labels flotantes. */
.armador {
  max-width: 560px;
  margin: 0.5rem auto 0;
  text-align: left;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 1rem 2.5rem;
}
/* Sin .armador__titulo: el H2 de la sección ya hizo la pregunta, un título
   propio del formulario la repetía. .armador__ayuda pasó de arriba (donde
   anunciaba algo que todavía no pasó) a debajo del botón (donde explica el
   resultado). */
.armador__ayuda {
  font-size: 0.85rem;
  opacity: 0.75;
  text-align: center;
  margin-top: 0.6rem;
  line-height: 1.5;
}
.armador__campo { margin-bottom: 0.7rem; }
.armador__campo label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}
.armador__campo input,
.armador__campo select,
.armador__campo textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--negro);
  font-family: var(--sans);
  font-size: 0.95rem;
}
/* Sin min-height: rows="3" en el HTML ya fija el alto (3 líneas, no 5).
   resize:vertical se mantiene — el que quiere escribir más, agranda. */
.armador__campo textarea { resize: vertical; }
.armador__fila { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
/* Nombre 2/3 + invitados 1/3: el nombre es el único campo requerido y el
   texto más largo de los dos, se lleva más ancho. */
.armador__fila--nombre { grid-template-columns: 2fr 1fr; }
.armador__enviar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  margin-top: 0.5rem;
  padding: 1.1rem 2rem;
  background: var(--blanco);
  color: var(--turquesa-oscuro);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.3s;
}
.armador__enviar:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
@media (max-width: 480px) {
  .armador__fila { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--negro);
  color: rgba(255,255,255,0.7);
  /* 2.5rem/1.75rem, no los 3rem/2rem de antes: eran el padding para cuatro
     bloques apilados (columnas, rayita, línea de marca, copyright) y ahora
     quedan dos — ver footer__cols y footer__small más abajo. */
  padding: 2.5rem 2.5rem 1.75rem;
  text-align: center;
}
/* Escribinos / Seguinos / El salón — redes y dirección, antes en
   .contacto__cards de la home, ahora en el pie de las tres páginas.
   1 columna de base, hasta --cols (nunca más de 3) desde 780px: los
   divisores de 3 son 3 y 1, el 2 queda prohibido. Con una sola columna
   presente, es :first-child — sin padding-top ni borde propio, así que
   sale centrada y sin hairline sola, sin necesidad de una regla aparte. */
.footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 700px;
  margin: 0 auto 2rem;
}
@media (min-width: 780px) {
  .footer__cols { grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 0; }
}
.footer__col {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.footer__col:first-child { padding-top: 0; border-top: none; }
@media (min-width: 780px) {
  .footer__col {
    padding: 0 1.5rem;
    border-top: none;
    border-left: 1px solid rgba(255,255,255,0.15);
  }
  .footer__col:first-child { padding-left: 0; border-left: none; }
  .footer__col:last-child { padding-right: 0; }
}
.footer__col__rotulo {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--turquesa);
  margin-bottom: 0.6rem;
}
.footer__col__valor { font-size: 0.9rem; }
.footer__col__valor a:hover { opacity: 0.75; }
.footer__col__redes { display: flex; gap: 1.2rem; justify-content: center; align-items: center; }
.footer__col__redes svg { width: 20px; height: 20px; stroke-width: 1.4; }
.footer p { font-size: 0.85rem; }
.footer__small { font-size: 0.75rem; opacity: 0.5; margin-top: 1rem; letter-spacing: 0.1em; }

/* ===== REVEAL ON SCROLL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .header { padding: 1rem 1.5rem; }
  .header.scrolled { padding: 0.8rem 1.5rem; }
  .nav {
    position: fixed;
    top: 0; right: -100%;
    width: 75%;
    height: 100vh;
    background: var(--blanco);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    transition: right 0.4s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
  }
  .nav.open { right: 0; }
  .nav a { color: var(--negro) !important; font-size: 0.95rem; }
  .menu-toggle { display: flex; z-index: 110; }
  .menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); background: var(--negro); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); background: var(--negro); }

  .section { padding: 5rem 1.5rem; }
  .sobre { grid-template-columns: 1fr; gap: 3rem; }
  .sobre__img { aspect-ratio: 4/3; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .carrusel__track { height: 60vh; min-height: 400px; }
  .carrusel__btn { width: 44px; height: 44px; }
  .carrusel__btn--prev { left: 0.8rem; }
  .carrusel__btn--next { right: 0.8rem; }
  .lightbox { padding: 0; }
  .lightbox__inner { grid-template-columns: 1fr; max-height: 100vh; height: 100vh; }
  .lightbox__imgwrap { min-height: 50vh; }
  .lightbox__info { padding: 2rem 1.5rem; }
  .hero__bg { background-attachment: scroll; }
}

/* Verificado a 320px: ningún dorso se corta con min-height:260px, y a 2
   columnas (< 700px) el texto más largo de dorso sigue entrando. */

