/* ============================================================================
   MADISSON CARPINTERÍA · Estilos
   ----------------------------------------------------------------------------
   Orden del archivo:
   1. Variables (colores, tipos, medidas)   6. Secciones
   2. Reset y base                          7. Efectos / animaciones
   3. Utilidades                            8. Responsive
   4. Tipografía                            9. Movimiento reducido
   5. Componentes (botones, placeholders)
   ============================================================================ */

/* =============================================================
   1 · VARIABLES  (cambia aquí y cambia toda la web)
   ============================================================= */
:root {
  /* Fondos */
  --lino:        #faf7f1;   /* fondo principal */
  --arena:       #f0e9dd;   /* secciones alternas */
  --nogal-oscuro:#321e15;   /* CTA final y footer */

  /* Madera (marca) */
  --nogal:       #805843;   /* color principal de marca */
  --miel:        #b8834f;   /* acentos, estrellas, subrayados */
  --miel-ink:    #8a5f33;   /* miel oscurecido para texto pequeño (cumple AA) */
  --lino-tostado:#d6cebc;   /* bordes y separadores */

  /* Natural (con moderación) */
  --oliva:       #6b7358;   /* frescura natural en detalles */

  /* Texto */
  --tinta:       #2b1f18;   /* titulares */
  --tinta-media: #5a4a3f;   /* cuerpo */
  --tinta-suave: #8a7a6d;   /* secundario / captions */

  /* Conversión */
  --wa:          #25D366;   /* verde WhatsApp */
  --wa-ink:      #06110a;   /* texto sobre verde */
  --wa-dark:     #1ab84f;

  /* Bordes translúcidos */
  --linea:       rgba(50,30,21,.10);
  --linea-fuerte:rgba(50,30,21,.16);

  /* Tipos */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Medidas */
  --nav-h: 76px;
  --container: 1240px;
  --radio: 16px;
  --radio-sm: 10px;

  /* Curvas de animación (nunca ease por defecto) */
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.25, .46, .45, .94);
  --ease-in:   cubic-bezier(.7, 0, .84, 0);
}

/* =============================================================
   2 · RESET Y BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--tinta-media);
  background: var(--lino);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.06; letter-spacing: -.01em; color: var(--tinta); font-weight: 500; }
::selection { background: var(--miel); color: var(--lino); }

:focus-visible {
  outline: 2px solid var(--miel-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3 · UTILIDADES
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 3rem); }
.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.alt-bg { background: var(--arena); }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--nogal); color: var(--lino);
  border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* Textura de veta de madera (overlay SVG muy sutil, sin imagen pesada) */
.has-veta { position: relative; isolation: isolate; }
.has-veta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='400' viewBox='0 0 120 400'><g fill='none' stroke='%23000000' stroke-opacity='0.5'><path d='M10 0 C 40 80, -10 160, 20 240 S 40 360, 15 400' stroke-width='1'/><path d='M45 0 C 70 100, 30 180, 55 260 S 75 360, 50 400' stroke-width='0.8'/><path d='M80 0 C 100 90, 65 170, 90 250 S 105 360, 85 400' stroke-width='0.6'/><path d='M110 0 C 120 120, 95 200, 115 300 S 118 380, 108 400' stroke-width='0.5'/></g></svg>");
  background-size: 240px 800px;
}

/* =============================================================
   4 · TIPOGRAFÍA
   ============================================================= */
.kicker {
  font-family: var(--sans);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--miel-ink);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5.4vw, 4rem);
  line-height: 1.02;
  color: var(--tinta);
  letter-spacing: -.02em;
  max-width: 18ch;
}
.section-title em { font-style: italic; color: var(--nogal); font-weight: 400; }
.section-lead {
  margin-top: 1.15rem;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--tinta-media);
  max-width: 52ch;
}
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

/* =============================================================
   5 · COMPONENTES
   ============================================================= */

