/* ════════════════════════════════════════════════════════════════
   PLANTILLA TALLER — 4FIX
   Para cambiar el color de marca de un cliente, toca SOLO --accent
   y --accent-2 aquí abajo. Todo lo demás se adapta.
   ════════════════════════════════════════════════════════════════ */

:root {
  --bg:      #0d0c0a;            /* casi negro cálido, nunca #000 */
  --bg-2:    #14120f;
  --bg-3:    #1c1915;            /* tarjetas */
  --cream:   #f1ece1;            /* texto principal, nunca #fff */
  --cream-2: #d8d0c0;
  --cream-3: #8e8574;            /* metadatos */
  --accent:  #d63a2e;            /* rojo Cadena1 (del cartel) */
  --accent-2:#a92b22;
  --accent-rgb: 214, 58, 46;   /* el mismo accent en RGB (para transparencias) */
  --accent-hover: #e64b3e;     /* accent un punto más claro */
  --btn-ink: #fff6f3;          /* texto sobre el botón de color */
  --bg-rgb:  13, 12, 10;       /* el fondo en RGB */
  --cream-rgb: 241, 236, 225;  /* el texto en RGB */
  --line:    rgba(241, 236, 225, 0.12);
  --radius:  14px;
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 350;
  line-height: 1.6;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.08;
  margin: 0;
}
h1 em, h2 em, .nav-brand em, .footer-brand em {
  font-style: italic;
  color: var(--accent);
}

/* ── Reveal on scroll ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }  /* red de seguridad */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition-duration: 0.3s; }
}

/* ── Botones ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 550;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: var(--btn-ink);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  border-color: var(--line);
  color: var(--cream);
  background: rgba(var(--cream-rgb), 0.04);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── NAV ──────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.35s, box-shadow 0.35s;
}
.nav.is-solid {
  background: rgba(var(--bg-rgb), 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: 1180px;
  margin-inline: auto;
  padding: 0.9rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--cream-2);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 1.5px;
  background: var(--accent);
  transition: right 0.3s var(--ease);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { right: 0; }
.btn-nav {
  padding: 0.55rem 1.1rem;
  background: var(--accent);
  color: var(--btn-ink);
  font-size: 0.95rem;
}
.ico { width: 1.05em; height: 1.05em; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .btn-nav { margin-left: auto; }
}

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 7rem 1.4rem 4.5rem;
  isolation: isolate;
  overflow: clip;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-bg img,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}
.hero-bg img { position: static; }
/* vídeo de fondo: intrusivo → sí se apaga con reduced-motion (queda la foto) */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
.hero-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--bg-rgb),0.72) 0%, rgba(var(--bg-rgb),0.55) 45%, rgba(var(--bg-rgb),0.92) 100%),
    rgba(var(--bg-rgb), 0.35);
}
.hero-mesh {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(38% 30% at 68% 30%, rgba(var(--accent-rgb), 0.16), transparent 70%),
    radial-gradient(30% 26% at 24% 72%, rgba(var(--accent-rgb), 0.10), transparent 70%);
  filter: blur(70px);
  animation: meshDrift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes meshDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation-duration: 44s; }
}

.hero-inner {
  max-width: 880px;
  text-align: center;
}
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1.05rem;
  background: rgba(var(--bg-rgb), 0.45);
  margin: 0 0 1.6rem;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #58c26a;
  box-shadow: 0 0 10px rgba(88, 194, 106, 0.9);
}
.hero-title {
  font-size: clamp(2.5rem, 6.5vw, 5.2rem);
  text-wrap: balance;
  max-width: 16ch;
  margin-inline: auto;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.6);
}
.hero-loc {
  font-size: clamp(1.02rem, 1.7vw, 1.25rem);
  color: var(--cream-2);
  margin: 1.3rem auto 0;
  max-width: 42ch;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}
