/* Base CSS compartida por las 5 plantillas verticales.
 * --color-* y --font-* se inyectan vía SSR (theme_style_block) desde
 * sites/_templates/{vertical}/manifest.json. Cada vertical puede tener su
 * propio css/style.css con overrides puntuales (que se cargan después).
 */

:root {
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 96px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --container-max: 1200px;
  /* Fallbacks por si el SSR no inyecta el theme block. */
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset minimal ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  /* Gradient vertical sutil: el último 40% de la página va virando a surface.
   * Aporta calidez sin competir con el hero ni con los bloques .services y
   * .reviews (que tienen surface sólido por encima). */
  background:
    linear-gradient(180deg,
      var(--color-bg, #fbf8f4) 0%,
      var(--color-bg, #fbf8f4) 55%,
      var(--color-surface, #f3ede4) 100%);
  background-attachment: fixed;
  color: var(--color-fg, #1f1812);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, picture, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent, #9a6b3f); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ── A11y ───────────────────────────────────────────────────────────────── */
.skip-link { position: absolute; left: -9999px; top: 0; padding: 12px 16px; background: var(--color-fg); color: var(--color-bg); z-index: 9999; }
.skip-link:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 3px; }

/* ── Utilities ──────────────────────────────────────────────────────────── */
.eyebrow { font-family: var(--font-body); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-fg-muted, #6b5d50); margin-bottom: var(--space-sm); }
.section-header { max-width: 720px; margin: 0 auto var(--space-lg); text-align: center; padding: 0 var(--space-md); }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); }
.loading-msg { text-align: center; color: currentColor; opacity: 0.7; padding: var(--space-lg); font-style: italic; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal.visible { opacity: 1; transform: none; }
}

/* ── Nav ────────────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(251, 248, 244, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.nav.is-scrolled { border-bottom-color: var(--color-border, #e3d9cb); }
.nav-inner { max-width: var(--container-max); margin: 0 auto; padding: 16px var(--space-md); display: flex; align-items: center; gap: var(--space-md); }
.nav-logo { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 500; color: var(--color-fg, #1f1812); letter-spacing: -0.01em; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-menu { flex-shrink: 0; }
.nav-logo:hover { text-decoration: none; }
.nav-menu { display: flex; gap: var(--space-md); }
.nav-menu a { color: var(--color-fg, #1f1812); font-size: 0.92rem; font-weight: 500; }
.nav-book-btn { background: var(--color-accent, #9a6b3f); color: var(--color-bg, #fbf8f4); border: none; padding: 10px 20px; border-radius: 999px; font-size: 0.88rem; font-weight: 500; transition: background 0.2s; }
.nav-book-btn:hover { background: var(--color-fg, #1f1812); }
.nav-hamburger { display: none; background: transparent; border: none; padding: 8px; flex-direction: column; gap: 4px; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--color-fg, #1f1812); transition: transform 0.2s; }

.mobile-overlay[hidden], .mobile-menu[hidden] { display: none; }
/* F.0.b iter2: causa raíz era doble.
   1) Las plantillas tenían .mobile-menu DENTRO del <header class="nav">
      y el nav usa backdrop-filter, que crea un stacking context propio
      con z-index: 100 global. Cualquier z-index del menú quedaba
      "atrapado" dentro y no superaba elementos del <main>. Fix: app-core.js
      mueve .mobile-menu y .mobile-overlay al <body> al iniciar, fuera del
      stacking context del nav.
   2) Cada vertical tiene una "cortina de intro" (body::before/after) con
      z-index 9999. Aunque visualmente sale del viewport, sigue por encima.
      Fix: menú a z-index 10000/10001, por encima de la cortina. */
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 10000; opacity: 0; transition: opacity 0.25s ease; }
.mobile-overlay.is-open { opacity: 1; }
/* Panel lateral con fondo OPACO 100% del color del theme. */
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  background: var(--color-bg, #fbf8f4);
  padding: 0;
  z-index: 10001;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.22,1,.36,1);
  flex-direction: column;
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.18);
  border-left: none;
  overflow-y: auto;
  /* iOS safe-area: respeta el notch en landscape */
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-menu:not([hidden]) { display: flex; }
.mobile-menu.is-open { transform: translateX(0); }
/* Header del panel con el nombre/logo del salón. Visualmente claro de qué es. */
.mobile-menu-header { padding: 28px 28px 20px; border-bottom: 1px solid var(--color-border, #e3d9cb); background: var(--color-surface, #f3ede4); }
.mobile-menu-header .mobile-menu-title { font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-fg, #1f1812); margin: 0; line-height: 1.1; letter-spacing: -0.01em; }
.mobile-menu-header .mobile-menu-subtitle { font-size: 0.78rem; color: var(--color-fg-muted, #6b5d50); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }
/* Body del panel — wrapper único para todos los items. app-core.js wrappea
   los <a> y .mobile-book-btn directos dentro de .mobile-menu-body si no
   existe (ver F.0.b en initHamburger). Hace consistente el styling sin
   reglas duplicadas para "estructura legacy". */
.mobile-menu-body { padding: 20px 28px 28px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mobile-menu-body a { color: var(--color-fg, #1f1812); font-size: 1.18rem; font-family: var(--font-heading); padding: 14px 0; border-bottom: 1px solid var(--color-border, rgba(0,0,0,0.06)); transition: color 0.18s, padding-left 0.2s; text-decoration: none; }
.mobile-menu-body a:hover { color: var(--color-accent, #9a6b3f); padding-left: 6px; text-decoration: none; }
.mobile-menu-body .mobile-book-btn { margin-top: 24px; }
.mobile-book-btn { background: var(--color-accent, #9a6b3f); color: #fff; border: none; padding: 16px 24px; border-radius: 999px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.mobile-book-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.18); }
.mobile-book-btn:active { transform: translateY(0); }
/* Animación icono hamburguesa → X cuando is-open */
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: clamp(520px, 75vh, 720px); display: flex; align-items: center; padding: 0 var(--space-md); overflow: hidden; }
.hero-image { position: absolute; inset: 0; z-index: 1; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Subido de 0.70→0.45→0.25 a 0.78→0.55→0.42. El gradient anterior dejaba
 * el lado derecho-inferior con solo 25% black, y si la foto del tenant es
 * clara el texto cream del headline caía a contraste pobre. La nueva curva
 * garantiza WCAG AA en todo el área del hero-content. Las 10 variantes F4
 * tienen sus propios overlays y no se ven afectadas. */
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(31,24,18,0.78) 0%, rgba(31,24,18,0.55) 60%, rgba(31,24,18,0.42) 100%); z-index: 2; }
.hero-content { position: relative; z-index: 3; max-width: 720px; margin: 0 auto; padding: 80px 0; color: #fbf8f4; text-align: center; }
.hero-headline { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 400; margin-bottom: var(--space-md); opacity: 0; animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards; }
.hero-subheadline { font-size: clamp(1rem, 2vw, 1.15rem); max-width: 520px; margin: 0 auto var(--space-md); opacity: 0.92; line-height: 1.5; opacity: 0; animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards; }
.hero-book-btn { background: var(--color-bg, #fbf8f4); color: var(--color-fg, #1f1812); border: none; padding: 16px 32px; border-radius: 999px; font-size: 1rem; font-weight: 500; transition: background 0.2s, transform 0.2s; margin-top: var(--space-sm); opacity: 0; animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards; }
.hero-book-btn:hover { background: var(--color-accent-soft, #c8a96a); transform: translateY(-1px); }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-headline, .hero-subheadline, .hero-book-btn { animation: none; opacity: 1; transform: none; }
  .hero-subheadline { opacity: 0.92; }
}

/* ── About ──────────────────────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); max-width: var(--container-max); margin: 0 auto; padding: var(--space-xl) var(--space-md); align-items: center; }
.about-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: var(--space-md); max-width: 28ch; }
.about-body { font-size: 1.02rem; color: var(--color-fg-muted, #6b5d50); line-height: 1.7; max-width: 48ch; }
.about-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); }

/* ── Sections layout ────────────────────────────────────────────────────── */
.services, .team, .gallery, .reviews, .contact, .products {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}
/* Dividers suaves en secciones sobre bg (sin background sólido propio) */
.about, .team, .gallery, .contact, .products { border-top: 1px solid color-mix(in srgb, var(--color-border, #e3d9cb) 55%, transparent); }
/* En desktop, cada sección ocupa al menos toda la altura visible */
@media (min-width: 1024px) {
  .services, .team, .gallery, .reviews, .contact, .products {
    min-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .services > .section-header, .reviews > .section-header { margin-top: 0; }
}
.services { background: var(--color-surface, #f3ede4); max-width: none; padding-left: max(var(--space-md), env(safe-area-inset-left)); padding-right: max(var(--space-md), env(safe-area-inset-right)); }
.services > .section-header, .services > .services-grid { max-width: var(--container-max); margin-left: auto; margin-right: auto; width: 100%; }

/* ── Services grid ──────────────────────────────────────────────────────── */
/*
 * Un solo grid uniforme con TODAS las cards alineadas. Los destacados se
 * distinguen por borde acento + badge "Destacado" encima del borde superior
 * (.service-card-badge top:-10px) pero comparten celda con los demás — no
 * se rompe la alineación si hay 1 destacado y N normales.
 *
 * El backend devuelve los servicios ya ordenados (featured DESC, sort_order
 * ASC, name ASC). Sin "+ Ver más" en la sección pública — se muestran todos.
 *
 * `body[data-show-price="false"]` oculta el precio en TODAS las plantillas
 * de una vez (toggle del panel admin → PUT /admin/config { web_show_prices }).
 */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-md); }

.service-card { position: relative; background: var(--color-bg, #fbf8f4); border: 1px solid var(--color-border, #e3d9cb); border-radius: var(--radius-md); padding: var(--space-md); display: flex; flex-direction: column; gap: 8px; transition: transform 0.2s, box-shadow 0.2s; }
.service-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(31,24,18,0.06); }
.service-card h3 { font-size: 1.4rem; font-family: var(--font-heading); }
.service-card p { color: var(--color-fg-muted, #6b5d50); font-size: 0.92rem; line-height: 1.55; flex: 1; }
.service-card .meta,
.service-card .service-card-meta { display: flex; justify-content: space-between; align-items: center; padding-top: var(--space-sm); border-top: 1px solid var(--color-border, #e3d9cb); margin-top: var(--space-sm); gap: var(--space-sm); }
.service-card .meta .price,
.service-card .service-card-price { font-size: 1.15rem; font-weight: 600; color: var(--color-accent, #9a6b3f); font-variant-numeric: tabular-nums; }
.service-card .meta .duration,
.service-card .service-card-duration { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; color: var(--color-fg-muted, #6b5d50); }
.service-card .service-card-duration svg { opacity: 0.7; }

/* Piloto Eduardo: card destacada — borde acento + glow sutil + badge. */
.service-card.featured { border-color: var(--color-accent, #9a6b3f); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent, #9a6b3f) 12%, transparent), 0 8px 24px rgba(31,24,18,0.04); }
.service-card.featured:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent, #9a6b3f) 18%, transparent), 0 12px 32px rgba(31,24,18,0.08); }
.service-card-badge { position: absolute; top: -10px; left: var(--space-md); background: var(--color-accent, #9a6b3f); color: var(--color-bg, #fff); padding: 4px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; box-shadow: 0 2px 6px rgba(31,24,18,0.15); }

/* Piloto Eduardo: ocultar precios cuando el tenant lo desactiva en panel.
   Cubre tanto la tarjeta legacy (.service-card .price) como las tarjetas de
   lista del editor nuevo (.item-card-precio: servicios/productos…). */
body[data-show-price="false"] .service-card .price,
body[data-show-price="false"] .service-card .service-card-price,
body[data-show-price="false"] .item-card-precio { display: none; }
body[data-show-price="false"] .service-card .meta,
body[data-show-price="false"] .service-card .service-card-meta { justify-content: flex-start; }

.service-card-btn { background: transparent; color: var(--color-accent, #9a6b3f); border: 1px solid var(--color-accent, #9a6b3f); padding: 10px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 500; margin-top: var(--space-sm); transition: background 0.2s, color 0.2s; }
.service-card-btn:hover { background: var(--color-accent, #9a6b3f); color: var(--color-bg); }

/* ── Staff grid ─────────────────────────────────────────────────────────── */
/* app-core.js#renderStaff genera: <div class="staff-card reveal">
 *   <div class="staff-photo"> <img> | <span class="staff-initials"/> </div>
 *   <h3>Nombre</h3>
 *   <div class="staff-services-tags"><span class="staff-tag">…</span></div>
 * </div>
 */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  gap: var(--space-lg);
  justify-content: center;
  justify-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.staff-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; width: 100%; }
.staff-card .staff-photo {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: var(--color-surface, #f3ede4);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.staff-card .staff-photo img { width: 100%; height: 100%; object-fit: cover; }
.staff-card .staff-initials { font-family: var(--font-heading); font-size: 3rem; font-weight: 500; color: var(--color-accent, #9a6b3f); letter-spacing: 0.02em; }
.staff-card h3 { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 500; margin: 0; }
.staff-services-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.staff-tag { font-size: 0.72rem; padding: 3px 10px; border-radius: 999px; background: var(--color-surface, #f3ede4); color: var(--color-fg-muted, #6b5d50); border: 1px solid var(--color-border, #e3d9cb); }
@media (max-width: 480px) {
  .staff-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 220px)); gap: var(--space-md); }
  .staff-card .staff-photo { max-width: 200px; }
  .staff-card .staff-initials { font-size: 2.5rem; }
}

/* ── Products grid ──────────────────────────────────────────────────────── */
/* app-core.js#renderProducts busca #products-grid y genera:
 *   <div class="product-card reveal">
 *     <div class="product-photo"><img … /></div>   (si photoUrl)
 *     <h4>Nombre</h4>
 *     <p class="product-description">…</p>          (si description)
 *     <div class="price">12,50 €</div>
 *   </div>
 */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 260px)); gap: var(--space-md); justify-content: center; max-width: 1100px; margin: 0 auto; }
.product-card { background: var(--color-bg, #fbf8f4); border: 1px solid var(--color-border, #e3d9cb); border-radius: var(--radius-md); padding: 14px; display: flex; flex-direction: column; gap: 8px; transition: transform 0.2s, box-shadow 0.2s; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.product-card .product-photo { aspect-ratio: 4/3; overflow: hidden; border-radius: calc(var(--radius-md) - 4px); background: var(--color-surface, #f3ede4); }
.product-card .product-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 500; margin: 4px 0 0; }
.product-card .product-description { color: var(--color-fg-muted, #6b5d50); font-size: 0.85rem; line-height: 1.45; margin: 0; }
.product-card .price { font-size: 1rem; font-weight: 600; color: var(--color-accent, #9a6b3f); margin-top: auto; padding-top: 8px; border-top: 1px solid var(--color-border, #e3d9cb); }

/* ── Gallery ────────────────────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 1/1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-grid figure:hover img { transform: scale(1.04); }

/* ── Reviews ────────────────────────────────────────────────────────────── */
.reviews { background: var(--color-surface, #f3ede4); max-width: none; }
.reviews > .section-header, .reviews > .reviews-grid { max-width: var(--container-max); margin-left: auto; margin-right: auto; padding-left: var(--space-md); padding-right: var(--space-md); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-md); }
.review-card { background: var(--color-bg, #fbf8f4); border-radius: var(--radius-md); padding: var(--space-md); border: 1px solid var(--color-border, #e3d9cb); }
.review-stars { color: var(--color-accent-soft, #c8a96a); font-size: 1.1rem; letter-spacing: 4px; margin-bottom: var(--space-sm); }
.review-card blockquote { margin: 0; font-family: var(--font-heading); font-size: 1.15rem; font-style: italic; line-height: 1.5; color: var(--color-fg, #1f1812); overflow-wrap: anywhere; hyphens: auto; }
.review-card footer { margin-top: var(--space-sm); font-size: 0.85rem; color: var(--color-fg-muted, #6b5d50); overflow-wrap: anywhere; }

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: stretch; }
.contact-info { display: flex; flex-direction: column; gap: var(--space-md); font-size: 0.98rem; line-height: 1.7; }
.contact-info p strong { display: block; font-family: var(--font-heading); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-fg-muted, #6b5d50); margin-bottom: 4px; }
.contact-book-btn { align-self: flex-start; background: var(--color-accent, #9a6b3f); color: var(--color-bg); border: none; padding: 14px 28px; border-radius: 999px; font-size: 1rem; font-weight: 500; margin-top: var(--space-sm); transition: background 0.2s; }
.contact-book-btn:hover { background: var(--color-fg, #1f1812); }
.contact-map, #map-container { aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden; background: var(--color-surface, #f3ede4); border: 1px solid var(--color-border, #e3d9cb); }
.contact-map iframe, .contact-map img, #map-container iframe, #map-container img { width: 100%; height: 100%; border: 0; display: block; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { background: var(--color-fg, #1f1812); color: var(--color-bg, #fbf8f4); padding: var(--space-lg) var(--space-md) var(--space-md); }
/* Flex centrado y robusto: aguanta #footer-social VACÍO (tenant sin redes)
   sin dejar huecos. Antes era grid 1fr/auto/1fr → la columna vacía dejaba un
   hueco que se veía "cortado". El copyright baja a su propia fila (basis 100%). */
.footer-inner { max-width: var(--container-max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-md) var(--space-lg); }
.footer-brand { font-family: var(--font-heading); font-size: 1.2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px var(--space-md); justify-content: center; }
.footer-links a { color: var(--color-bg, #fbf8f4); opacity: 0.8; font-size: 0.88rem; }
.footer-links a:hover { opacity: 1; }
.footer-social { display: flex; gap: 14px; justify-content: center; align-items: center; }
.footer-social:empty { display: none; }
.footer-social a { color: var(--color-bg, #fbf8f4); opacity: 0.75; display: inline-flex; align-items: center; transition: opacity 0.2s, transform 0.2s; }
.footer-social a:hover { opacity: 1; transform: translateY(-1px); }
.footer-social svg { width: 20px; height: 20px; display: block; }

/* Social icons en el nav (desktop only) */
.nav-social { display: flex; gap: 12px; align-items: center; }
.nav-social a { color: var(--color-fg-muted, #6b5d50); display: inline-flex; align-items: center; transition: color 0.2s, transform 0.2s; }
.nav-social a:hover { color: var(--color-accent, #9a6b3f); transform: translateY(-1px); }
.nav-social svg { width: 18px; height: 18px; display: block; }
@media (max-width: 1023px) {
  .nav-social { display: none; }
}
.footer-copy { flex-basis: 100%; width: 100%; text-align: center; font-size: 0.78rem; opacity: 0.55; margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid rgba(251,248,244,0.1); }
.footer-copy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-copy a:hover { color: var(--color-accent); }
/* Footer book button como FAB flotante — siempre accesible. Se oculta
 * cuando la nav está visible (class .is-hidden añadida por app-core.js
 * con IntersectionObserver sobre el hero-book-btn). */
.footer-book-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  background: var(--color-accent, #9a6b3f);
  color: var(--color-bg, #fbf8f4);
  border: none;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s, opacity 0.3s, box-shadow 0.2s;
  font-family: inherit;
}
.footer-book-btn:hover { background: var(--color-fg, #1f1812); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.22); }
.footer-book-btn.is-hidden { opacity: 0; pointer-events: none; transform: translateY(10px); }
@media (max-width: 480px) {
  .footer-book-btn { bottom: 14px; right: 14px; padding: 12px 20px; font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-book-btn { transition: opacity 0.2s; }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about, .contact-grid { gap: var(--space-md); }
}
@media (max-width: 768px) {
  .nav-menu, .nav-book-btn { display: none; }
  .nav-hamburger { display: flex; }
  .about, .contact-grid { grid-template-columns: 1fr; }
  .about { padding: var(--space-lg) var(--space-md); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-links, .footer-social { justify-content: center; }
}
@media (max-width: 480px) {
  .hero-content { padding: 60px 0; }
  .services, .team, .gallery, .reviews, .contact { padding: var(--space-lg) var(--space-md); }
  .section-header { margin-bottom: var(--space-md); }
}
