/* =========================================================
   Demoliciones Olivares — sistema visual 2026-10
   Paleta de obra: papel, tinta verde-negra y amarillo maquinaria.
   ========================================================= */

@font-face{font-family:'Space Grotesk';src:url('fuentes/space-grotesk.woff2') format('woff2');font-weight:300 700;font-display:swap}
@font-face{font-family:'DM Sans';src:url('fuentes/dm-sans.woff2') format('woff2');font-weight:100 1000;font-display:swap}

:root{
  --paper:#f7f6f0;
  --paper-2:#eeeee5;
  --paper-3:#e3e5d8;
  --ink:#1d2420;
  --ink-2:#2b332e;
  --muted:#5a6158;
  --line:#d6d9cd;
  --line-dark:#3c463f;
  --yellow:#efd34e;
  --yellow-2:#f6dd63;
  --yellow-ink:#433b10;
  --olive:#525e2b;
  --gold-text:#8a6c04;

  --ease-out:cubic-bezier(.23,1,.32,1);
  --ease-in-out:cubic-bezier(.77,0,.175,1);
  --ease-drawer:cubic-bezier(.32,.72,0,1);

  --display:'Space Grotesk',ui-sans-serif,system-ui,sans-serif;
  --text:'DM Sans',ui-sans-serif,system-ui,sans-serif;

  --gutter:clamp(16px,4vw,56px);
  --radius:6px;
  --header-h:76px;
  --shadow-lift:0 1px 2px rgb(29 36 32 / .06),0 8px 24px -8px rgb(29 36 32 / .18);
}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{
  -webkit-text-size-adjust:100%;
  -webkit-tap-highlight-color:transparent;
  scroll-behavior:smooth;
  scroll-padding-top:calc(var(--header-h) + 16px);
  scrollbar-color:#9aa18f var(--paper);
  color-scheme:light;
}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--text);
  font-size:1.0625rem;
  line-height:1.65;
  font-optical-sizing:auto;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  caret-color:var(--gold-text);
}
::selection{background:var(--yellow);color:var(--ink)}
img,svg{display:block;max-width:100%}
img{height:auto}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0;padding:0}
button:disabled{cursor:progress}
p{margin:0 0 1em;color:var(--muted);text-wrap:pretty}
h1,h2,h3{font-family:var(--display);font-weight:600;line-height:1.08;letter-spacing:-.035em;margin:0;color:var(--ink);text-wrap:balance}
h2{font-size:clamp(2rem,1.4rem + 2.4vw,3.25rem);margin-bottom:.45em}
h3{font-size:1.4rem;letter-spacing:-.025em}
strong{font-weight:600;color:var(--ink)}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:2px}
[hidden]{display:none!important}
.i{width:1.15em;height:1.15em;flex:none}
.accent{color:var(--gold-text)}
.wrap{width:min(1280px,100% - 2*var(--gutter));margin-inline:auto}
.section{padding-block:clamp(64px,8vw,112px)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip{position:fixed;z-index:100;left:16px;top:-80px;background:var(--yellow);padding:12px 16px;border-radius:var(--radius);font-weight:600}
.skip:focus{top:12px}

/* Controles: sin selección de texto ni demora de toque */
a,button,summary,label{touch-action:manipulation}
.button,.underlink,.menu-toggle,.filters button,.gallery-item,.video-preview,.close-dialog,summary,.mobile-bar a,.floating-wa{
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;
}

/* ---------- Botones y enlaces ---------- */
.button{
  display:inline-flex;align-items:center;justify-content:center;gap:12px;
  min-height:50px;padding:0 22px;
  background:var(--yellow);color:var(--ink);
  border:1px solid #d9bd34;border-radius:var(--radius);
  font-weight:650;font-size:.95rem;letter-spacing:-.005em;
  box-shadow:0 1px 0 rgb(255 255 255 / .5) inset,0 1px 2px rgb(29 36 32 / .12);
  transition:transform 160ms var(--ease-out),background-color 160ms ease,box-shadow 160ms ease;
}
.button .i{width:18px;height:18px;transition:transform 200ms var(--ease-out)}
.button:active{transform:scale(.97)}
.button.small{min-height:42px;padding:0 16px;font-size:.88rem}
.underlink{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 0;font-weight:600;font-size:.95rem;
  background:linear-gradient(currentColor,currentColor) 0 100%/100% 1px no-repeat;
  transition:background-size 240ms var(--ease-out),opacity 160ms ease;
}
.underlink .i{width:16px;height:16px;transition:transform 200ms var(--ease-out)}
.underlink:active{opacity:.7}

@media (hover:hover) and (pointer:fine){
  .button:hover{background:var(--yellow-2);box-shadow:0 1px 0 rgb(255 255 255 / .5) inset,var(--shadow-lift)}
  .button:hover .i,.underlink:hover .i{transform:translate(2px,-2px)}
  .underlink:hover{background-size:35% 1px}
}

/* ---------- Topbar + cabecera ---------- */
.topbar{background:var(--ink);color:#d9ded2;font-size:.78rem}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:36px}
.topbar a{display:inline-flex;align-items:center;gap:8px}
.topbar a .i{width:14px;height:14px;color:var(--yellow)}
.topbar b{color:var(--yellow);font-weight:600;font-variant-numeric:tabular-nums}

.header{
  position:sticky;top:0;z-index:30;
  background:rgb(247 246 240 / .92);
  -webkit-backdrop-filter:saturate(1.4) blur(12px);backdrop-filter:saturate(1.4) blur(12px);
  border-bottom:1px solid var(--line);
}
.nav{min-height:var(--header-h);display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:10px;flex:none}
.brand img{width:52px;height:52px;object-fit:contain}
.brand>span{font-family:var(--display);font-weight:700;font-size:1.45rem;letter-spacing:-.04em;line-height:.95}
.brand small{display:block;font-size:.7rem;letter-spacing:.16em;font-weight:600;color:var(--muted);margin-bottom:3px}
.nav nav{display:flex;align-items:center;gap:6px;font-size:.92rem;font-weight:550}
.nav nav>a:not(.button){padding:10px 12px;border-radius:var(--radius);transition:background-color 160ms ease}
.nav nav>a.button{margin-left:10px}
.menu-toggle{display:none}
@media (hover:hover) and (pointer:fine){.nav nav>a:not(.button):hover{background:var(--paper-3)}}

/* ---------- Hero ---------- */
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:clamp(28px,4vw,64px);align-items:stretch;padding-block:clamp(28px,4vw,56px)}
.hero-copy{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding-block:16px}
.hero h1,.hero h1.h1-long{font-size:clamp(2.55rem,1.4rem + 3.9vw,4.9rem);line-height:1.02;letter-spacing:-.04em;margin:0 0 .45em}
.hero h1 em{font-style:normal;position:relative;white-space:nowrap;isolation:isolate}
.hero h1 em::after{
  content:'';position:absolute;z-index:-1;left:-.04em;right:-.04em;bottom:.08em;height:.26em;
  background:var(--yellow);border-radius:2px;transform-origin:left center;
}
.hero-copy>p{font-size:1.1rem;line-height:1.7;max-width:34rem;margin-bottom:28px}
.actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px 26px}
.hero-foot{
  display:flex;flex-wrap:wrap;gap:10px 22px;
  margin-top:36px;padding-top:20px;border-top:1px solid var(--line);width:100%;
  font-size:.88rem;font-weight:550;color:var(--ink-2);
}
.hero-foot span{display:inline-flex;align-items:center;gap:7px}
.hero-foot .i{width:16px;height:16px;color:var(--olive);stroke-width:2.2}
.hero-visual{position:relative;min-height:clamp(380px,46vw,620px);border-radius:var(--radius);overflow:hidden;background:var(--ink)}
.hero-visual>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:55% center}
.photo-label{
  position:absolute;top:16px;left:16px;
  padding:5px 10px;border-radius:3px;
  background:rgb(29 36 32 / .62);color:#fff;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  font-size:.7rem;letter-spacing:.08em;font-weight:600;text-transform:uppercase;
}
.hero-feature{
  position:absolute;left:16px;right:16px;bottom:16px;
  display:flex;align-items:center;gap:16px;
  padding:16px 18px;border-radius:var(--radius);
  background:rgb(247 246 240 / .94);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  box-shadow:var(--shadow-lift);
  transition:transform 200ms var(--ease-out);
}
.hero-feature:active{transform:scale(.985)}
.feature-icon{display:grid;place-items:center;width:46px;height:46px;flex:none;border-radius:50%;background:var(--yellow)}
.feature-icon .i{width:20px;height:20px}
.hero-feature h2{font-size:1.25rem;margin:0 0 2px}
.hero-feature div>span{display:inline-flex;align-items:center;gap:6px;font-size:.88rem;color:var(--muted)}
.hero-feature div>span .i{width:15px;height:15px;transition:transform 200ms var(--ease-out)}
@media (hover:hover) and (pointer:fine){.hero-feature:hover div>span .i{transform:translateX(3px)}}

