/* =============================================================
   C3 HERMANOS DE LA MADERA — styles.css
   Editorial warm / artisan. Madera natural + verde bosque.
   ============================================================= */

/* 1. Tokens
   ------------------------------------------------------------- */
:root {
  --cream:      #eadfc7;   /* madera beige clara (fondo base) */
  --cream-2:    #e0d2b3;   /* madera beige más profunda (franjas) */
  --paper:      #f6efdd;   /* tarjetas y formularios, un punto más claros */
  --ink:        #211a13;   /* negro carbón */
  --ink-soft:   #5a4d3e;   /* texto secundario */
  --wood:       #8a5a2b;   /* nogal */
  --wood-deep:  #5e3d1f;   /* madera oscura */
  --oak:        #b9893f;   /* roble dorado */
  --forest:     #2d4a2b;   /* verde bosque (acento) */
  --forest-2:   #20351f;
  --forest-soft:#3c6038;
  --dark:       #1c140d;   /* fondo oscuro madera */
  --dark-2:     #261b11;
  --line:       rgba(60,42,25,.18);
  --line-light: rgba(245,238,225,.16);

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

  --wrap: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --r: 14px;
  --shadow: 0 18px 50px -22px rgba(40,26,12,.55);
  --shadow-sm: 0 8px 24px -14px rgba(40,26,12,.5);
}

/* 2. Reset & base
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -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 { line-height: 1.08; text-wrap: balance; font-weight: 500; }
::selection { background: var(--forest); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
  border-radius: 6px;
}

/* 3. Utilities
   ------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .65rem 1.1rem; background: var(--forest); color: var(--cream);
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.kicker {
  font-family: var(--sans);
  font-size: .76rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--wood);
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--wood); }
.kicker-light { color: var(--oak); }
.kicker-light::before { background: var(--oak); }

.section { padding-block: clamp(2.9rem, 8vw, 7rem); position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(1.7rem, 5vw, 3.2rem); }
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
  line-height: 1.04;
}
.section-title em { font-style: italic; color: var(--wood); }
.section-lead { margin-top: 1.1rem; font-size: 1.06rem; color: var(--ink-soft); max-width: 56ch; }
.section-title-light { color: var(--cream); }
.section-lead-light { color: rgba(245,238,225,.78); }

/* 4. Buttons
   ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .35s var(--ease-out), background-color .3s, box-shadow .3s, color .3s;
  will-change: transform;
}
.btn .ic { width: 1.15em; height: 1.15em; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-accent { background: var(--forest); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--forest-soft); }

.btn-wa { background: #25d366; color: #08361b; box-shadow: 0 10px 26px -12px rgba(37,211,102,.7); }
.btn-wa:hover { background: #1fbe5a; }

.btn-ghost-light {
  background: rgba(245,238,225,.08); color: var(--cream);
  border: 1px solid rgba(245,238,225,.4); backdrop-filter: blur(4px);
}
.btn-ghost-light:hover { background: rgba(245,238,225,.18); }

.btn-block { width: 100%; }

/* 5. Header
   ------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .4s var(--ease-out), box-shadow .4s, padding .4s;
  padding-block: .55rem;
}
.site-header.is-scrolled {
  background: rgba(240,231,210,.94);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(40,26,12,.6);
}
.header-inner { display: flex; align-items: center; gap: 1.2rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark { height: 46px; width: auto; border-radius: 7px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-family: var(--serif); font-weight: 600; font-size: 1.18rem;
  color: var(--ink); letter-spacing: .01em;
}
.brand-text small {
  font-size: .58rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--wood); margin-top: .2rem;
}
/* sobre fondo oscuro del hero (header no scrolled) */
.site-header:not(.is-scrolled) .brand-text strong { color: var(--cream); }
.site-header:not(.is-scrolled) .brand-text small { color: var(--oak); }