/* --- Botones --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 100px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft), background-color .3s var(--ease-out), color .3s var(--ease-out);
  will-change: transform;
}
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-wa { background: var(--wa); color: var(--wa-ink); box-shadow: 0 8px 24px -8px rgba(37,211,102,.5); }
.btn-wa:hover { background: var(--wa-dark); transform: translateY(-3px); box-shadow: 0 16px 34px -10px rgba(37,211,102,.55); }
.btn-wa:active { transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--linea-fuerte); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--nogal); transform: translateY(-3px); color: var(--nogal); }

.btn-outline { background: transparent; color: var(--nogal); box-shadow: inset 0 0 0 1.5px var(--nogal); }
.btn-outline:hover { background: var(--nogal); color: var(--lino); transform: translateY(-3px); }

.ico-wa { width: 20px; height: 20px; flex: none; }

/* --- Estrellas --- */
.stars, .testi-stars { color: var(--miel); letter-spacing: .12em; }
.star-half { position: relative; color: var(--lino-tostado); }
.star-dim { color: var(--lino-tostado); }

/* --- Placeholders de imagen (se ven bien AHORA, sin fotos) --- */
.ph {
  position: relative; overflow: hidden;
  aspect-ratio: var(--ratio, 4 / 5);
  border-radius: var(--radio);
  display: grid; place-items: center;
  background:
    linear-gradient(135deg, #8a6146 0%, #6f4a35 45%, #513222 100%);
  color: var(--lino);
  isolation: isolate;
}
/* Vetas dentro del placeholder */
.ph::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .35; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'><g fill='none' stroke='%23ffffff' stroke-opacity='0.7'><path d='M0 20 C 40 25, 100 15, 140 22' stroke-width='0.7'/><path d='M0 48 C 45 40, 95 55, 140 46' stroke-width='0.6'/><path d='M0 74 C 40 82, 100 66, 140 76' stroke-width='0.8'/><path d='M0 100 C 50 92, 90 108, 140 100' stroke-width='0.6'/><path d='M0 126 C 40 120, 100 132, 140 124' stroke-width='0.5'/></g></svg>");
  background-size: 180px 180px;
}
/* Brillo diagonal sutil */
.ph::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 20% 15%, rgba(255,240,220,.22), transparent 55%);
}
.ph-label {
  position: relative; z-index: 1;
  font-family: var(--sans); font-weight: 600; font-size: .82rem; letter-spacing: .08em;
  text-transform: uppercase; text-align: center; line-height: 1.5;
  padding: 1rem; color: rgba(255,255,255,.92);
}
.ph-label small { display: inline-block; margin-top: .35rem; font-weight: 400; font-size: .68rem; letter-spacing: .1em; color: rgba(255,255,255,.7); }
.ph-hero { border-radius: 0; }

/* =============================================================
   6 · SECCIONES
   ============================================================= */