/* Momento de entrada (uno solo): la foto se descubre y el subrayado avanza */
@media (prefers-reduced-motion:no-preference){
  .js .hero-visual>img{animation:reveal 1100ms var(--ease-out) both}
  .js .hero h1 em::after{animation:underline 900ms 250ms var(--ease-out) both}
}
@keyframes reveal{from{clip-path:inset(10% 0 0 0);transform:scale(1.06)}to{clip-path:inset(0);transform:none}}
@keyframes underline{from{transform:scaleX(.08)}to{transform:none}}

/* ---------- Franja de servicios ---------- */
.service-strip{background:var(--paper-2);border-block:1px solid var(--line)}
.service-strip .wrap{display:flex;justify-content:space-between;gap:8px 24px;flex-wrap:wrap;padding-block:14px;font-size:.92rem;font-weight:550}
.service-strip a{display:inline-flex;align-items:center;gap:10px;padding:4px 0}
.service-strip a::before{content:'';width:7px;height:7px;background:var(--yellow);border:1px solid #c9ad2c;transform:rotate(45deg)}
@media (hover:hover) and (pointer:fine){.service-strip a:hover{text-decoration:underline;text-underline-offset:5px}}

/* ---------- Cabeceras de sección ---------- */
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px 48px;margin-bottom:clamp(28px,4vw,48px)}
.section-head h2{margin:0}
.section-head>p{max-width:30rem;margin:0}

