/* =====================================================================
   LA FONTE — MUROS DE AGUA
   Hoja de estilos principal
   Paleta inspirada en el agua · Tipografías: Fraunces (títulos) + Figtree (texto)
   ===================================================================== */

/* ---------- Variables de marca ---------- */
:root {
  /* Colores */
  --deep:    #0C3A40;   /* petróleo profundo (marca) */
  --deep-2:  #082B30;   /* aún más profundo (footer / nosotros) */
  --teal:    #1C6B6F;   /* teal medio (botones / links) */
  --teal-2:  #155357;   /* teal hover */
  --aqua:    #8FC2BC;   /* aqua claro (acentos) */
  --sand:    #C9B79C;   /* arena / piedra (calidez) */
  --mist:    #E9F1EF;   /* agua pálida (fondos suaves) */
  --paper:   #F6FAF8;   /* casi blanco fresco (fondo) */
  --ink:     #122E2C;   /* texto principal */
  --ink-soft:#42605D;   /* texto secundario */
  --line:    #DCE7E4;   /* bordes suaves */
  --white:   #ffffff;
  --wa:      #25D366;   /* verde WhatsApp */

  /* Tipografías */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Figtree', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Medidas */
  --container: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -24px rgba(8, 43, 48, .35);
  --shadow-soft: 0 10px 30px -18px rgba(8, 43, 48, .25);
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2.5rem); }
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--mist { background: var(--mist); }
.section--deep { background: var(--deep); color: #DCEDE9; }
/* Compensa la altura del header fijo al saltar a una sección */
.section[id] { scroll-margin-top: 96px; }

/* ---------- Tipografía / títulos ---------- */
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--deep);
}
.section--deep .section-title { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-intro { margin-top: 1rem; color: var(--ink-soft); font-size: 1.075rem; }
.section--deep .section-intro { color: #B8D2CD; }

/* Eyebrow + regla vertical (la "columna de agua": elemento de firma) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.eyebrow .rule {
  display: inline-block;
  width: 2px; height: 26px;
  background: linear-gradient(180deg, var(--aqua), var(--teal));
  border-radius: 2px;
}
.eyebrow--light { color: var(--aqua); }
.eyebrow--light .rule { background: linear-gradient(180deg, #fff, var(--aqua)); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease, color .25s ease;
  will-change: transform;
}
.btn--solid { background: var(--teal); color: #fff; box-shadow: var(--shadow-soft); }
.btn--solid:hover { background: var(--teal-2); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.btn--sm { padding: .7rem 1.2rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* =====================================================================
   HEADER + NAVEGACIÓN
   ===================================================================== */
.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--deep); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 1200;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  transition: background-color .35s ease, box-shadow .35s ease, padding .35s ease;
  padding-block: .5rem;
}
.site-header.is-scrolled { background: var(--paper); box-shadow: 0 6px 24px -16px rgba(8,43,48,.4); }
.site-header__inner { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand__logo { height: clamp(56px, 11vw, 74px); width: auto; max-width: 220px; border-radius: 8px; object-fit: contain; }
.brand__name {
  display: flex; flex-direction: column; line-height: 1;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 500;
  color: #fff; transition: color .35s ease;
}
.brand__sub { font-family: var(--sans); font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; opacity: .8; margin-top: .25rem; }
.is-scrolled .brand__name { color: var(--deep); }

/* Botón hamburguesa (mobile) */
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; padding: 10px; z-index: 1100; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s ease, opacity .3s ease, background-color .35s ease; }
.is-scrolled .nav-toggle span { background: var(--deep); }
.nav-open .nav-toggle span { background: var(--deep); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Navegación: en mobile es un panel lateral */
.primary-nav {
  position: fixed; inset: 0 0 0 auto;
  width: min(80vw, 330px);
  background: var(--paper);
  box-shadow: -20px 0 60px -30px rgba(8,43,48,.6);
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.5,.05,.2,1);
  display: flex; flex-direction: column; justify-content: center;
  gap: 1.6rem; padding: 5rem 2rem 2rem;
  z-index: 1050;
}
.nav-open .primary-nav { transform: translateX(0); }
.primary-nav ul { display: flex; flex-direction: column; gap: 1.3rem; }
.primary-nav a { font-size: 1.15rem; color: var(--deep); font-weight: 500; transition: color .2s ease; }
.primary-nav a:hover { color: var(--teal); }
.nav__cta { margin-top: .5rem; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
  filter: sepia(0.22) saturate(1.12) brightness(0.95);
}
/* El zoom suave se aplica solo si el hero es una imagen (no sobre el video) */
img.hero__bg { animation: heroZoom 22s ease-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(35,26,14,0) 0%, rgba(35,26,14,0) 55%, rgba(35,26,14,.18) 100%);
}
.hero__content {
  padding-block: 8rem 4rem;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: clamp(1.8rem, 5vw, 3rem);
}
.hero__text { max-width: 540px; }
/* Logo grande del hero: arriba en mobile, a la derecha en escritorio */
.hero__logo { order: -1; }
.hero__logo img {
  display: block; height: auto;
  width: clamp(240px, 72vw, 420px);
  border-radius: 12px;
  filter: drop-shadow(0 14px 38px rgba(0,0,0,.4));
}
.hero__title {
  font-family: var(--serif); font-weight: 300; font-optical-sizing: auto;
  font-size: clamp(2.7rem, 8vw, 5.4rem);
  line-height: 1.02; letter-spacing: -0.015em;
  color: var(--deep);
  text-shadow: 0 1px 2px rgba(255,255,255,.6), 0 2px 22px rgba(255,255,255,.45);
}
.hero__lead {
  margin-top: 1.4rem; max-width: 540px;
  font-size: clamp(1.05rem, 2.3vw, 1.3rem); color: #1C3D3B;
  text-shadow: 0 1px 10px rgba(255,255,255,.5);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
/* En el hero claro, el botón "fantasma" va en oscuro para leerse sobre el beige */
.hero__actions .btn--ghost { background: rgba(255,255,255,.4); color: var(--deep); border-color: rgba(12,58,64,.45); }
.hero__actions .btn--ghost:hover { background: var(--deep); color: #fff; border-color: var(--deep); }

/* Botón para activar el sonido del agua */
.hero__sound {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: 1.5rem; padding: .3rem 0;
  color: var(--deep); font-size: .95rem; font-weight: 600;
  border-bottom: 1px solid transparent; opacity: .9;
  transition: color .2s ease, opacity .2s ease;
}
.hero__sound:hover { color: var(--teal); opacity: 1; }
.hero__sound .ico { width: 22px; height: 22px; flex: 0 0 auto; }
.hero__sound .ico--on { display: none; }
.hero__sound.is-playing { color: var(--teal); opacity: 1; }
.hero__sound.is-playing .ico--off { display: none; }
.hero__sound.is-playing .ico--on { display: block; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(12,58,64,.4); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 4px;
  background: var(--deep); transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0%{opacity:0;transform:translate(-50%,0)} 30%{opacity:1} 100%{opacity:0;transform:translate(-50%,14px)} }

/* =====================================================================
   PRODUCTOS (tarjetas)
   ===================================================================== */
.cards-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.product {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product:hover .product__media img { transform: scale(1.06); }
.product__body { padding: 1.7rem 1.5rem 1.8rem; }
.product__body h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--deep); margin-bottom: .4rem; }
.product__body p { color: var(--ink-soft); font-size: .96rem; }

.product--cta {
  background: linear-gradient(160deg, var(--deep), var(--teal));
  color: #fff; justify-content: center; align-items: flex-start; text-align: left;
  border: none;
}
.product--cta .product__body { padding: 2rem 1.6rem; }
.product--cta h3 { color: #fff; }
.product--cta p { color: #CFE5E1; margin-bottom: 1.2rem; }

/* =====================================================================
   GALERÍA + LIGHTBOX
   ===================================================================== */
.gallery { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.gallery__item {
  display: block; width: 100%; padding: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm); overflow: hidden; position: relative;
  line-height: 0; box-shadow: var(--shadow-soft);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8,43,48,.45));
  opacity: 0; transition: opacity .3s ease;
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover::after { opacity: 1; }
/* Etiqueta con el tipo de muro, siempre visible sobre la foto */
.gallery__label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 2rem 1.3rem 1.15rem;
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.2;
  color: #fff; text-align: left; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(8,43,48,.82));
}

.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6,30,33,.92); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
  padding: 1.5rem;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { max-width: 92vw; max-height: 86vh; }
