/* ============================================================
   Atelier de Flores IDEM — styles.css
   Mobile-first. Paleta: estuco cálido + verde botánico + oro IDEM.
   ============================================================ */

/* ============ FUENTES AUTO-HOSPEDADAS (subset latin + latin-ext) ============ */

/* Jost 400 latin-ext */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/jost-400-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;
}
/* Jost 400 latin */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/jost-400-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;
}
/* Jost 500 latin-ext */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/jost-500-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;
}
/* Jost 500 latin */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/jost-500-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;
}
/* Jost 600 latin-ext */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/jost-600-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;
}
/* Jost 600 latin */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/jost-600-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;
}
/* Marcellus 400 latin-ext */
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/marcellus-400-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;
}
/* Marcellus 400 latin */
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/marcellus-400-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;
}

:root {
  /* Color (compuesta en OKLCH, servida en hex — ver DESIGN.md) */
  --crema: #f8f3ea;
  --arena: #efe6d4;
  --ink: #26221c;
  --ink-suave: #57503f;
  --verde: #2e4638;
  --verde-osc: #20332a;
  --verde-claro: #e7ede5;
  --oro: #b08a3e;
  --oro-claro: #d3ab60; /* oro legible sobre los fondos verdes (AA) */
  --rosa: #c9848f;
  --wa: #0d6b39;
  --wa-osc: #0a5230;
  --blanco-calido: #fdfbf7;

  /* Tipografía */
  --f-display: "Marcellus", "Times New Roman", serif;
  --f-texto: "Jost", "Segoe UI", system-ui, sans-serif;

  /* Espaciado y forma */
  --radio: 14px;
  --radio-s: 10px;
  --sombra: 0 10px 30px rgba(38, 34, 28, 0.10);
  --sombra-s: 0 4px 14px rgba(38, 34, 28, 0.08);

  /* Escala z semántica */
  --z-header: 100;
  --z-actionbar: 90;
  --z-lightbox: 200;

  /* Altura del header para anclas */
  --alto-header: 68px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--alto-header) + 12px);
}

body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(60px + env(safe-area-inset-bottom)); /* hueco para la action bar móvil */
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--verde); text-underline-offset: 3px; }
a:hover { color: var(--verde-osc); }

/* Doble anillo: el trazo verde contrasta en fondos claros y el halo crema
   en los oscuros (header, banda, footer, lightbox) — WCAG 1.4.11 */
:focus-visible {
  outline: 3px solid var(--verde-osc);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--crema);
  border-radius: 4px;
}

.container {
  width: min(100% - 2.5rem, 1100px);
  margin-inline: auto;
}

.container-estrecho { max-width: 760px; }

.visualmente-oculto {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -60px; left: 1rem;
  background: var(--verde);
  color: var(--crema);
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--radio-s) var(--radio-s);
  z-index: calc(var(--z-header) + 1);
  transition: top 0.2s ease-out;
}
.skip-link:focus { top: 0; color: var(--crema); }

/* ============ BOTONES ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--f-texto);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease-out, color 0.2s ease-out, border-color 0.2s ease-out, transform 0.15s ease-out;
}
.btn:active { transform: scale(0.98); }

.btn-primario { background: var(--verde); color: var(--crema); }
.btn-primario:hover { background: var(--verde-osc); color: var(--crema); }

.btn-luz { background: var(--crema); color: var(--verde-osc); }
.btn-luz:hover { background: var(--blanco-calido); color: var(--verde-osc); }

.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-osc); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--verde);
  border-color: var(--verde);
}
.btn-outline:hover { background: var(--verde); color: var(--crema); }

/* ============ HEADER ============ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  background: transparent;
  transition: background-color 0.25s ease-out, box-shadow 0.25s ease-out;
}

.site-header.solido,
.site-header.menu-abierto {
  background: var(--verde);
  box-shadow: 0 2px 14px rgba(32, 51, 42, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--alto-header);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--crema);
  text-decoration: none;
}
.brand:hover { color: #fff; }
.brand-mark { flex: none; }

.brand-text {
  font-family: var(--f-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand-text em {
  font-style: normal;
  color: var(--oro);
}

/* Sobre el hero (header transparente) la marca necesita sombra para leerse
   en las zonas claras de la foto; el oro sube un punto de luz */