.nav { margin-left: auto; }
.nav-list { display: flex; gap: 1.7rem; list-style: none; }
.nav-list a {
  font-size: .92rem; font-weight: 500; color: var(--cream);
  position: relative; padding-block: .4rem; transition: color .3s;
}
.site-header.is-scrolled .nav-list a { color: var(--ink-soft); }
.nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--forest); transition: width .35s var(--ease-out);
}
.nav-list a:hover, .nav-list a.is-active { color: var(--forest); }
.site-header:not(.is-scrolled) .nav-list a:hover,
.site-header:not(.is-scrolled) .nav-list a.is-active { color: #fff; }
.nav-list a:hover::after, .nav-list a.is-active::after { width: 100%; }
.site-header:not(.is-scrolled) .nav-list a::after { background: var(--oak); }

.header-cta { margin-left: 0; }
.site-header:not(.is-scrolled) .header-cta { box-shadow: 0 10px 26px -12px rgba(0,0,0,.5); }

/* WhatsApp visible siempre en cabecera móvil */
.header-wa { display: none; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .55rem; margin-left: auto; }
.nav-toggle span { width: 26px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .3s, opacity .3s, background-color .3s; }
.site-header.is-scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 1.2rem var(--gutter) 1.8rem;
  display: flex; flex-direction: column; gap: .3rem;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  padding: .9rem .2rem; font-size: 1.08rem; font-weight: 500;
  border-bottom: 1px solid var(--line); color: var(--ink);
}
.mobile-menu .btn { margin-top: 1rem; }

/* 6. Hero
   ------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  color: var(--cream); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); will-change: transform; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(18,12,6,.6) 0%, rgba(18,12,6,.5) 42%, rgba(18,12,6,.82) 100%),
    radial-gradient(78% 62% at 50% 44%, rgba(18,12,6,.5), transparent 74%),
    radial-gradient(120% 90% at 25% 20%, rgba(45,74,43,.22), transparent 60%);
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; margin-inline: auto; text-align: center; padding-block: 7rem 5rem; }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  font-weight: 500; line-height: 1.04; letter-spacing: -0.015em;
  text-shadow: 0 4px 30px rgba(0,0,0,.4);
}
.hero-title em { font-style: italic; color: #e7c489; }
.hero-sub {
  margin: 1.6rem auto 0; font-size: clamp(1.02rem, 2vw, 1.2rem);
  max-width: 44ch; color: rgba(245,238,225,.9);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; justify-content: center; }
.hero-cta .btn { padding: 1rem 1.8rem; font-size: 1rem; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%);
  z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(245,238,225,.5);
  border-radius: 14px; display: grid; place-items: start center; padding-top: 7px;
}
.hero-scroll span { width: 4px; height: 8px; border-radius: 2px; background: var(--cream); animation: scrollDot 1.8s var(--ease-out) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(-2px); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translateY(12px); } }

/* 7. Trust band
   ------------------------------------------------------------- */
.trust-band { background: var(--cream-2); color: var(--ink); border-block: 1px solid var(--line); }
.trust-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 1.6rem;
  padding-block: 2rem;
}
.trust-item { display: flex; flex-direction: column; gap: .25rem; }
.trust-item strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--ink); line-height: 1.18; }
.trust-item span { font-size: .85rem; color: var(--ink-soft); line-height: 1.35; }

/* 8. Servicios
   ------------------------------------------------------------- */
.servicios { background: var(--cream); }
.serv-layout { display: grid; grid-template-columns: 1fr; gap: 2.4rem; }
.serv-intro .section-title { font-size: clamp(1.9rem, 5vw, 2.9rem); }
.serv-intro .section-lead { margin-bottom: 1.6rem; }