/* ---------- Servicios (sección oscura, en filas) ---------- */
.dark-section{background:var(--ink);color:var(--paper);padding-block:clamp(64px,8vw,112px)}
.dark-section h2,.dark-section h3{color:var(--paper)}
.dark-section p{color:#b9c1b3}
.dark-section :focus-visible{outline-color:var(--yellow)}
.services{border-top:1px solid var(--line-dark);counter-reset:none}
.service{
  position:relative;
  display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.3fr) auto;align-items:center;gap:12px 40px;
  padding:28px 0;border-bottom:1px solid var(--line-dark);
}
.service h3{font-size:clamp(1.4rem,1rem + 1.3vw,2rem);letter-spacing:-.03em;transition:color 160ms ease}
.service p{margin:0;font-size:.98rem;max-width:36rem}
.service-more{display:inline-flex;align-items:center;gap:10px;font-size:.9rem;font-weight:600;color:var(--yellow);white-space:nowrap}
.service-more .i{width:20px;height:20px;transition:transform 200ms var(--ease-out)}
.service-thumb{display:none}
.service:active{opacity:.8}
.service-note{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px 24px;padding-top:24px;font-size:.95rem}
.service-note>span{color:#b9c1b3}
.service-note a{display:inline-flex;align-items:center;gap:8px;color:var(--yellow);font-weight:600}
.service-note a .i{width:16px;height:16px}
@media (hover:hover) and (pointer:fine){
  .service:hover h3{color:var(--yellow)}
  .service:hover .service-more .i{transform:translate(3px,-3px)}
  /* Vista previa de la faena al pasar el mouse (solo escritorio) */
  #servicios .service-thumb{
    display:block;position:absolute;right:170px;top:50%;width:200px;height:140px;object-fit:cover;
    border-radius:4px;pointer-events:none;opacity:0;
    transform:translateY(-50%) rotate(-3deg) scale(.94);
    transition:opacity 180ms ease,transform 260ms var(--ease-out);
    box-shadow:0 18px 40px -12px rgb(0 0 0 / .55);
  }
  #servicios .service:hover .service-thumb{opacity:1;transform:translateY(-50%) rotate(-2deg) scale(1)}
}

/* ---------- Confianza ---------- */
.trust{padding-block:clamp(64px,8vw,112px) 24px}
.trust-head h2{margin-bottom:clamp(28px,4vw,48px)}
.trust-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 clamp(28px,5vw,80px)}
.trust-grid>div{padding:24px 0 26px;border-top:1px solid var(--ink)}
.trust-grid h3{font-size:clamp(1.35rem,1rem + .9vw,1.75rem);margin-bottom:8px}
.trust-grid p{margin:0;max-width:32rem}
.clients{
  display:flex;align-items:center;flex-wrap:wrap;gap:12px 28px;
  margin-top:clamp(28px,4vw,44px);padding:20px 24px;
  background:var(--paper-2);border:1px solid var(--line);border-radius:var(--radius);
}
.clients-title{margin:0;font-size:.9rem;font-weight:600;color:var(--muted)}
.client{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 14px}
.client strong{font-family:var(--display);font-size:1.6rem;letter-spacing:.01em;font-weight:700}
.client span{display:inline-flex;align-items:center;gap:6px;font-size:.92rem;color:var(--muted)}
.client span .i{width:15px;height:15px}
.gbp-link{display:inline-flex;align-items:center;gap:8px;margin-left:auto;font-weight:600;font-size:.92rem}
.gbp-link .i{width:16px;height:16px}
.gbp-link .i-star{color:var(--gold-text);fill:var(--yellow)}
@media (hover:hover) and (pointer:fine){.client:hover span,.gbp-link:hover{text-decoration:underline;text-underline-offset:4px}}

/* ---------- Galería ---------- */
.gallery{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:clamp(150px,15vw,220px);gap:12px}
.gallery-item{position:relative;grid-column:span 4;overflow:hidden;border-radius:var(--radius);background:var(--ink);transition:transform 160ms var(--ease-out)}
.gallery-item:first-child{grid-column:span 7;grid-row:span 2}
.gallery-item:nth-child(2),.gallery-item:nth-child(3){grid-column:span 5}
.gallery-item img{width:100%;height:100%;object-fit:cover;transition:transform 500ms var(--ease-out)}
.gallery-item>span{
  position:absolute;inset:auto 0 0;display:flex;justify-content:space-between;align-items:center;
  padding:28px 14px 12px;color:#fff;font-size:.78rem;letter-spacing:.06em;font-weight:600;
  background:linear-gradient(transparent,rgb(16 22 18 / .72));
}
.gallery-item>span .i{width:18px;height:18px}
.gallery-item:active{transform:scale(.985)}
@media (hover:hover) and (pointer:fine){.gallery-item:hover img{transform:scale(1.035)}}