.site-header:not(.solido):not(.menu-abierto) .brand-text {
  text-shadow: 0 1px 3px rgba(20, 31, 25, 0.55), 0 2px 14px rgba(20, 31, 25, 0.4);
}
.site-header:not(.solido):not(.menu-abierto) .brand-text em { color: var(--oro-claro); }
.site-header:not(.solido):not(.menu-abierto) .nav-menu a,
.site-header:not(.solido):not(.menu-abierto) .brand-mark {
  text-shadow: 0 1px 3px rgba(20, 31, 25, 0.5);
  filter: drop-shadow(0 1px 2px rgba(20, 31, 25, 0.5));
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  padding: 12px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--crema);
  border-radius: 2px;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}
.menu-abierto .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-abierto .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-abierto .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: var(--alto-header);
  left: 0; right: 0;
  background: var(--verde);
  display: none;
  flex-direction: column;
  padding: 0.5rem 1.25rem 1.25rem;
  box-shadow: 0 14px 24px rgba(32, 51, 42, 0.3);
}
.menu-abierto .nav-menu { display: flex; }

.nav-menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.4rem 0.5rem;
  color: var(--crema);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
}
.nav-menu a:hover { color: var(--oro-claro); }

.nav-cta {
  margin-top: 0.4rem;
  border: 2px solid var(--crema);
  border-radius: 999px;
  justify-content: center;
  font-weight: 600;
}
.nav-menu a.nav-cta:hover { background: var(--crema); color: var(--verde); }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.2rem;
    background: none;
    padding: 0;
    box-shadow: none;
  }
  .nav-menu a { padding: 0.4rem 0.85rem; font-size: 1rem; }
  .nav-cta { margin: 0 0 0 0.6rem; padding-inline: 1.3rem; }
}

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media img {
  object-fit: cover;
  object-position: 38% center; /* en vertical se ve la pared de flores, no la puerta */
}

.hero-velo {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(32, 51, 42, 0.52) 0%,
    rgba(32, 51, 42, 0.2) 38%,
    rgba(24, 37, 30, 0.62) 74%,
    rgba(20, 31, 25, 0.82) 100%
  );
}

.hero-content {
  position: relative;
  color: var(--blanco-calido);
  text-align: center;
  /* Padding vertical simétrico (= alto del header): el bloque queda centrado
     en la pantalla y, en pantallas bajas, no colisiona con el header fijo. */
  padding: var(--alto-header) 0;
}

.hero-kicker {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253, 251, 247, 0.9);
  margin-bottom: 1rem;
  text-wrap: balance;
}
@media (max-width: 480px) {
  .hero-kicker { font-size: 0.82rem; letter-spacing: 0.11em; }
}

.hero-title {
  font-size: clamp(2.5rem, 9vw, 4.4rem);
  letter-spacing: 0.01em;
  color: #fff;
  margin-bottom: 0.35em;
  text-shadow: 0 2px 24px rgba(20, 31, 25, 0.45);
}

.hero-sub {
  max-width: 34em;
  margin-inline: auto;
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  line-height: 1.55;
  color: rgba(253, 251, 247, 0.94);
}

.hero-estado {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.1rem auto 1.4rem;
  padding: 0.45rem 1.1rem;
  background: rgba(20, 31, 25, 0.55);
  border: 1px solid rgba(253, 251, 247, 0.25);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
}