.hero-foot { margin-top: 2.4rem; }
.hero-rating {
  color: var(--cream-2);
  font-size: 1rem;
  margin: 0 0 1.2rem;
}
.hero-rating strong { color: var(--accent); font-size: 1.15em; }
.hero-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-actions .btn { font-size: 1.08rem; padding: 1rem 2.1rem; }

/* ── FRANJA CONFIANZA ─────────────────────────────────────────── */
.trust { border-block: 1px solid var(--line); background: var(--bg-2); }
.trust-inner {
  max-width: 1180px;
  margin-inline: auto;
  padding: 1.6rem 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  text-align: center;
}
.trust-inner p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--cream-2);
}
.trust-inner em { color: var(--accent); }
@media (max-width: 760px) {
  .trust-inner { grid-template-columns: 1fr; gap: 0.7rem; }
}

/* ── SECCIONES ────────────────────────────────────────────────── */
.section {
  max-width: 1180px;
  margin-inline: auto;
  padding: 5.5rem 1.4rem;
}
.section-alt {
  max-width: none;
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.section-alt > * {
  max-width: 1180px;
  margin-inline: auto;
}
.section-head { margin-bottom: 2.8rem; }
.kicker {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.7rem;
  font-weight: 550;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.section-sub { color: var(--cream-2); max-width: 52ch; margin-top: 1rem; }
.section-sub a { color: var(--accent); }

/* ── SERVICIOS ────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.service-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s,
              opacity 0.7s var(--ease);
  will-change: transform;
}
.service-card:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 18px 44px -18px rgba(var(--accent-rgb), 0.25);
}
.service-ico {
  width: 2.1rem; height: 2.1rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.55rem; }
.service-card p { margin: 0; color: var(--cream-2); font-size: 0.98rem; }
@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

/* variante ligera: 4 tarjetas en 2x2, más aire y menos texto */
.services-4 { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.services-4 .service-card { padding: 2.2rem 2rem; display: flex; flex-direction: column; align-items: flex-start; }
.services-4 .service-card h3 { font-size: 1.45rem; }
.services-4 .service-card p { font-size: 1.02rem; }
@media (max-width: 620px) { .services-4 { grid-template-columns: 1fr; } }
.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.2rem;
}
.service-chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  font-size: 0.92rem;
  color: var(--cream-2);
  background: rgba(var(--cream-rgb), 0.04);
}

/* ── CÓMO TRABAJAMOS ──────────────────────────────────────────── */
.como-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 3.5rem;
  align-items: center;
}
.como-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.como-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.como-photo:hover img { transform: scale(1.05); }
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 1.7rem;
}
.steps li { display: flex; gap: 1.2rem; align-items: flex-start; }
.step-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--accent);
  line-height: 1.2;
  min-width: 2.4rem;
}
.steps h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.steps p { margin: 0; color: var(--cream-2); font-size: 0.98rem; }
@media (max-width: 880px) {
  .como-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .como-photo { aspect-ratio: 16 / 10; }
}

/* ── OPINIONES ────────────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.review-card {
  margin: 0;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s,
              opacity 0.7s var(--ease);
  will-change: transform;
}
.review-card:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 18px 44px -18px rgba(var(--accent-rgb), 0.25);
}
.review-card p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-style: italic;
  color: var(--cream);
  line-height: 1.5;
}
.review-card footer {
  margin-top: auto;
  color: var(--cream-3);
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.review-stars { color: var(--accent); letter-spacing: 0.1em; }
@media (max-width: 880px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ── HORARIO Y DÓNDE ──────────────────────────────────────────── */
.donde-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 3.5rem;
  align-items: center;
}
.hours { margin: 0 0 1.8rem; display: grid; gap: 0.55rem; }
.hours > div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.55rem;
  max-width: 460px;
}
.hours dt { color: var(--cream-2); }
.hours dd { margin: 0; font-weight: 550; }
.donde-info address {
  font-style: normal;
  color: var(--cream-2);
  margin-bottom: 1.6rem;
  line-height: 1.7;
}
.donde-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.donde-photo img { width: 100%; height: 100%; object-fit: cover; }
.donde-map {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: var(--bg-3);
}
.donde-map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 880px) { .donde-map { aspect-ratio: 4 / 3; } }
@media (max-width: 880px) {
  .donde-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .donde-photo { aspect-ratio: 16 / 10; }
}