/* ---------- Nosotros + pasos ---------- */
.about-section{background:var(--paper-2);padding-block:clamp(64px,8vw,104px);border-block:1px solid var(--line)}
.about-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(36px,7vw,120px)}
.about-grid>div>p{max-width:30rem}
.steps{counter-reset:step}
.steps>div{display:grid;grid-template-columns:44px 1fr;gap:16px;padding:20px 0;border-bottom:1px solid var(--line)}
.steps>div:first-child{border-top:1px solid var(--line)}
.steps>div>span{font-family:var(--display);font-weight:600;font-size:.95rem;color:var(--olive);font-variant-numeric:tabular-nums;padding-top:3px}
.steps h3{font-size:1.2rem;margin-bottom:4px}
.steps p{margin:0;font-size:.95rem}

/* ---------- Zonas ---------- */
.zones{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,6vw,96px);align-items:start}
.zones-copy p{max-width:30rem}
.zone-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--ink)}
.zone-list li{border-bottom:1px solid var(--line)}
.zone-list li:nth-child(odd){border-right:1px solid var(--line)}
.zone-list a{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:18px 16px;font-family:var(--display);font-weight:600;font-size:1.15rem;letter-spacing:-.02em;transition:background-color 160ms ease}
.zone-list li:nth-child(odd) a{padding-left:0}
.zone-list a .i{width:18px;height:18px;color:var(--muted);transition:transform 200ms var(--ease-out),color 160ms ease}
@media (hover:hover) and (pointer:fine){.zone-list a:hover .i{transform:translate(2px,-2px);color:var(--ink)}}

/* ---------- Preguntas frecuentes ---------- */
.faq-layout{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(32px,6vw,96px)}
.faq-layout>div>p{max-width:24rem}
.faq details{border-bottom:1px solid var(--line)}
.faq details:first-child{border-top:1px solid var(--ink)}
summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 0;font-weight:600;font-size:1.05rem}
summary::-webkit-details-marker{display:none}
summary .i{width:20px;height:20px;flex:none;transition:transform 220ms var(--ease-out)}
details[open] summary .i{transform:rotate(45deg)}
details p{margin:0;padding:0 40px 22px 0;max-width:40rem}
@media (prefers-reduced-motion:no-preference){
  @supports (interpolate-size:allow-keywords){
    .faq{interpolate-size:allow-keywords}
    .faq details::details-content{block-size:0;overflow:hidden;opacity:0;transition:block-size 260ms var(--ease-out),opacity 200ms ease,content-visibility 260ms allow-discrete}
    .faq details[open]::details-content{block-size:auto;opacity:1}
  }
}

/* ---------- Blog ---------- */
.blog-section{border-top:1px solid var(--line)}
.blog-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;border-block:1px solid var(--line)}
.filters{display:flex;flex-wrap:wrap;gap:6px}
.filters button{min-height:40px;padding:0 16px;border-radius:999px;border:1px solid var(--line);font-size:.9rem;font-weight:600;transition:background-color 160ms ease,color 160ms ease,transform 160ms var(--ease-out)}
.filters button:active{transform:scale(.97)}
.filters button.active{background:var(--ink);border-color:var(--ink);color:var(--paper)}
.filters button span{margin-left:6px;font-variant-numeric:tabular-nums;opacity:.65}
.search{display:flex;align-items:center;gap:10px;min-width:280px;padding:0 14px;min-height:44px;border:1px solid var(--line);border-radius:var(--radius);background:#fff}
.search .i{color:var(--muted)}
.search input{flex:1;min-width:0;border:0;background:none;font-size:1rem}
.search input:focus{outline:none}
.search:focus-within{border-color:var(--ink);box-shadow:0 0 0 3px rgb(239 211 78 / .55)}
.results{font-size:.88rem;margin:14px 0 26px}
.posts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:44px 28px}
.post{min-width:0;display:flex;flex-direction:column}
.post-image{position:relative;display:block;overflow:hidden;border-radius:var(--radius);background:var(--paper-3);aspect-ratio:4/3}
.post-image img{width:100%;height:100%;object-fit:cover;transition:transform 500ms var(--ease-out)}
.video-tag{position:absolute;left:12px;bottom:12px;display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:rgb(247 246 240 / .94);font-size:.75rem;font-weight:600}
.video-tag .i{width:11px;height:11px}
.meta{display:flex;justify-content:space-between;align-items:center;margin:18px 0 10px;font-size:.78rem;font-weight:600;color:var(--muted)}
.meta>span:first-child{color:var(--olive)}
.post h3{font-size:1.4rem;margin-bottom:10px}
.post p{font-size:.96rem;line-height:1.65}
.read{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:14px;border-top:1px solid var(--line);font-size:.9rem;font-weight:600}
.read .i{width:18px;height:18px;transition:transform 200ms var(--ease-out)}
.post-info{display:flex;flex-direction:column;flex:1}
@media (hover:hover) and (pointer:fine){
  .post:hover .post-image img{transform:scale(1.035)}
  .post h3 a:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
  .read:hover .i{transform:translate(2px,-2px)}
}
.empty{padding:48px 24px;text-align:center;border:1px dashed var(--line);border-radius:var(--radius)}
.empty h3{margin-bottom:8px}