.estado-punto {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(253, 251, 247, 0.6);
  flex: none;
}
.estado-punto.abierto { background: #7ed99b; box-shadow: 0 0 8px rgba(126, 217, 155, 0.8); }
.estado-punto.cerrado { background: #e9a3a3; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}
.hero-cta .btn { min-width: 158px; }

/* ============ SECCIONES ============ */

.section { padding: clamp(3.6rem, 9vw, 5.5rem) 0; }
.section-alt { background: var(--arena); }

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(2.2rem, 6vw, 3.2rem);
  text-align: center;
}

.glifo {
  display: block;
  color: var(--rosa);
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 0.7rem;
}

.section-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  color: var(--verde-osc);
}

.section-lede {
  color: var(--ink-suave);
  font-size: 1.05rem;
  max-width: 46em;
  margin-inline: auto;
}

/* ============ SERVICIOS ============ */

.servicios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

.servicio {
  background: var(--blanco-calido);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra-s);
  display: flex;
  flex-direction: column;
}

.servicio-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.servicio-body { padding: 1.3rem 1.4rem 1.5rem; }
.servicio-body h3 { font-size: 1.35rem; color: var(--verde-osc); margin-bottom: 0.4em; }
.servicio-body p { color: var(--ink-suave); font-size: 1rem; }

.enlace {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 600;
  color: var(--verde);
  text-decoration: none;
  border-bottom: 2px solid var(--rosa);
  padding-bottom: 2px;
}
.enlace:hover { color: var(--verde-osc); border-bottom-color: var(--verde-osc); }

/* La destacada rompe el patrón: foto + texto lado a lado en pantallas medias */
@media (min-width: 640px) {
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }

  .servicio--destacado {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
  }
  .servicio--destacado .servicio-media {
    flex: 0 0 46%;
  }
  .servicio--destacado .servicio-media img {
    aspect-ratio: auto;
    height: 100%;
  }
  .servicio--destacado .servicio-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2.2rem;
  }
  .servicio--destacado h3 { font-size: 1.7rem; }
  .servicio--destacado p { font-size: 1.05rem; }
}

@media (min-width: 860px) {
  .servicios-grid { grid-template-columns: repeat(3, 1fr); }
  .servicio--destacado { grid-column: 1 / -1; }
}