/* --- NAV --- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s var(--ease-out);
}
.nav-inner {
  max-width: var(--container); margin-inline: auto;
  padding: .7rem clamp(1.15rem, 4vw, 3rem);
  min-height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav.is-scrolled {
  background: rgba(250,247,241,.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--linea), 0 8px 30px -18px rgba(50,30,21,.4);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-logo { height: 30px; width: auto; display: block; }
.footer-logo { height: 34px; width: auto; display: block; margin-bottom: .1rem; }
.brand-mark { border-radius: 9px; flex: none; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--tinta); letter-spacing: -.01em; }
.brand-sub { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--tinta-suave); margin-top: .25rem; }

@media (min-width: 960px) { .brand-logo { height: 34px; } }
.nav-links { display: none; gap: clamp(1rem, 2.2vw, 2rem); }
.nav-link { position: relative; font-size: .92rem; font-weight: 500; color: var(--tinta-media); padding: .3rem 0; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--nogal); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-soft);
}
.nav-link:hover { color: var(--tinta); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }

/* Botón hamburguesa */
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; padding: .55rem; }
.nav-toggle span { width: 24px; height: 2px; background: var(--tinta); border-radius: 2px; transition: transform .4s var(--ease-out), opacity .3s; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil */
.menu-movil {
  position: fixed; inset: 0; z-index: 95;
  background: var(--nogal-oscuro); color: var(--lino);
  display: grid; place-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.menu-movil[aria-hidden="false"] { clip-path: inset(0); }
.menu-movil-links { display: flex; flex-direction: column; gap: 1.4rem; text-align: center; }
.menu-movil-links a { font-family: var(--serif); font-size: 1.9rem; color: var(--lino); }
.menu-movil-links a:hover { color: var(--miel); }
.menu-movil-cta { font-family: var(--sans); font-size: 1rem; margin-top: 1rem; }

/* --- HERO --- */
.hero { position: relative; padding-top: calc(var(--nav-h) + 1rem); min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.hero-grid { display: grid; gap: 2rem; align-items: center; max-width: var(--container); margin-inline: auto; width: 100%; padding-inline: clamp(1.15rem, 4vw, 3rem); }
.hero-copy { padding-block: 1.5rem; }
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.8rem, 11vw, 6.6rem);
  line-height: .98; letter-spacing: -.03em; color: var(--tinta);
  margin-bottom: 1.3rem;
}
.hero-title em { font-style: italic; color: var(--nogal); display: inline-block; }
.hero-sub { font-size: clamp(1.02rem, 1.8vw, 1.28rem); color: var(--tinta-media); max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.6rem; }
.hero-meta { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--tinta-suave); }
.hero-meta .stars { font-size: 1rem; }

.hero-media { position: relative; }
.hero-media img { border-radius: var(--radio); box-shadow: 0 40px 80px -30px rgba(50,30,21,.45); width: 100%; height: auto; display: block; }
.hero-media-tag {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(250,247,241,.9); color: var(--nogal);
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .45rem .8rem; border-radius: 100px; backdrop-filter: blur(6px);
}
.hero-scroll { display: none; }

/* --- MARQUEE MATERIALES --- */
.marquee { background: var(--nogal); color: var(--lino); overflow: hidden; padding-block: 1.15rem; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--nogal), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--nogal), transparent); }
.marquee-track { display: inline-flex; align-items: center; gap: 2.2rem; white-space: nowrap; will-change: transform; }
.marquee-track span { font-family: var(--serif); font-size: clamp(1.1rem, 2.2vw, 1.6rem); font-style: italic; }
.marquee-track i { color: var(--miel); font-style: normal; }

/* --- PORTAFOLIO --- */
.filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.2rem; }
.filtro {
  padding: .5rem 1.1rem; border-radius: 100px; font-size: .88rem; font-weight: 500;
  color: var(--tinta-media); box-shadow: inset 0 0 0 1.4px var(--linea-fuerte);
  transition: color .3s var(--ease-out), background-color .3s var(--ease-out), box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
.filtro:hover { color: var(--tinta); transform: translateY(-2px); box-shadow: inset 0 0 0 1.4px var(--nogal); }
.filtro.is-active { background: var(--nogal); color: var(--lino); box-shadow: inset 0 0 0 1.4px var(--nogal); }

/* Galería masonry (columnas) */
.galeria { columns: 1; column-gap: 1.15rem; }
.work {
  position: relative;                 /* ancla la etiqueta del nombre a esta tarjeta */
  break-inside: avoid; margin-bottom: 1.15rem; display: block; width: 100%;
  text-align: left; cursor: pointer;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.work.is-hidden { display: none; }
.work-frame {
  position: relative; overflow: hidden; border-radius: var(--radio);
  box-shadow: 0 20px 45px -30px rgba(50,30,21,.4);
}
.work-frame .ph, .work-frame img { border-radius: 0; display: block; width: 100%; height: auto; transition: transform .7s var(--ease-soft); }
.work:hover .work-frame .ph, .work:focus-visible .work-frame .ph,
.work:hover .work-frame img, .work:focus-visible .work-frame img { transform: scale(1.06); }
.work-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(50,30,21,.55), transparent 45%);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.work:hover .work-frame::after, .work:focus-visible .work-frame::after { opacity: 1; }
.work-meta {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 2;
  transform: translateY(12px); opacity: 0;
  transition: transform .5s var(--ease-soft), opacity .5s var(--ease-out);
  color: var(--lino); pointer-events: none;
}
.work:hover .work-meta, .work:focus-visible .work-meta { transform: none; opacity: 1; }
.work-cat { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--miel); }
.work-name { font-family: var(--serif); font-size: 1.35rem; color: var(--lino); font-weight: 500; margin-top: .1rem; }
.work-wood { font-size: .82rem; color: rgba(250,247,241,.8); }