/* Índice editorial de servicios */
.serv-list { list-style: none; border-top: 1px solid var(--line); }
.serv-row { border-bottom: 1px solid var(--line); }
.serv-link {
  display: grid; grid-template-columns: auto 1fr; align-items: start;
  gap: .2rem 1.1rem; padding: 1.4rem .2rem;
  transition: background-color .45s var(--ease-out), padding-inline .45s var(--ease-out);
}
.serv-num {
  font-family: var(--serif); font-size: .9rem; font-weight: 600; letter-spacing: .05em;
  color: var(--wood); padding-top: .55rem; transition: color .4s;
}
.serv-body { display: flex; flex-direction: column; gap: .45rem; }
.serv-name {
  font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -0.01em;
  font-size: clamp(1.45rem, 5.2vw, 2.05rem); color: var(--ink);
  transition: color .4s var(--ease-out), transform .45s var(--ease-out);
}
.serv-desc { color: var(--ink-soft); font-size: .96rem; max-width: 48ch; }
.serv-mark {
  display: none; align-self: center; color: var(--wood);
  opacity: 0; transform: translate(-8px, 4px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), color .4s;
}
.serv-mark svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.serv-link:hover { background: var(--paper); padding-inline: 1.1rem; }
.serv-link:hover .serv-name { color: var(--forest); transform: translateX(5px); }
.serv-link:hover .serv-num { color: var(--forest); }
.serv-link:hover .serv-mark { opacity: 1; transform: translate(0, 0); color: var(--forest); }
.serv-foot { margin-top: 1.5rem; color: var(--ink-soft); font-size: .98rem; }
.serv-foot a { color: var(--wood); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* 9. Proyectos / galería
   ------------------------------------------------------------- */
.proyectos { background: var(--cream-2); position: relative; }
.gallery.cats { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }

/* Tarjeta de categoría con pase de diapositivas */
.cat-card {
  border-radius: var(--r); overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  background: var(--paper);
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-slides { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.cat-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 1.1s var(--ease-soft);
}
.cat-slides img.is-active { opacity: 1; }
.cat-label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.1rem;
  border-top: 1px solid var(--line);
}
.cat-label strong { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.cat-label span { font-size: .82rem; color: var(--ink-soft); white-space: nowrap; }

.gallery-note { margin-top: 1.8rem; text-align: center; color: var(--ink-soft); font-size: 1rem; }
.gallery-note a { color: var(--wood); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Lightbox — ampliar fotos */
.lightbox {
  position: fixed; inset: 0; z-index: 9500;
  display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem);
  background: rgba(16,11,6,.93);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: lbFade .3s var(--ease-out);
}
.lightbox[hidden] { display: none; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
  max-width: min(94vw, 1400px); max-height: 86vh;
  object-fit: contain; border-radius: 10px;
  box-shadow: 0 40px 90px -25px rgba(0,0,0,.8);
  cursor: zoom-in; transition: transform .45s var(--ease-out);
  animation: lbPop .4s var(--ease-out);
}
@keyframes lbPop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.lightbox-img.is-zoomed { cursor: zoom-out; transform: scale(1.7); }
.lightbox-close {
  position: absolute; top: clamp(.8rem, 3vw, 1.4rem); right: clamp(.8rem, 3vw, 1.6rem);
  width: 46px; height: 46px; border-radius: 50%; z-index: 2;
  background: rgba(245,238,225,.14); color: var(--cream);
  display: grid; place-items: center; transition: background-color .3s, transform .3s var(--ease-out);
}
.lightbox-close:hover { background: rgba(245,238,225,.28); transform: rotate(90deg); }
.lightbox-close svg { width: 22px; height: 22px; fill: none; }
.lightbox-hint {
  position: absolute; bottom: clamp(.7rem, 3vw, 1.4rem); left: 0; right: 0;
  text-align: center; color: rgba(245,238,225,.62); font-size: .82rem; letter-spacing: .02em;
}
.lightbox.is-zoomed .lightbox-hint { opacity: 0; }

/* Flechas de navegación (diapositivas) */
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(245,238,225,.14); color: var(--cream);
  display: grid; place-items: center;
  transition: background-color .3s, transform .3s var(--ease-out);
}
.lightbox-arrow svg { width: 26px; height: 26px; }
.lightbox-prev { left: clamp(.5rem, 2.5vw, 1.6rem); }
.lightbox-next { right: clamp(.5rem, 2.5vw, 1.6rem); }
.lightbox-prev:hover { background: rgba(245,238,225,.28); transform: translateY(-50%) translateX(-3px); }
.lightbox-next:hover { background: rgba(245,238,225,.28); transform: translateY(-50%) translateX(3px); }
.lightbox.is-zoomed .lightbox-arrow,
.lightbox.is-zoomed .lightbox-counter { opacity: 0; pointer-events: none; }
.lightbox-arrow, .lightbox-counter, .lightbox-hint { transition: opacity .3s; }

/* Contador (2 / 6) */
.lightbox-counter {
  position: absolute; top: clamp(1rem, 3.2vw, 1.7rem); left: 0; right: 0;
  text-align: center; color: rgba(245,238,225,.8);
  font-family: var(--serif); font-size: .95rem; letter-spacing: .08em;
  pointer-events: none;
}

@media (max-width: 539px) {
  .lightbox-arrow { width: 44px; height: 44px; background: rgba(245,238,225,.18); }
  .lightbox-arrow svg { width: 22px; height: 22px; }
}

/* 10. Por qué elegirnos (claro)
   ------------------------------------------------------------- */
.porque { background: var(--cream); color: var(--ink); }
.porque-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.porque-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.porque-list li {
  display: flex; gap: 1.2rem; align-items: flex-start;
  padding: 1.5rem .2rem; border-bottom: 1px solid var(--line);
  transition: padding-inline .4s var(--ease-out);
}
.porque-list li:hover { padding-inline: .8rem; }
.porque-list .num { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--wood); line-height: 1; flex: none; }
.porque-list h3 { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; color: var(--ink); margin-bottom: .25rem; }
.porque-list p { color: var(--ink-soft); font-size: .96rem; }