/* ── FORMULARIO ───────────────────────────────────────────────── */
.contact-wrap { max-width: 720px; margin-inline: auto; }
.contact-form { display: grid; gap: 1.2rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.contact-form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: var(--cream-2);
}
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form textarea {
  font: inherit;
  color: var(--cream);
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  transition: border-color 0.25s;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form textarea { resize: vertical; }
.hp { position: absolute !important; left: -9999px; opacity: 0; height: 0; }
.check {
  grid-template-columns: auto 1fr;
  align-items: start;
  display: grid;
  gap: 0.7rem;
}
.check input { margin-top: 0.25rem; accent-color: var(--accent); }
.check a { color: var(--accent); }
.btn-submit {
  justify-self: start;
  position: relative;
  min-width: 10.5rem;
  justify-content: center;
}
.btn-check {
  width: 1.4em; height: 1.4em;
  position: absolute;
  opacity: 0;
}
.btn-check path {
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
}
.contact-form.is-sent .btn-label { opacity: 0; }
.contact-form.is-sent .btn-check { opacity: 1; }
.contact-form.is-sent .btn-check path {
  animation: drawCheck 0.5s var(--ease) forwards;
}
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.contact-form.is-sending .btn-submit { opacity: 0.6; pointer-events: none; }
.form-msg { margin: 0; min-height: 1.4em; color: var(--cream-2); font-size: 0.95rem; }
.form-msg.is-error { color: #e57373; }

/* ── FOOTER ───────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 3rem 1.4rem 5.5rem;   /* hueco extra para la barra móvil */
}
.footer-inner {
  max-width: 1180px;
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}
.footer-line { margin: 0.2rem 0; color: var(--cream-2); font-size: 0.95rem; }
.footer-line a { color: var(--cream-2); }
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
  text-align: right;
}
.footer-legal a { color: var(--cream-3); font-size: 0.9rem; text-decoration: none; }
.footer-legal a:hover { color: var(--cream); }
.footer-credit { margin: 0.6rem 0 0; color: var(--cream-3); font-size: 0.82rem; }
.footer-credit a { color: var(--cream-3); }
@media (max-width: 640px) {
  .footer-legal { align-items: flex-start; text-align: left; }
}