/* --- SERVICIOS (alternado) --- */
.serv-list { display: flex; flex-direction: column; gap: clamp(2.5rem, 6vw, 5rem); }
.serv { display: grid; gap: 1.5rem; align-items: center; }
.serv-media .ph, .serv-media img { border-radius: var(--radio); box-shadow: 0 30px 60px -35px rgba(50,30,21,.5); width: 100%; height: auto; display: block; }
.serv-media img { aspect-ratio: 4/3; object-fit: cover; }
.serv-num { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--miel); display: block; margin-bottom: .3rem; }
.serv-title { font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 400; color: var(--tinta); margin-bottom: .7rem; }
.serv-copy p { max-width: 46ch; margin-bottom: 1.1rem; }
.micro-cta { display: inline-flex; align-items: center; gap: .4rem; color: var(--nogal); font-weight: 600; font-size: .95rem; }
.micro-cta span { transition: transform .35s var(--ease-out); }
.micro-cta:hover { color: var(--miel-ink); }
.micro-cta:hover span { transform: translateX(5px); }

/* --- PROCESO (timeline) --- */
.timeline { list-style: none; position: relative; max-width: 760px; margin-inline: auto; padding-left: 2.4rem; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px;
  background: var(--lino-tostado); border-radius: 2px;
}
.timeline::after {
  content: ""; position: absolute; left: 11px; top: 6px; width: 2px;
  height: var(--draw, 0%); max-height: calc(100% - 12px);
  background: linear-gradient(var(--nogal), var(--miel));
  border-radius: 2px; transition: height 1.2s var(--ease-out);
}
.step { position: relative; padding-bottom: 2.4rem; }
.step:last-child { padding-bottom: 0; }
.step-dot {
  position: absolute; left: calc(-2.4rem + 1px); top: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--lino); box-shadow: inset 0 0 0 2px var(--nogal);
  display: grid; place-items: center; color: var(--nogal);
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out), transform .5s var(--ease-out);
}
.step.is-revealed .step-dot { background: var(--nogal); color: var(--lino); transform: scale(1.05); }
.step-ico { width: 13px; height: 13px; }
.step-num { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--miel-ink); }
.step-title { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 400; color: var(--tinta); margin: .15rem 0 .35rem; }
.step-body p { max-width: 44ch; }

/* --- POR QUÉ MADISSON --- */
.nosotros-grid { display: grid; gap: 2.5rem; }
.contadores { display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 4vw, 2.6rem); margin-top: 2rem; }
.contador-num { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 500; color: var(--nogal); line-height: 1; }
.contador-label { display: block; font-size: .82rem; color: var(--tinta-suave); margin-top: .3rem; max-width: 16ch; }
.razones { list-style: none; display: grid; gap: 1.2rem; }
.razon { display: flex; gap: .9rem; padding: 1.15rem 1.25rem; background: var(--lino); border-radius: var(--radio-sm); box-shadow: inset 0 0 0 1px var(--linea); }
.alt-bg .razon { background: var(--lino); }
.razon-ico { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--oliva); color: var(--lino); display: grid; place-items: center; font-size: .85rem; font-weight: 700; }
.razon h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; color: var(--tinta); margin-bottom: .2rem; }
.razon p { font-size: .92rem; }