/* 11. Sobre nosotros
   ------------------------------------------------------------- */
.nosotros { background: var(--cream-2); }
.nosotros-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.6rem, 5vw, 2.6rem); align-items: center; }
.nosotros-fig {
  border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.nosotros-fig img { width: 100%; display: block; }
.nosotros-text p { color: var(--ink-soft); margin-bottom: 1rem; font-size: 1.04rem; }
.nosotros-text strong { color: var(--ink); }
.nosotros-text .signature { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--wood); margin: 1.2rem 0 1.6rem; }

/* 12. Contacto
   ------------------------------------------------------------- */
.contacto { background: var(--cream); }
.contacto-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; margin-bottom: 1.6rem; }
.channel-block { margin-bottom: 1.6rem; }
.channel-title {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--serif); font-size: 1.18rem; font-weight: 600; margin-bottom: .9rem;
}
.channel-title .ic { width: 1.3em; height: 1.3em; fill: var(--forest); }
.channel-title .ic-wa { fill: #25d366; }
.channel-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.contact-pill {
  display: flex; flex-direction: column; gap: .15rem;
  padding: .95rem 1.1rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s, background-color .3s;
}
.contact-pill strong { font-size: 1rem; color: var(--ink); }
.contact-pill span { font-size: .9rem; color: var(--ink-soft); }
.contact-pill:hover { transform: translateY(-2px); border-color: var(--forest); box-shadow: var(--shadow-sm); background: #fbf6e9; }
.contact-pill-wide { grid-column: span 2; }
@media (max-width: 380px) { .contact-pill-wide { grid-column: span 1; } }

.contacto-address {
  display: flex; align-items: center; gap: .55rem; font-style: normal;
  margin-top: .6rem; color: var(--ink-soft); font-size: .98rem;
}
.contacto-address .ic { width: 1.3em; height: 1.3em; fill: none; stroke: var(--wood); stroke-width: 1.7; }

.contacto-form {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.8rem 1.6rem; box-shadow: var(--shadow-sm); align-self: start;
}
.contacto-form h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin-bottom: 1.2rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--cream); font: inherit; color: var(--ink); transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--forest); background: #fbf6e9;
  box-shadow: 0 0 0 3px rgba(45,74,43,.12);
}
.field textarea { resize: vertical; }
.form-hint { margin-top: .8rem; font-size: .82rem; color: var(--ink-soft); text-align: center; }

.map-wrap {
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); aspect-ratio: 16/8; min-height: 320px;
}
.map-wrap iframe { width: 100%; height: 100%; }

/* 13. Footer
   ------------------------------------------------------------- */