.domicilio {
  margin-top: 1.6rem;
  background: var(--verde-claro);
  border-radius: var(--radio);
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.domicilio-texto h3 { font-size: 1.3rem; color: var(--verde-osc); margin-bottom: 0.2em; }
.domicilio-texto p { color: var(--ink-suave); }

@media (min-width: 640px) {
  .domicilio {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ============ GALERÍA ============ */

.galeria-cols {
  columns: 2;
  column-gap: 0.9rem;
}
@media (min-width: 860px) { .galeria-cols { columns: 3; } }
@media (min-width: 1100px) { .galeria-cols { columns: 4; } }

.galeria-item {
  display: block;
  width: 100%;
  margin: 0 0 0.9rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  break-inside: avoid;
  border-radius: var(--radio-s);
  overflow: hidden;
}
.galeria-item img {
  width: 100%;
  border-radius: var(--radio-s);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.galeria-item:hover img { transform: scale(1.035); }

/* Galería colapsada: oculta a partir de la 9.ª foto → se ven las primeras 8.
   Para otro límite N, usa nth-child(n + N+1). El límite vive SOLO aquí. */
.galeria-cols.galeria--colapsada .galeria-item:nth-child(n + 9) { display: none; }

.galeria-mas { text-align: center; margin-top: 1.8rem; }
/* .btn fija display:inline-flex y anula el atributo hidden nativo; esta regla
   garantiza que el botón quede oculto sin JS o cuando no hace falta. No quitar. */
#galeriaVerMas[hidden] { display: none; }

.galeria-ig {
  text-align: center;
  margin-top: 1.2rem;
  color: var(--ink-suave);
}
.galeria-ig a { font-weight: 600; }

/* ============ NOSOTROS ============ */

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.nosotros-media img {
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.nosotros-body .glifo { text-align: left; margin-bottom: 0.5rem; }
.nosotros-body .section-title { text-align: left; }
.nosotros-body p { color: var(--ink-suave); }
.nosotros-body strong { color: var(--ink); }

.nosotros-lista {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
}
.nosotros-lista li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.35rem 0;
  font-weight: 500;
}
.nosotros-lista span { color: var(--rosa); flex: none; }

@media (min-width: 860px) {
  .nosotros-grid { grid-template-columns: 5fr 7fr; gap: 3.5rem; }
}

/* ============ RESEÑAS ============ */

.resenas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
}

.resena {
  margin: 0;
  background: var(--blanco-calido);
  border-radius: var(--radio);
  padding: 1.5rem 1.5rem 1.3rem;
  box-shadow: var(--sombra-s);
  display: flex;
  flex-direction: column;
}

.estrellas {
  color: var(--oro);
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.7rem;
}

.resena blockquote {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--ink);
  flex: 1;
}
.resena blockquote::before { content: "“"; }
.resena blockquote::after { content: "”"; }

.resena figcaption {
  font-weight: 600;
  color: var(--ink-suave);
  font-size: 0.95rem;
}

.resenas-cta { text-align: center; margin-top: 2rem; }

/* ============ FAQ ============ */

.faq-item {
  border-bottom: 1px solid rgba(87, 80, 63, 0.25);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 0.9rem 0.2rem;
  font-family: var(--f-texto);
  font-weight: 500;
  font-size: 1.08rem;
  cursor: pointer;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--f-display);
  font-size: 1.5rem;
  color: var(--verde);
  flex: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  padding: 0 0.2rem 1.2rem;
  color: var(--ink-suave);
  max-width: 65ch;
}

/* ============ BANDA CONSULTA ============ */

.banda {
  background: linear-gradient(160deg, var(--verde) 0%, var(--verde-osc) 100%);
  color: var(--crema);
  padding: clamp(3.5rem, 9vw, 5.5rem) 0;
  text-align: center;
}

.banda h2 {
  font-size: clamp(1.9rem, 5.5vw, 2.6rem);
  color: var(--crema);
  margin-bottom: 0.3em;
}

.banda-sub {
  color: rgba(248, 243, 234, 0.85);
  max-width: 38em;
  margin-inline: auto;
}

.banda-tel {
  display: inline-block;
  font-family: var(--f-display);
  font-size: clamp(2.3rem, 9vw, 3.6rem);
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.04em;
  margin: 0.9rem 0 0.2rem;
}
.banda-tel:hover { color: var(--oro-claro); }

.banda-horario {
  color: rgba(248, 243, 234, 0.8);
  font-size: 0.98rem;
  margin-bottom: 1.6rem;
}

.banda-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

/* ============ CONTACTO ============ */

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
}

.contacto-info address { font-style: normal; }
.contacto-dato { margin-bottom: 0.45em; }
.contacto-dato strong { font-family: var(--f-display); font-size: 1.25rem; font-weight: 400; }

.horario {
  width: 100%;
  border-collapse: collapse;
  margin: 1.3rem 0 1.6rem;
}
.horario th, .horario td {
  text-align: left;
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid rgba(87, 80, 63, 0.22);
  font-size: 1rem;
}
.horario th { font-weight: 600; color: var(--ink); }
.horario td { color: var(--ink-suave); }

.contacto-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.mapa {
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra-s);
  background: var(--verde-claro);
  min-height: 340px;
  display: grid;
}
.mapa iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