/* --- TESTIMONIOS (carrusel) --- */
.carousel { position: relative; max-width: 760px; margin-inline: auto; }
.carousel-viewport { overflow: hidden; border-radius: var(--radio); }
.carousel-track { display: flex; list-style: none; transition: transform .6s var(--ease-soft); }
.testi { flex: 0 0 100%; padding: clamp(1.6rem, 4vw, 2.6rem); text-align: center; }
.testi-stars { font-size: 1.15rem; margin-bottom: 1rem; }
.testi-text { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.6vw, 1.6rem); line-height: 1.4; color: var(--tinta); max-width: 40ch; margin-inline: auto; }
.testi-author { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: 1.4rem; font-size: .9rem; color: var(--tinta-suave); }
.testi-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--nogal); color: var(--lino); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1.4rem; }
.carousel-btn { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1.4px var(--linea-fuerte); font-size: 1.4rem; color: var(--nogal); display: grid; place-items: center; transition: background-color .3s, color .3s, transform .3s; }
.carousel-btn:hover { background: var(--nogal); color: var(--lino); transform: translateY(-2px); }
.carousel-dots { display: flex; gap: .5rem; }
.carousel-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lino-tostado); transition: background-color .3s, transform .3s; }
.carousel-dot.is-active { background: var(--miel); transform: scale(1.25); }
.testimonios-cta { text-align: center; margin-top: 2.2rem; }

/* --- INSTAGRAM --- */
.ig-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.ig-item { position: relative; display: block; border-radius: var(--radio-sm); overflow: hidden; }
.ig-item .ph { border-radius: 0; }
.ig-item img { border-radius: 0; display: block; width: 100%; height: 100%; aspect-ratio: 1/1; object-fit: cover; }
.ig-ov { position: absolute; inset: 0; display: grid; place-items: center; color: var(--lino); background: rgba(50,30,21,.35); opacity: 0; transition: opacity .4s var(--ease-out); }
.ig-item:hover .ig-ov { opacity: 1; }
.ig-cta { text-align: center; margin-top: 2rem; }

/* --- UBICACIÓN --- */
.ubi-grid { display: grid; gap: 2rem; align-items: center; }
.ubi-list { list-style: none; display: grid; gap: .8rem; margin: 1.4rem 0 1.8rem; }
.ubi-list li { display: flex; gap: .6rem; align-items: baseline; color: var(--tinta-media); }
.ubi-list a { color: var(--nogal); font-weight: 500; }
.ubi-list a:hover { color: var(--miel-ink); }
.ubi-list em { color: var(--tinta-suave); font-size: .85rem; }
.ubi-map { border-radius: var(--radio); overflow: hidden; box-shadow: 0 30px 60px -35px rgba(50,30,21,.5); }
.ubi-map iframe { width: 100%; height: 340px; border: 0; filter: sepia(.18) saturate(1.05) contrast(.98); }

/* --- CTA FINAL --- */
.cta-final { background: var(--nogal-oscuro); color: var(--lino); padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.cta-grid { display: grid; gap: 2.5rem; align-items: start; }
.cta-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5.2vw, 3.6rem); color: var(--lino); line-height: 1.03; }
.cta-title em { font-style: italic; color: var(--miel); }
.cta-lead { color: rgba(250,247,241,.78); margin: 1.1rem 0 1.6rem; max-width: 44ch; }
.cta-phone { display: inline-block; font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--lino); margin-bottom: 1.4rem; letter-spacing: .01em; }
.cta-phone:hover { color: var(--miel); }