.site-footer { background: var(--dark); color: rgba(245,238,225,.78); padding-top: clamp(3rem,7vw,4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.2rem; padding-bottom: 2.5rem; }
.brand-footer .brand-text strong { color: var(--cream); }
.brand-footer .brand-text small { color: var(--oak); }
.footer-brand p { margin-top: 1rem; max-width: 38ch; font-size: .95rem; }
.footer-col h4 { font-family: var(--serif); color: #f0d9ad; font-size: 1.05rem; margin-bottom: .9rem; font-weight: 600; }
.footer-col ul { list-style: none; display: grid; gap: .55rem; }
.footer-col a, .footer-col li { font-size: .94rem; }
.footer-col a:hover { color: var(--oak); }
.footer-bottom {
  border-top: 1px solid var(--line-light);
  padding: 1.5rem var(--gutter); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  justify-content: space-between; font-size: .85rem; color: rgba(245,238,225,.55);
  max-width: var(--wrap); margin-inline: auto;
}

/* 14. Botón flotante WhatsApp
   ------------------------------------------------------------- */
.wa-float { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; }
.wa-btn {
  width: 60px; height: 60px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.65);
  animation: waPulse 2.6s var(--ease-out) infinite; transition: transform .3s var(--ease-out);
}
.wa-btn svg { width: 32px; height: 32px; fill: #fff; }
.wa-btn:hover { transform: scale(1.07); }
@keyframes waPulse { 0% { box-shadow: 0 12px 30px -8px rgba(37,211,102,.65), 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 12px 30px -8px rgba(37,211,102,.65), 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 12px 30px -8px rgba(37,211,102,.65), 0 0 0 0 rgba(37,211,102,0); } }
.wa-pop {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 1rem 1.1rem; width: 232px;
  display: flex; flex-direction: column; gap: .55rem;
  transform-origin: bottom right; animation: waPopIn .3s var(--ease-out);
}
.wa-pop[hidden] { display: none; }
@keyframes waPopIn { from { opacity: 0; transform: scale(.9) translateY(8px); } to { opacity: 1; transform: none; } }
.wa-pop-title { font-family: var(--serif); font-weight: 600; font-size: 1rem; color: var(--ink); margin-bottom: .1rem; }
.wa-pop a {
  display: flex; justify-content: space-between; gap: .6rem; align-items: center;
  padding: .55rem .7rem; border-radius: 9px; background: var(--cream);
  font-size: .9rem; color: var(--ink-soft); transition: background-color .25s, transform .25s var(--ease-out);
}
.wa-pop a strong { color: var(--ink); }
.wa-pop a:hover { background: #e7f7ec; transform: translateX(-2px); }

/* 15. Reveal animations
   ------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
/* defensa: si por cualquier razón no se activa JS, mostrar igualmente */
.no-js .reveal { opacity: 1; transform: none; }

/* 16. Splash
   ------------------------------------------------------------- */
.splash {
  position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center;
  background: var(--dark);
  animation: splashSafety .01s 4s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; transition: opacity .7s var(--ease-out); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; } }
.splash-mark { text-align: center; animation: splashUp 1s var(--ease-out); }
@keyframes splashUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.splash-c3 {
  display: block; font-family: var(--serif); font-size: 4rem; font-weight: 600;
  color: #f0d9ad; letter-spacing: .04em;
}
.splash-sub { display: block; margin-top: .4rem; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--wood); }

/* =============================================================
   17. Responsive
   ============================================================= */
@media (min-width: 720px) {
  .serv-link { grid-template-columns: auto minmax(0, 1fr) auto; gap: .2rem 1.6rem; padding-block: 1.7rem; }
  .serv-mark { display: grid; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-col:nth-child(4) { grid-column: 2 / 3; }
}

@media (min-width: 960px) {
  .serv-layout { grid-template-columns: 0.82fr 1.18fr; gap: 4.5rem; align-items: start; }
  .serv-intro { position: sticky; top: 108px; }
  .serv-link { padding: 2rem .2rem; }
  .serv-name { font-size: clamp(1.7rem, 2.3vw, 2.2rem); }
  .gallery.cats { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .cat-slides { aspect-ratio: 3/2; }
  .cat-label { padding: 1rem 1.3rem; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); gap: 0 2.4rem; padding-block: 2.4rem; }
  .trust-item { border-right: 1px solid var(--line); padding: .1rem 2.4rem .1rem 0; }
  .trust-item:last-child { border-right: none; }
  .trust-item strong { font-size: 1.18rem; }
  .trust-item span { font-size: .9rem; }
  .porque-grid { grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: center; }
  .nosotros-grid { grid-template-columns: 0.92fr 1.08fr; gap: clamp(3rem, 5vw, 4.5rem); }
  .contacto-grid { grid-template-columns: 1.15fr 1fr; gap: 2.4rem; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-col:nth-child(4) { grid-column: auto; }
}

@media (max-width: 959px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; margin-left: .35rem; }
  .header-wa {
    display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: #25d366; margin-left: auto;
    box-shadow: 0 8px 20px -8px rgba(37,211,102,.6);
  }
  .header-wa svg { width: 23px; height: 23px; fill: #fff; }
}

@media (min-width: 1280px) {
  .hero-inner { padding-block: 8rem 6rem; }
}

/* 18. Reduced motion — solo efectos intrusivos */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll span { animation: none; }
  .wa-btn { animation: none; }
}