/* ---------- Contacto ---------- */
.contact-section{background:var(--yellow);padding-block:clamp(64px,8vw,104px)}
.contact-section ::selection{background:var(--ink);color:var(--yellow)}
.contact-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,6vw,96px)}
.contact-grid h2{font-size:clamp(2.3rem,1.4rem + 3vw,3.9rem)}
.contact-grid>div>p{color:var(--yellow-ink)}
.contact-phone{display:inline-flex;align-items:center;gap:12px;margin:24px 0 8px;font-family:var(--display);font-size:clamp(1.6rem,1.2rem + 1.4vw,2.2rem);font-weight:600;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.contact-phone .i{width:.9em;height:.9em}
.email{display:block;overflow-wrap:anywhere;font-size:.95rem}
.contact-section .email{text-decoration:underline;text-decoration-color:rgb(29 36 32 / .35);text-underline-offset:4px}
.address{margin-top:20px;font-size:.95rem;color:var(--yellow-ink)}
.contact-points{list-style:none;margin:24px 0 0;padding:0;font-size:.95rem;color:var(--yellow-ink)}
.contact-points li{position:relative;padding:10px 0 10px 22px;border-top:1px solid rgb(67 59 16 / .22)}
.contact-points li::before{content:'';position:absolute;left:2px;top:19px;width:7px;height:7px;background:var(--ink);transform:rotate(45deg)}
.contact-points a{text-decoration:underline;text-underline-offset:3px;font-weight:600;color:var(--ink)}

.contact-grid form{min-width:0;padding:clamp(20px,3vw,32px);background:var(--paper);border-radius:8px;box-shadow:0 1px 2px rgb(67 59 16 / .1),0 24px 48px -24px rgb(67 59 16 / .45)}
.contact-grid form h3{font-size:1.5rem;margin-bottom:4px}
.form-help{font-size:.85rem}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
form label{display:block;margin:0 0 16px;font-size:.88rem;font-weight:600;color:var(--ink)}
form input,form select,form textarea{
  display:block;width:100%;min-width:0;margin-top:6px;padding:11px 12px;
  background:#fff;border:1px solid #c9cdbf;border-radius:5px;
  font-size:16px;line-height:1.4;color:var(--ink);
  transition:border-color 160ms ease,box-shadow 160ms ease;
}
form select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2420' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:18px;padding-right:40px}
form textarea{resize:vertical;min-height:120px}
form input::placeholder,form textarea::placeholder{color:#686e62}
form input:focus,form select:focus,form textarea:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 3px rgb(239 211 78 / .6)}
form input:user-invalid,form select:user-invalid,form textarea:user-invalid{border-color:#a3341c;box-shadow:0 0 0 3px rgb(163 52 28 / .14)}
form .privacy{font-size:.8rem;line-height:1.6}
form .privacy a{text-decoration:underline;text-underline-offset:3px;color:var(--ink)}
.form-actions{display:flex;flex-direction:column;align-items:stretch;gap:6px}
.form-actions .button{width:100%;min-height:54px}
.form-actions .underlink{align-self:center;font-size:.92rem}
.form-actions .underlink .i{width:18px;height:18px}
.button[aria-busy="true"] .i{display:none}
.button[aria-busy="true"]::after{content:'';width:16px;height:16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin 600ms linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
#form-status{margin:12px 0 0;font-size:.92rem;font-weight:500;color:var(--ink)}
#form-status:empty{display:none}
#form-status[data-state="ok"]{color:#2d5a2a}
#form-status[data-state="error"]{color:#8e2c17}
.honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}

/* ---------- Footer ---------- */
footer{background:var(--ink);color:var(--paper);padding:clamp(48px,6vw,72px) 0 calc(24px + env(safe-area-inset-bottom,0px))}
footer :focus-visible{outline-color:var(--yellow)}
.footer-main{display:grid;grid-template-columns:1.2fr 1.2fr 1fr .8fr;gap:36px 48px}
.footer-brand{display:flex;align-items:center;gap:10px;margin-bottom:14px;color:var(--paper)}
.footer-brand img{width:44px;height:44px;background:var(--paper);border-radius:50%;padding:4px}
.footer-brand span{font-family:var(--display);font-size:1.35rem;letter-spacing:-.03em;line-height:1}
.footer-brand strong{color:var(--paper)}
.foot-title{font-family:var(--text);font-size:.85rem;font-weight:600;letter-spacing:0;color:#9ea795;margin:0 0 12px}
.footer-main p:not(.footer-brand){font-size:.92rem;color:#b9c1b3}
.footer-main a{display:flex;align-items:center;gap:6px;width:fit-content;font-size:.95rem;padding:4px 0;color:#e3e7dc}
.footer-main .email{font-size:.92rem}
.footer-bottom{display:flex;justify-content:space-between;gap:16px;margin-top:40px;padding-top:20px;border-top:1px solid var(--line-dark);font-size:.85rem;color:#9ea795}
.footer-bottom a{display:inline-flex;align-items:center;gap:6px}
.footer-bottom .i{width:15px;height:15px}
@media (hover:hover) and (pointer:fine){.footer-main a:hover,.footer-bottom a:hover{color:var(--yellow)}}

/* ---------- WhatsApp flotante (escritorio) y barra móvil ---------- */
.floating-wa{
  position:fixed;right:24px;bottom:24px;z-index:25;
  display:flex;align-items:center;gap:8px;padding:12px 18px 12px 14px;border-radius:999px;
  background:#1f4a2e;color:#fff;font-size:.92rem;font-weight:600;
  box-shadow:0 2px 4px rgb(0 0 0 / .12),0 12px 28px -8px rgb(16 40 24 / .55);
  transition:transform 160ms var(--ease-out),background-color 160ms ease;
}
.floating-wa .i{width:22px;height:22px}
.floating-wa:active{transform:scale(.96)}
@media (hover:hover) and (pointer:fine){.floating-wa:hover{background:#245636}}
@media (prefers-reduced-motion:no-preference){
  .floating-wa{transition:transform 160ms var(--ease-out),background-color 160ms ease,opacity 200ms ease}
  @starting-style{.floating-wa{opacity:0;transform:translateY(12px)}}
}
.mobile-bar{display:none}

/* ---------- Visor de fotos y video ---------- */
dialog{
  width:min(1040px,100% - 32px);max-height:90dvh;padding:0;border:0;border-radius:8px;
  background:var(--ink);color:#fff;overflow:auto;overscroll-behavior:contain;
}
dialog::backdrop{background:rgb(12 17 14 / .82);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
@media (prefers-reduced-motion:no-preference){
  dialog{transition:opacity 200ms var(--ease-out),transform 220ms var(--ease-out),overlay 220ms allow-discrete,display 220ms allow-discrete}
  dialog::backdrop{transition:opacity 200ms ease,overlay 220ms allow-discrete,display 220ms allow-discrete}
  dialog[open]{opacity:1;transform:none}
  @starting-style{dialog[open]{opacity:0;transform:scale(.96)}dialog[open]::backdrop{opacity:0}}
  dialog:not([open]){opacity:0;transform:scale(.98)}
  dialog:not([open])::backdrop{opacity:0}
}
.dialog-top{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:10px 12px 10px 20px;font-size:.92rem}
.close-dialog{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid #4b554d;color:#fff;transition:background-color 160ms ease,transform 160ms var(--ease-out)}
.close-dialog:active{transform:scale(.94)}
.close-dialog .i{width:20px;height:20px}
@media (hover:hover) and (pointer:fine){.close-dialog:hover{background:#2f3833}}
#dialog-content img{width:100%;max-height:78dvh;object-fit:contain}
#dialog-content iframe{display:block;width:100%;aspect-ratio:16/9;border:0}
body.modal-open{overflow:hidden}

/* ---------- Páginas de servicio ---------- */
.breadcrumb{display:flex;flex-wrap:wrap;gap:8px;padding-top:24px;font-size:.85rem;color:var(--muted)}
.breadcrumb span:not(:last-child){color:#a5ab9c}
@media (hover:hover) and (pointer:fine){.breadcrumb a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}}
.svc-hero{padding-top:20px}
.svc-intro{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(32px,6vw,88px);align-items:start}
.svc-intro p{max-width:38rem}
.includes{padding:clamp(22px,3vw,32px);background:var(--paper-2);border:1px solid var(--line);border-radius:8px}
.includes-title{font-size:1.25rem;margin-bottom:12px}
.includes-note{font-size:.88rem;margin:0}
.checklist{list-style:none;margin:0 0 18px;padding:0}
.checklist li{position:relative;padding:10px 0 10px 30px;border-bottom:1px solid var(--line);font-size:.98rem}
.checklist li::before{
  content:'';position:absolute;left:2px;top:14px;width:18px;height:18px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c7a3f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.svc-video{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:16px 32px;align-items:end;margin-top:24px}
.services-3 .service{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) auto}

/* ---------- Video ---------- */
.video-preview{position:relative;display:block;width:100%;overflow:hidden;border-radius:8px;background:var(--ink);transition:transform 160ms var(--ease-out)}
.video-preview img{width:100%;aspect-ratio:16/9;height:auto;object-fit:cover;filter:brightness(.62);transition:filter 300ms ease,transform 500ms var(--ease-out)}
.video-preview:active{transform:scale(.99)}
.play{position:absolute;top:50%;left:50%;display:grid;place-items:center;width:76px;height:76px;margin:-38px 0 0 -38px;border-radius:50%;background:var(--yellow);color:var(--ink);box-shadow:0 10px 30px -8px rgb(0 0 0 / .5);transition:transform 200ms var(--ease-out)}
.play .i{width:26px;height:26px;margin-left:3px;stroke:none}
.video-bottom{position:absolute;left:20px;bottom:16px;display:inline-flex;align-items:center;gap:8px;color:#fff;font-size:.95rem;font-weight:600}
.video-bottom .i{width:16px;height:16px}
.video-note{font-size:.85rem;line-height:1.6;margin:10px 0 0}
.video-note a{text-decoration:underline;text-underline-offset:3px;display:inline-flex;align-items:center;gap:4px}
.video-note a .i{width:14px;height:14px}
@media (hover:hover) and (pointer:fine){
  .video-preview:hover img{filter:brightness(.72);transform:scale(1.02)}
  .video-preview:hover .play{transform:scale(1.06)}
}

/* ---------- Artículos ---------- */
.reading-progress{position:fixed;top:0;left:0;z-index:40;height:3px;width:100%;background:var(--yellow);transform-origin:0 50%;transform:scaleX(0);pointer-events:none}
.article-header{max-width:58rem;padding:20px 0 36px}
.article-header h1{font-size:clamp(2.4rem,1.4rem + 3.6vw,4.4rem);line-height:1.04;letter-spacing:-.04em;margin:0 0 .4em}
.article-header>p{font-size:1.2rem;line-height:1.6;max-width:44rem}
.byline{display:flex;flex-wrap:wrap;gap:6px 24px;margin-top:24px;padding-top:16px;border-top:1px solid var(--line);font-size:.88rem;color:var(--muted)}
.article-cover{margin:0}
.article-cover img{width:100%;height:clamp(260px,40vw,520px);object-fit:cover;object-position:center 60%;border-radius:8px}
.article-cover figcaption{padding-top:10px;font-size:.82rem;color:var(--muted)}
.article-layout{display:grid;grid-template-columns:250px minmax(0,44rem);gap:clamp(32px,6vw,96px);margin-top:clamp(40px,5vw,64px);align-items:start}
.article-aside{position:sticky;top:calc(var(--header-h) + 28px)}
.aside-title{font-size:.88rem;font-weight:600;color:var(--ink);margin-bottom:6px}
.article-aside nav a{display:block;padding:10px 0;border-bottom:1px solid var(--line);font-size:.92rem;color:var(--muted);transition:color 160ms ease}
.article-aside nav a.is-current{color:var(--ink);font-weight:600}
@media (hover:hover) and (pointer:fine){.article-aside nav a:hover{color:var(--ink)}}
.aside-cta{margin-top:24px;padding:22px;background:var(--paper-2);border:1px solid var(--line);border-radius:8px}
.aside-cta h2{font-size:1.25rem;margin-bottom:6px}
.aside-cta p{font-size:.92rem}
.article-body section{margin-bottom:44px}
.article-body h2{font-size:clamp(1.6rem,1.2rem + 1.2vw,2.1rem);letter-spacing:-.03em}
.article-body p{font-size:1.08rem;line-height:1.8;color:#3f463f}
.article-body .checklist{margin-top:-4px}
.inline-cta{margin:0 0 44px;padding:22px 24px;background:var(--paper-2);border-radius:8px;border:1px solid var(--line)}
.inline-cta p{margin-bottom:10px}
.article-end{padding-top:26px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;align-items:center;gap:14px 24px}
.article-end>p{width:100%;margin:0}
.share-status{display:block;width:100%;font-size:.88rem;color:var(--muted)}
.related{border-top:1px solid var(--line);margin-top:clamp(48px,6vw,80px)}

/* ---------- Páginas de texto (privacidad, 404, zonas) ---------- */
.prose{max-width:44rem;padding-block:24px clamp(64px,8vw,104px)}
.prose h1{font-size:clamp(2.3rem,1.4rem + 3vw,3.8rem);letter-spacing:-.04em;margin:8px 0 .5em}
.prose h2{font-size:1.6rem;margin-top:1.6em}
.prose p,.prose li{color:#3f463f;line-height:1.75}
.prose ul{padding-left:1.2em}
.prose a{text-decoration:underline;text-underline-offset:3px}
.notfound{min-height:60svh;display:grid;align-content:center;justify-items:start;gap:4px;padding-block:64px}
.notfound .code{margin:0 0 12px;font-family:var(--display);font-size:clamp(5rem,14vw,10rem);font-weight:700;line-height:.9;letter-spacing:-.06em;color:var(--yellow);-webkit-text-stroke:2px var(--ink)}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width:1100px){
  .footer-main{grid-template-columns:1fr 1fr}
  .posts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .service{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) auto;gap:10px 28px}
  #servicios .service-thumb{display:none}
}

@media (max-width:900px){
  :root{--header-h:66px}
  .menu-toggle{
    display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;
    border:1px solid var(--line);border-radius:var(--radius);background:#fff;font-weight:600;font-size:.92rem;
    transition:transform 160ms var(--ease-out);
  }
  .menu-toggle:active{transform:scale(.96)}
  .menu-toggle .i{width:20px;height:20px}
  .menu-toggle .i-close,.menu-toggle[aria-expanded="true"] .i-menu{display:none}
  .menu-toggle[aria-expanded="true"] .i-close{display:block}
  .nav nav{
    position:absolute;left:0;right:0;top:100%;
    display:flex;flex-direction:column;align-items:stretch;gap:0;
    padding:8px var(--gutter) 20px;background:var(--paper);border-bottom:1px solid var(--line);
    box-shadow:0 24px 32px -24px rgb(29 36 32 / .35);
    font-size:1.05rem;
    visibility:hidden;opacity:0;transform:translateY(-8px);
    transition:opacity 180ms ease,transform 220ms var(--ease-out),visibility 0s linear 220ms;
  }
  .nav nav.is-open{visibility:visible;opacity:1;transform:none;transition:opacity 180ms ease,transform 220ms var(--ease-out),visibility 0s}
  .nav nav>a:not(.button){padding:14px 0;border-bottom:1px solid var(--line);border-radius:0}
  .nav nav>a.button{margin:16px 0 0}
  .hero,.svc-intro,.about-grid,.faq-layout,.contact-grid,.zones{grid-template-columns:1fr}
  .hero-copy{order:1}
  .hero-visual{order:2;min-height:clamp(300px,62vw,480px)}
  .svc-video{grid-template-columns:1fr}
  .article-layout{grid-template-columns:1fr}
  .article-aside{position:static;order:2}
  .article-aside nav{display:none}
  .aside-title{display:none}
  .aside-cta{margin-top:0}
  .section-head{flex-direction:column;align-items:flex-start}
  .service,.services-3 .service{grid-template-columns:1fr auto;gap:6px 20px;padding:22px 0}
  .service h3{grid-column:1}
  .service p{grid-column:1;grid-row:2}
  .service-more{grid-column:2;grid-row:1 / span 2;font-size:0;gap:0}
  .service-more .i{width:24px;height:24px}
  .floating-wa{display:none}
  .mobile-bar{
    position:fixed;left:0;right:0;bottom:0;z-index:35;
    display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:8px;
    padding:8px var(--gutter) calc(8px + env(safe-area-inset-bottom,0px));
    background:rgb(29 36 32 / .96);
    -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
    border-top:1px solid #000;
  }
  .mobile-bar a{
    display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border-radius:var(--radius);
    color:var(--paper);font-weight:600;font-size:.95rem;border:1px solid var(--line-dark);
    transition:transform 140ms var(--ease-out),background-color 140ms ease;
  }
  .mobile-bar a:active{transform:scale(.96);background:#2b342e}
  .mobile-bar .i{width:20px;height:20px}
  .mobile-bar .mobile-bar-main{background:var(--yellow);color:var(--ink);border-color:var(--yellow)}
  .mobile-bar .mobile-bar-main:active{background:var(--yellow-2)}
  body{padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))}
}

@media (max-width:640px){
  body{font-size:1rem}
  .topbar .wrap{justify-content:center}
  .topbar .wrap>span{display:none}
  .brand img{width:44px;height:44px}
  .brand>span{font-size:1.25rem}
  .brand small{font-size:.66rem}
  .menu-label{display:none}
  .menu-toggle{padding:0 11px}
  .hero{padding-top:20px}
  .hero-copy>p{font-size:1.03rem}
  .actions{flex-direction:column;align-items:stretch;width:100%}
  .actions .button{width:100%}
  .actions .underlink{align-self:flex-start}
  .hero-foot{margin-top:28px;flex-direction:column;gap:8px}
  .hero-feature{left:10px;right:10px;bottom:10px;padding:12px 14px;gap:12px}
  .feature-icon{width:38px;height:38px}
  .hero-feature h2{font-size:1.08rem}
  .service-strip .wrap{display:grid;grid-template-columns:1fr 1fr;gap:6px 16px}
  .trust-grid{grid-template-columns:1fr}
  .clients{padding:18px}
  .gbp-link{margin-left:0}
  .gallery{grid-template-columns:1fr 1fr;grid-auto-rows:150px;gap:8px}
  .gallery-item,.gallery-item:nth-child(2),.gallery-item:nth-child(3){grid-column:span 1;grid-row:span 1}
  .gallery-item:first-child{grid-column:span 2;grid-row:span 2}
  .gallery-item>span{font-size:.7rem;padding:24px 10px 8px}
  .gallery > .gallery-item:last-child:nth-child(even){grid-column:span 2}
  .zone-list{grid-template-columns:1fr}
  .zone-list li:nth-child(odd){border-right:0}
  .zone-list li a,.zone-list li:nth-child(odd) a{padding-left:0}
  .blog-toolbar{flex-direction:column;align-items:stretch}
  .filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:calc(-1 * var(--gutter));padding-inline:var(--gutter);overscroll-behavior-x:contain}
  .filters button{flex:none}
  .search{min-width:0}
  .posts{grid-template-columns:1fr;gap:36px}
  .form-row{grid-template-columns:1fr}
  .footer-main{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column}
  details p{padding-right:0}
  .steps>div{grid-template-columns:36px 1fr}
  .article-end{flex-direction:column;align-items:flex-start}
  .article-end .button{width:100%}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:1ms!important;animation-iteration-count:1!important;transition-duration:1ms!important}
  .button[aria-busy="true"]::after{animation:spin 1.2s linear infinite!important}
}
.footer-main a .i{width:14px;height:14px}