.cta-form { background: rgba(250,247,241,.06); border: 1px solid rgba(250,247,241,.14); border-radius: var(--radio); padding: clamp(1.4rem, 4vw, 2rem); }
.cta-form-title { color: var(--lino); font-weight: 500; margin-bottom: 1.2rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(250,247,241,.7); margin-bottom: .4rem; }
.field-opt { text-transform: none; letter-spacing: 0; color: rgba(250,247,241,.5); }
.field input, .field select {
  width: 100%; padding: .8rem .95rem; border-radius: var(--radio-sm);
  background: rgba(250,247,241,.95); color: var(--tinta); border: 1px solid transparent;
  font-size: .95rem;
}
.field input::placeholder { color: var(--tinta-suave); }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--miel); outline-offset: 1px; }
.cta-form-note { font-size: .78rem; color: rgba(250,247,241,.6); margin-top: .8rem; text-align: center; }

/* --- FOOTER --- */
.footer { background: var(--nogal-oscuro); color: var(--lino); padding-block: 3rem 2rem; }
.footer-top { display: grid; gap: 1.8rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(250,247,241,.14); }
.footer-name { color: var(--lino); font-size: 1.7rem; }
.footer-tag { display: block; font-size: .8rem; color: rgba(250,247,241,.65); margin-top: .3rem; max-width: 32ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; }
.footer-nav a { color: rgba(250,247,241,.8); font-size: .92rem; }
.footer-nav a:hover { color: var(--miel); }
.footer-contact { display: flex; flex-direction: column; gap: .6rem; }
.footer-contact > a { font-family: var(--serif); font-size: 1.35rem; color: var(--lino); }
.footer-contact > a:hover { color: var(--miel); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: rgba(250,247,241,.8); font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.footer-social a:hover { color: var(--miel); }
.footer-bottom { padding-top: 1.4rem; font-size: .82rem; color: rgba(250,247,241,.55); }

/* --- WHATSAPP FLOTANTE --- */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: var(--wa-ink);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px -6px rgba(37,211,102,.55);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-soft);
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float .ico-wa { width: 30px; height: 30px; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.5);
  animation: waPulse 2.6s var(--ease-out) infinite;
}
@keyframes waPulse { 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.wa-float-tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  white-space: nowrap; background: var(--nogal-oscuro); color: var(--lino);
  font-size: .82rem; font-weight: 500; padding: .5rem .8rem; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out);
}
.wa-float:hover .wa-float-tip { opacity: 1; }

/* --- CURSOR PERSONALIZADO (solo escritorio con puntero fino) --- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none;
    opacity: 0; transition: opacity .3s var(--ease-out);
    will-change: transform;
  }
  .cursor.is-ready { opacity: 1; }
  /* El aro: SIEMPRE un círculo de tamaño fijo, centrado en el punto del cursor */
  .cursor-ring {
    position: absolute; top: 0; left: 0;
    width: 12px; height: 12px; margin: -6px 0 0 -6px;
    border-radius: 50%; border: 1.5px solid var(--nogal); box-sizing: border-box;
    transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .35s var(--ease-out);
  }
  .cursor-label {
    position: absolute; top: 0; left: 0;
    width: 96px; margin: -8px 0 0 -48px;   /* centrado sobre el punto del cursor */
    text-align: center; line-height: 1.15;
    font-size: .6rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--lino); opacity: 0; transition: opacity .3s var(--ease-out);
  }
  .cursor.is-ver .cursor-ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--nogal); }
  .cursor.is-ver .cursor-label { opacity: 1; }
}