/* ── MARQUESINA DE MARCAS ─────────────────────────────────────── */
.marcas {
  overflow: clip;
  border-block: 1px solid var(--line);
  background: var(--bg);
  padding: 0.85rem 0;
}
.marcas-track {
  display: flex;
  gap: 1.6rem;
  width: max-content;
  white-space: nowrap;
  animation: marquee 36s linear infinite;
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  color: var(--cream-3);
}
.marcas-track span:nth-child(even) { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── FRANJA CTA ───────────────────────────────────────────────── */
.cta-band {
  position: relative;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: clip;
  isolation: isolate;
}
.cta-band-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/img/taller.webp") center 65% / cover no-repeat;
}
.cta-band-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 120% at 80% 50%, rgba(var(--accent-rgb), 0.10), transparent 70%),
    rgba(var(--bg-rgb), 0.78);
}
.cta-band-inner {
  max-width: 1180px;
  margin-inline: auto;
  padding: 3.6rem 1.4rem;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  text-wrap: balance;
}
.cta-band p {
  color: var(--cream-2);
  margin: 0.9rem auto 1.6rem;
  max-width: 48ch;
}
.cta-band-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── OPINIONES: avatares y enlace a Google ────────────────────── */
.review-who {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.review-avatar {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(var(--accent-rgb), 0.16);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.reviews-more { text-align: center; margin: 2.2rem 0 0; }

/* ── MODO POCAS RESEÑAS (body.sin-contadores) ─────────────────── */
.no-stat-line { display: none; }
body.sin-contadores .stat-line { display: none; }
body.sin-contadores .no-stat-line { display: block; }

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq-wrap { max-width: 780px; margin-inline: auto; }
.faq-list { display: grid; gap: 0.8rem; }
.faq-item {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  transition: border-color 0.3s;
}
.faq-item[open] { border-color: rgba(var(--accent-rgb), 0.45); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 3rem 1.15rem 1.3rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 550;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-item p {
  margin: 0;
  padding: 0 1.3rem 1.2rem;
  color: var(--cream-2);
  font-size: 0.98rem;
}

/* ── GRANO DE TEXTURA ─────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}

/* ── ACCESIBILIDAD ────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── REVELADO ESCALONADO EN REJILLAS ──────────────────────────── */
.services-grid .reveal:nth-child(2), .reviews-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.services-grid .reveal:nth-child(3), .reviews-grid .reveal:nth-child(3) { transition-delay: 0.24s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.06s; }
.services-grid .reveal:nth-child(5) { transition-delay: 0.18s; }
.services-grid .reveal:nth-child(6) { transition-delay: 0.3s; }

/* ── PARALLAX DEL HERO ────────────────────────────────────────── */
.hero-bg img { will-change: transform; transform: translateY(0) scale(1.08); }

/* ── GALERÍA ──────────────────────────────────────────────────── */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.galeria-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
}
.galeria-grid figure:nth-child(-n+3) { grid-column: span 2; }
.galeria-grid figure:nth-child(n+4) { grid-column: span 3; aspect-ratio: 16 / 8; }
.galeria-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s;
}
.galeria-grid figure:hover img { transform: scale(1.06); filter: saturate(1.15); }
@media (max-width: 760px) {
  .galeria-grid { grid-template-columns: 1fr 1fr; }
  .galeria-grid figure:nth-child(-n+3) { grid-column: span 1; }
  .galeria-grid figure:nth-child(n+4) { grid-column: span 1; aspect-ratio: 4 / 3; }
  .galeria-grid figure:last-child { grid-column: span 2; aspect-ratio: 16 / 8; }
}

/* variante de 8 fotos: dos filas de 3 + una de 2 */
.galeria-8 figure:nth-child(-n+6) { grid-column: span 2; aspect-ratio: 4 / 3; }
.galeria-8 figure:nth-child(n+7) { grid-column: span 3; aspect-ratio: 16 / 8; }
@media (max-width: 760px) {
  .galeria-8 figure:nth-child(-n+6) { grid-column: span 1; }
  .galeria-8 figure:nth-child(n+7) { grid-column: span 1; aspect-ratio: 4 / 3; }
  .galeria-8 figure:last-child { grid-column: span 2; aspect-ratio: 16 / 8; }
}

/* ── WHATSAPP FLOTANTE (solo escritorio; en móvil ya hay barra) ── */
.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 60;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1faa53;
  color: #fff;
  box-shadow: 0 10px 28px -8px rgba(31, 170, 83, 0.65);
  transition: transform 0.25s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); }
.wa-float svg { width: 1.8rem; height: 1.8rem; }
@media (max-width: 760px) {
  .wa-float { display: none; }
}

/* ── BARRA MÓVIL FIJA ─────────────────────────────────────────── */
.mobile-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  display: none;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.mobile-bar a {
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
}
.mobile-call { background: var(--accent); color: var(--btn-ink); }
.mobile-wa { background: #1faa53; color: #06130a; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; }
}

/* iOS: sin botón de play sobre el vídeo de fondo */
.hero-video::-webkit-media-controls{display:none!important}
.hero-video::-webkit-media-controls-start-playback-button{display:none!important;-webkit-appearance:none}