.lightbox__figure img { max-width: 92vw; max-height: 86vh; border-radius: 8px; object-fit: contain; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.lightbox__close, .lightbox__nav {
  position: absolute; color: #fff; background: rgba(255,255,255,.12);
  border-radius: 50%; width: 52px; height: 52px; font-size: 2rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .2s ease, transform .2s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 1.2rem; right: 1.2rem; font-size: 1.8rem; }
.lightbox__prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* =====================================================================
   BENEFICIOS
   ===================================================================== */
.benefits {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.benefit {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem; box-shadow: var(--shadow-soft);
  transition: transform .3s ease;
}
.benefit:hover { transform: translateY(-4px); }
.benefit__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--mist); color: var(--teal); margin-bottom: 1.1rem;
}
.benefit__icon svg { width: 28px; height: 28px; }
.benefit h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--deep); margin-bottom: .45rem; }
.benefit p { color: var(--ink-soft); font-size: .96rem; }

/* =====================================================================
   NOSOTROS
   ===================================================================== */
.about { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.about__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.about__text p { color: #C9E0DC; margin-top: 1rem; }
.about__text p:first-of-type { margin-top: 1.4rem; }
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem;
  margin-top: 2.2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.15);
}
.stats li { display: flex; flex-direction: column; gap: .2rem; }
.stats strong { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: #fff; line-height: 1; }
.stats span { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--aqua); }