.mapa-facade {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 340px;
  width: 100%;
  padding: 1.5rem;
  border: 0;
  background: var(--verde-claro);
  color: var(--verde-osc);
  font-family: var(--f-texto);
  cursor: pointer;
  transition: background-color 0.2s ease-out;
}
.mapa-facade:hover { background: #dde6da; }
.mapa-facade span { font-weight: 600; font-size: 1.1rem; }
.mapa-facade small { color: var(--ink-suave); font-size: 0.88rem; }

.fachada-mini { margin: 1.2rem 0 0; }
.fachada-mini img {
  border-radius: var(--radio);
  aspect-ratio: 5 / 4; /* la imagen ya viene recortada a 5:4 desde el pipeline */
  object-fit: cover;
  width: 100%;
}
.fachada-mini figcaption {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: var(--ink-suave);
}

@media (min-width: 860px) {
  .contacto-grid { grid-template-columns: 5fr 6fr; gap: 3rem; }
}

/* ============ FOOTER ============ */

.site-footer {
  background: var(--verde-osc);
  color: rgba(248, 243, 234, 0.85);
  padding: clamp(2.8rem, 7vw, 4rem) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  padding-bottom: 2.2rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand {
  font-family: var(--f-display);
  font-size: 1.35rem;
  color: var(--crema);
  margin-bottom: 0.5em;
}
.footer-brand em { font-style: normal; color: var(--oro); }

.footer-col h3 {
  font-size: 1.02rem;
  color: var(--crema);
  letter-spacing: 0.06em;
  margin-bottom: 0.7em;
}
.footer-col p { font-size: 0.98rem; margin-bottom: 0.7em; }

.footer-col a { color: var(--crema); }
.footer-col a:hover { color: var(--oro-claro); }

.footer-links {
  list-style: none;
  margin: 0; padding: 0;
}
.footer-links a {
  display: inline-block;
  padding: 0.28rem 0;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(248, 243, 234, 0.18);
  padding: 1.1rem 0 1.3rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(248, 243, 234, 0.65);
}
.footer-bottom p { margin: 0; padding-inline: 1rem; }

/* ============ ACTION BAR MÓVIL ============ */

.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-actionbar);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--verde-osc);
  box-shadow: 0 -4px 16px rgba(32, 51, 42, 0.3);
}

.action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 56px;
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
}
.action-llamar { background: var(--verde); color: var(--crema); }
.action-llamar:hover { background: var(--verde-osc); color: var(--crema); }
.action-wa { background: var(--wa); color: #fff; }
.action-wa:hover { background: var(--wa-osc); color: #fff; }

@media (min-width: 860px) {
  .action-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ============ LIGHTBOX ============ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  background: rgba(20, 25, 20, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox-figura {
  margin: 0;
  max-width: min(92vw, 900px);
  text-align: center;
}
.lightbox-figura img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  margin-inline: auto;
  border-radius: var(--radio-s);
}
.lightbox-figura figcaption {
  color: rgba(248, 243, 234, 0.85);
  font-size: 0.95rem;
  margin-top: 0.7rem;
  padding-inline: 1rem;
}

.lightbox-cerrar,
.lightbox-flecha {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(248, 243, 234, 0.12);
  color: var(--crema);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease-out;
}
.lightbox-cerrar:hover,
.lightbox-flecha:hover { background: rgba(248, 243, 234, 0.28); }

.lightbox-cerrar { top: max(0.8rem, env(safe-area-inset-top)); right: 0.8rem; }
.lightbox-prev { left: 0.4rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0.4rem; top: 50%; transform: translateY(-50%); }

@media (min-width: 860px) {
  .lightbox-prev { left: 1.5rem; }
  .lightbox-next { right: 1.5rem; }
}

/* ============ REVEAL (mejora progresiva; sin JS todo es visible) ============ */

.reveal-listo {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-visto {
  opacity: 1;
  transform: none;
}

/* Stagger solo dentro de las listas (tarjetas/fotos hermanas) */
.servicios-grid .reveal-listo:nth-child(2),
.resenas-grid .reveal-listo:nth-child(2) { transition-delay: 0.07s; }
.servicios-grid .reveal-listo:nth-child(3),
.resenas-grid .reveal-listo:nth-child(3) { transition-delay: 0.14s; }
.servicios-grid .reveal-listo:nth-child(4),
.resenas-grid .reveal-listo:nth-child(4) { transition-delay: 0.21s; }

/* ============ MOVIMIENTO REDUCIDO ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal-listo { opacity: 1; transform: none; }
  .galeria-item:hover img { transform: none; }
}