/* --- LIGHTBOX --- */
.lightbox {
  border: 0; padding: 0;
  position: fixed; inset: 0; margin: auto;            /* centrado real, vertical y horizontal */
  width: min(1040px, 94vw); height: fit-content; max-height: 92vh;
  background: var(--lino); border-radius: var(--radio);
  color: var(--tinta-media); overflow: hidden;
}
.lightbox::backdrop { background: rgba(30,18,12,.7); backdrop-filter: blur(4px); }
.lightbox[open] { animation: lbIn .45s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.lightbox-inner { display: grid; grid-template-columns: 1fr; max-height: 92vh; overflow: auto; }
.lightbox-stage { position: relative; background: var(--nogal-oscuro); display: grid; place-items: center; }
.lightbox-media { width: 100%; }
.lightbox-media .ph { border-radius: 0; aspect-ratio: 4/3; }
.lightbox-media img { display: block; width: 100%; height: auto; max-height: 86vh; object-fit: cover; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: rgba(250,247,241,.9); color: var(--nogal); font-size: 1.5rem; display: grid; place-items: center; transition: background-color .3s, transform .3s; }
.lightbox-nav:hover { background: var(--lino); transform: translateY(-50%) scale(1.06); }
.lightbox-prev { left: .8rem; }
.lightbox-next { right: .8rem; }
.lightbox-close { position: absolute; top: .6rem; right: .6rem; z-index: 5; width: 40px; height: 40px; border-radius: 50%; background: rgba(250,247,241,.92); color: var(--tinta); font-size: 1.6rem; line-height: 1; display: grid; place-items: center; }
.lightbox-close:hover { background: var(--lino); }
.lightbox-info { padding: clamp(1.3rem, 3vw, 2rem); display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.lightbox-cat { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--miel-ink); }
.lightbox-name { font-family: var(--serif); font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 400; color: var(--tinta); }
.lightbox-wood { font-size: .9rem; color: var(--tinta-suave); }
.lightbox-desc { margin: .5rem 0 1rem; max-width: 48ch; }

/* =============================================================
   7 · EFECTOS (reveal)
   ============================================================= */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
/* Escalonado por hijos dentro de listas/grids con reveal */
.serv-list .serv[data-reveal] { transition-delay: .02s; }

/* =============================================================
   8 · RESPONSIVE (mobile-first → escritorio)
   ============================================================= */
@media (min-width: 540px) {
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .galeria { columns: 2; }
}

@media (min-width: 720px) {
  .hero-scroll { display: block; position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 100px; box-shadow: inset 0 0 0 1.5px var(--linea-fuerte); }
  .hero-scroll span { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); width: 4px; height: 8px; border-radius: 4px; background: var(--nogal); animation: scrollDot 1.8s var(--ease-out) infinite; }
  @keyframes scrollDot { 0%,100% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 14px); } }

  .serv { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
  .serv:nth-child(even) .serv-media { order: 2; }

  .nosotros-grid { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; }
  .razones { grid-template-columns: 1fr 1fr; }

  .ubi-grid { grid-template-columns: 1fr 1.1fr; gap: 3rem; }
  .ubi-map iframe { height: 420px; }

  .cta-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
  .ig-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }

  .hero-grid { grid-template-columns: 45% 1fr; gap: 3rem; align-items: stretch; }
  .hero-copy { display: flex; flex-direction: column; justify-content: center; }
  /* La imagen del hero sangra por el borde derecho del viewport */
  /* Altura fija del contenedor; la foto lo rellena por dentro (no lo agranda) */
  .hero-media { margin-right: calc(50% - 50vw); position: relative; min-height: 78svh; }
  .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radio) 0 0 var(--radio); }

  .galeria { columns: 3; column-gap: 1.3rem; }
  .work { margin-bottom: 1.3rem; }

  .lightbox-inner { grid-template-columns: 1.3fr 1fr; align-items: center; }
  .lightbox-info { justify-content: center; }
}

@media (min-width: 1280px) {
  .hero-title { font-size: clamp(4rem, 6.4vw, 7rem); }
}

/* =============================================================
   9 · MOVIMIENTO REDUCIDO
   Solo apagamos lo intrusivo (marquee, pulso, parallax, autoscroll).
   NO tocamos hovers, fades ni micro-interacciones.
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none !important; }
  .wa-float::after { animation: none; }
  .hero-scroll span { animation: none; }
  [data-parallax] { transform: none !important; }
}