/* =====================================================================
   TESTIMONIOS
   ===================================================================== */
.testimonials {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.testimonial {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; box-shadow: var(--shadow-soft); position: relative;
}
.testimonial::before {
  content: "\201C"; font-family: var(--serif); font-size: 4rem; color: var(--aqua);
  position: absolute; top: .3rem; left: 1.1rem; line-height: 1; opacity: .6;
}
.testimonial blockquote { font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--deep); line-height: 1.5; padding-top: 1.4rem; }
.testimonial figcaption { margin-top: 1.2rem; display: flex; flex-direction: column; gap: .15rem; }
.testimonial__name { font-weight: 600; color: var(--ink); }
.testimonial__role { font-size: .85rem; color: var(--ink-soft); }

/* =====================================================================
   FAQ (acordeón)
   ===================================================================== */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  text-align: left; padding: 1.4rem 0; font-size: 1.12rem; font-weight: 600; color: var(--deep);
}
.faq__icon { position: relative; width: 18px; height: 18px; flex: 0 0 auto; transition: transform .3s ease; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: var(--teal); border-radius: 2px;
}
.faq__icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__icon::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq__question[aria-expanded="true"] .faq__icon { transform: rotate(135deg); }
.faq__answer { overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.faq__answer p { padding: 0 0 1.4rem; color: var(--ink-soft); max-width: 65ch; }

/* =====================================================================
   CONTACTO
   ===================================================================== */
.contact { display: grid; gap: 2rem; }
.contact__row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  transition: color .2s ease;
}
.contact__row:hover:not(.contact__row--static) { color: var(--teal); }
.contact__ico {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  background: var(--mist); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact__ico svg { width: 22px; height: 22px; }
.contact__row span:last-child { display: flex; flex-direction: column; }
.contact__row strong { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); font-weight: 600; }
.contact__map { margin-top: 1.4rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.contact__map iframe { width: 100%; height: 280px; border: 0; }

/* Formulario */
.contact__form-wrap { background: var(--mist); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.4rem); }
.contact__form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--deep); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .8rem 1rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(28,107,111,.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.contact__note { font-size: .85rem; color: var(--ink-soft); text-align: center; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--deep-2); color: #BFD8D4; padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: center; padding-bottom: 2rem; }
.site-footer__brand { display: flex; align-items: center; gap: 1rem; }
.site-footer__brand img { height: 60px; width: auto; max-width: 200px; border-radius: 8px; object-fit: contain; }
.site-footer__name { font-family: var(--serif); color: #fff; font-size: 1.2rem; }
.site-footer__tag { font-size: .9rem; color: #9CBDB8; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; }
.site-footer__nav a { color: #BFD8D4; font-size: .95rem; transition: color .2s ease; }
.site-footer__nav a:hover { color: var(--aqua); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.5rem; font-size: .85rem; color: #8FB1AC; }

/* =====================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ===================================================================== */
.wa-float {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 1500;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,.6);
  animation: waFloat 2.8s ease-in-out infinite;
  transition: transform .25s ease;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); }
@keyframes waFloat { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-6px); } }

/* Botón flotante: descargar catálogo (esquina inferior izquierda, compacto) */
.catalog-float {
  position: fixed; left: 1.1rem; bottom: 1.1rem; z-index: 1500;
  height: 44px; padding: 0 .95rem 0 .8rem; border-radius: 999px;
  background: var(--teal); color: #fff;
  display: inline-flex; align-items: center; gap: .4rem;
  box-shadow: 0 8px 22px -8px rgba(28,107,111,.5);
  font-weight: 600; font-size: .85rem; letter-spacing: .01em; text-decoration: none;
  transition: transform .25s ease, background .25s ease;
}
.catalog-float svg { width: 18px; height: 18px; flex-shrink: 0; }
.catalog-float span { white-space: nowrap; }
.catalog-float:hover { transform: scale(1.05); background: var(--deep); }

/* =====================================================================
   ANIMACIONES DE APARICIÓN (scroll reveal)
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (min-width: 720px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .about { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  /* Navegación de escritorio: horizontal, sin panel */
  .nav-toggle { display: none; }
  .primary-nav {
    position: static; width: auto; transform: none; box-shadow: none;
    flex-direction: row; align-items: center; gap: 2rem; padding: 0; background: transparent;
  }
  .primary-nav ul { flex-direction: row; gap: 1.9rem; }
  .primary-nav a { font-size: .98rem; color: #fff; }
  .is-scrolled .primary-nav a { color: var(--deep); }
  .primary-nav a:hover { color: var(--aqua); }
  .is-scrolled .primary-nav a:hover { color: var(--teal); }
  .nav__cta { margin-top: 0; }

  .contact { grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: start; }

  /* Hero en escritorio: texto a la izquierda, logo grande a la derecha */
  .hero__content { flex-direction: row; align-items: center; justify-content: space-between; gap: clamp(2.5rem, 6vw, 5rem); }
  .hero__logo { order: 0; flex: 0 0 auto; }
  .hero__logo img { width: clamp(340px, 36vw, 560px); }
}

@media (min-width: 1024px) { .gallery { gap: 1.8rem; } }

/* =====================================================================
   ACCESIBILIDAD: respeto por "menos movimiento"
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__bg { animation: none; }
}

/* =====================================================================
   TESTIMONIOS — Reseñas de Google (carrusel automático)
   ===================================================================== */
.reviews { position: relative; overflow: hidden; }
/* Difuminado en los bordes para que las tarjetas entren y salgan suave */
.reviews::before, .reviews::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(36px, 8vw, 110px);
  z-index: 2; pointer-events: none;
}
.reviews::before { left: 0; background: linear-gradient(90deg, var(--paper), rgba(246,250,248,0)); }
.reviews::after { right: 0; background: linear-gradient(270deg, var(--paper), rgba(246,250,248,0)); }
/* La cinta se desplaza sola de derecha a izquierda (loop infinito) */
.reviews__track { display: flex; width: max-content; animation: reviewsScroll 60s linear infinite; }
.reviews:hover .reviews__track { animation-play-state: paused; }
@keyframes reviewsScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.review {
  flex: 0 0 auto; width: min(360px, 82vw); margin-right: 1.4rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 1.7rem 1.6rem;
  display: flex; flex-direction: column; gap: .9rem;
}
.review__stars { display: inline-flex; gap: 3px; color: #F5A623; }
.review__stars svg { width: 18px; height: 18px; }
.review blockquote { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; flex: 1 1 auto; }
.review__author { display: flex; align-items: center; gap: .8rem; }
.review__avatar {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  background: var(--mist); color: var(--teal); font-weight: 700; font-size: 1.05rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.review__meta { display: flex; flex-direction: column; line-height: 1.25; }
.review__name { font-weight: 600; color: var(--ink); }
.review__source { font-size: .8rem; color: var(--ink-soft); }

/* Menos movimiento: sin animación, se desliza a mano y se oculta la copia */
@media (prefers-reduced-motion: reduce) {
  .reviews { overflow-x: auto; }
  .reviews__track { animation: none; }
  .reviews__track > [aria-hidden="true"] { display: none; }
}

/* =====================================================================
   "Ver más" en las tarjetas de la galería (abren página de detalle)
   ===================================================================== */
.gallery__more {
  display: block; margin-top: .3rem;
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  letter-spacing: .02em; opacity: .92;
}

/* =====================================================================
   PÁGINAS DE DETALLE (tipos de muro)
   ===================================================================== */
/* En las subpáginas el header es sólido y fijo arriba (sin hero detrás) */
.subpage .site-header { position: sticky; background: var(--paper); box-shadow: 0 6px 24px -16px rgba(8,43,48,.4); }
.subpage .brand__name { color: var(--deep); }
.subpage .nav-toggle span { background: var(--deep); }
.subpage .primary-nav a { color: var(--deep); }

.subpage-hero { padding-top: clamp(2.2rem, 5vw, 3.4rem); padding-bottom: clamp(1.2rem, 3vw, 2rem); }
.back-link { display: inline-block; margin-bottom: 1.3rem; color: var(--teal); font-weight: 600; }
.back-link:hover { color: var(--teal-2); }
.subpage-lead { margin-top: 1rem; max-width: 760px; color: var(--ink-soft); font-size: 1.12rem; }

.feature-list { display: grid; gap: .8rem; margin-top: 1.6rem; }
.feature-list li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--teal); font-weight: 700;
}
.subpage-info p { color: var(--ink-soft); margin-top: 1rem; }
.subpage-cta { margin-top: 2rem; }

/* CTA centrado al pie de las páginas de detalle */
.cta-center { text-align: center; }
.cta-center .section-title { color: #fff; }
.cta-center p { color: #C9E0DC; margin: 1rem auto 1.8rem; max-width: 560px; }


/* =========================================
   NUESTROS MUROS FUNCIONANDO (carrusel de videos)
   ========================================= */
#muros-funcionando { background: #D5EAE5; }
.mv-carousel { position: relative; max-width: 720px; margin: 2rem auto 0; }
.mv-stage { position: relative; text-align: center; }
.mv-slide { display: none; }
.mv-slide.is-active { display: block; }
.mv-slide video {
  max-width: 100%; max-height: 72vh; width: auto; height: auto;
  display: block; margin: 0 auto;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-soft);
  background: var(--deep);
}
.mv-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: none; cursor: pointer; z-index: 3;
  background: rgba(255,255,255,.92); color: var(--deep);
  font-size: 1.7rem; line-height: 1; display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  transition: background .2s ease, transform .2s ease;
}
.mv-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.mv-arrow:active { transform: translateY(-50%) scale(.96); }
.mv-prev { left: .5rem; }
.mv-next { right: .5rem; }
.mv-counter { text-align: center; margin-top: 1rem; font-size: .95rem; color: var(--teal); letter-spacing: .04em; }
@media (min-width: 900px) {
  .mv-carousel { max-width: 940px; }
  .mv-slide video { max-height: 82vh; }
  .mv-prev { left: -1.9rem; }
  .mv-next { right: -1.9rem; }
}

/* Footer: envíos a todo el país (arriba y centrado) */
.site-footer__ships {
  text-align: center;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 500;
  color: #fff;
  letter-spacing: .01em;
  padding-bottom: 1.4rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
