/* Alma Deco · landing
   Paleta corporativa: Linen, Khaki, Camel, Cocoa, Espresso */

:root {
  --linen: #F5F1EA;
  --linen-2: #EDE6DB;
  --khaki: #D7C9B8;
  --camel: #B2967D;
  --cocoa: #7D5A44;
  --espresso: #4A342A;
  --ink: #2E211B;
  --wa: #1F7A4D;

  --bg: var(--linen);
  --text: var(--espresso);
  --muted: #6E5646;
  --line: rgba(74, 52, 42, .16);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Segoe UI", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(16px, 1.05vw + 10px, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
em { font-style: italic; color: var(--cocoa); }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--cocoa); outline-offset: 3px; border-radius: 2px; }

.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: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--espresso); color: var(--linen); padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cocoa); margin-bottom: 18px;
}

h1, h2 { font-family: var(--serif); letter-spacing: -.01em; }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
h3 { font-family: var(--sans); font-size: 1.12rem; font-weight: 500; line-height: 1.3; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  background: var(--espresso); color: var(--linen);
  font-weight: 500; font-size: .98rem; text-decoration: none; border: 1px solid var(--espresso);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 20px; height: 20px; flex: none; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .92rem; }
.btn-lg { min-height: 56px; padding: 14px 32px; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--espresso); border-color: var(--line); }
.btn-ghost:hover { background: transparent; border-color: var(--espresso); color: var(--espresso); }
.btn-light { background: var(--linen); color: var(--espresso); border-color: var(--linen); }
.btn-light:hover { background: #fff; border-color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--linen) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand-name { font-family: var(--sans); font-size: 1.3rem; font-weight: 500; letter-spacing: .01em; line-height: 1; }
.brand-name b { font-weight: 600; letter-spacing: .06em; }

.nav-list { display: flex; align-items: center; gap: 32px; }
.nav-list a:not(.btn) {
  text-decoration: none; font-size: .95rem; color: var(--muted); position: relative; padding-block: 6px;
}
.nav-list a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-list a:not(.btn):hover { color: var(--espresso); }
.nav-list a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer; margin-right: -10px;
  }
  .nav-toggle-bar, .nav-toggle-bar::before {
    display: block; width: 22px; height: 1.5px; background: var(--espresso);
    transition: transform .3s var(--ease);
  }
  .nav-toggle-bar { position: relative; transform: translateY(-4px); }
  .nav-toggle-bar::before { content: ""; position: absolute; top: 8px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(-8px) rotate(-90deg); }

  .nav-list {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--linen); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-list.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a:not(.btn) { display: block; padding: 16px 0; font-size: 1.1rem; color: var(--espresso); }
  .nav-list a:not(.btn)::after { display: none; }
  .nav-list .nav-cta { border: 0; padding-top: 20px; }
  .nav-list .nav-cta .btn { width: 100%; min-height: 52px; }
}

/* Hero */
.hero { padding-top: clamp(32px, 6vw, 72px); }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center;
}
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); line-height: .98; margin-bottom: 28px; }
.hero h1 em { display: block; }
.lead { font-size: clamp(1.05rem, 1.2vw + .5rem, 1.25rem); color: var(--muted); max-width: 34em; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-media { margin: 0; position: relative; justify-self: end; width: min(100%, 440px); }
.arch {
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden; background: var(--khaki);
  aspect-ratio: 3 / 4;
}
.arch video, .arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { margin-top: 14px; font-size: .85rem; color: var(--muted); padding-right: 56px; }
.video-toggle {
  position: absolute; right: 0; bottom: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--line);
}
.video-toggle:hover { border-color: var(--espresso); }
.video-toggle .icon { width: 16px; height: 16px; fill: var(--espresso); }
.video-toggle .icon-play { display: none; }
.video-toggle[aria-pressed="true"] .icon-play { display: block; }
.video-toggle[aria-pressed="true"] .icon-pause { display: none; }

.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: clamp(56px, 8vw, 104px);
  padding-top: 28px; padding-bottom: 28px;
  border-top: 1px solid var(--line);
}
.pillars li { display: flex; gap: 16px; align-items: baseline; color: var(--muted); font-size: .98rem; }
.pillars strong { color: var(--espresso); font-weight: 500; }
.pillar-n { font-family: var(--serif); font-size: 1.4rem; color: var(--camel); font-style: italic; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { justify-self: center; width: min(100%, 380px); }
  .pillars { grid-template-columns: 1fr; gap: 16px; }
}

/* Secciones */
.section { padding-block: var(--section); }
.section-soft { background: var(--linen-2); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { margin-bottom: 20px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; max-width: 38em; }
.section-head-row {
  max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap;
}
.section-head-row h2 { margin-bottom: 0; }

/* Líneas hogar */
.lines {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px);
}
.line { display: flex; flex-direction: column; }
.line img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius);
  background: var(--khaki);
}
.line-lg { grid-row: span 2; }
.line-lg img { aspect-ratio: auto; flex: 1; min-height: 0; height: 100%; }
.line-body { padding-top: 18px; }
.line-body h3 { margin-bottom: 6px; }
.line-body p { color: var(--muted); font-size: .96rem; }
.line-link {
  display: inline-block; margin-top: 12px; font-size: .9rem; font-weight: 500;
  color: var(--cocoa); text-decoration: none; border-bottom: 1px solid var(--camel); padding-bottom: 2px;
}
.line-link::after { content: " →"; transition: margin .25s var(--ease); }
.line-link:hover { color: var(--espresso); border-color: var(--espresso); }

.line-ask { grid-column: span 2; }
.ask {
  height: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(16px, 3vw, 40px); padding: clamp(24px, 3vw, 40px);
  background: var(--khaki); border-radius: var(--radius);
}
.ask img { width: 56px; height: 56px; }
.ask h3 { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 500; line-height: 1.1; margin-bottom: 8px; }
.ask p { color: var(--espresso); font-size: .96rem; max-width: 34em; }

@media (max-width: 980px) {
  .lines { grid-template-columns: repeat(2, 1fr); }
  .line-lg { grid-column: span 2; grid-row: auto; }
  .line-lg img { aspect-ratio: 16 / 10; height: auto; }
  .line-ask { grid-column: auto; }
  .ask { grid-template-columns: 1fr; justify-items: start; align-content: end; }
}
@media (max-width: 560px) {
  .lines { grid-template-columns: 1fr; gap: 40px; }
  .line-lg, .line-ask { grid-column: auto; }
  .ask { grid-template-columns: 1fr; justify-items: start; }
  .line-lg img { aspect-ratio: 4 / 5; }
}

/* Oficina */
.section-dark { background: var(--espresso); color: var(--linen); }
.section-dark .eyebrow { color: var(--khaki); }
.section-dark em { color: var(--khaki); }
.office { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.office-copy h2 { margin-bottom: 24px; }
.office-copy > p:not(.eyebrow) { color: rgba(245, 241, 234, .78); font-size: 1.08rem; max-width: 30em; }
.checks { margin: 32px 0 40px; border-top: 1px solid rgba(245, 241, 234, .16); }
.checks li {
  padding: 14px 0 14px 28px; border-bottom: 1px solid rgba(245, 241, 234, .16); position: relative;
}
.checks li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--camel);
}
.office-media { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: end; }
.office-media figure { margin: 0; }
.office-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.office-main img { border-radius: 999px 999px var(--radius) var(--radius); }
.office-side { margin-bottom: 48px !important; }
.office-media figcaption { margin-top: 12px; font-size: .85rem; color: rgba(245, 241, 234, .66); }

@media (max-width: 900px) {
  .office { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .office-media { grid-template-columns: 1fr; }
  .office-side { margin-bottom: 0 !important; }
}

/* Proceso */
.process { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.process-media { position: sticky; top: 100px; }
.arch-sm { max-width: 420px; }
.note { margin-top: 14px; font-size: .85rem; color: var(--muted); }
.process-copy h2 { margin-bottom: clamp(32px, 4vw, 48px); }
.steps { counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 64px 1fr; column-gap: 8px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--serif); font-style: italic; font-size: 1.9rem; line-height: 1; color: var(--camel);
}
.steps h3 { font-size: 1.25rem; margin-bottom: 8px; }
.steps p { color: var(--muted); max-width: 34em; }

@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; }
  .process-media { position: static; order: 2; }
  .arch-sm { max-width: 340px; }
}

/* Galería */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  min-height: 40px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--muted); font-size: .92rem;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.filter:hover { border-color: var(--espresso); color: var(--espresso); }
.filter.is-active { background: var(--espresso); border-color: var(--espresso); color: var(--linen); }

.gallery { columns: 3 260px; column-gap: 16px; }
@media (max-width: 600px) {
  .gallery { columns: 2; column-gap: 10px; }
  .gallery li { margin-bottom: 10px; }
  .tile span { display: none; }
}
.gallery li { break-inside: avoid; margin-bottom: 16px; }
.gallery li[hidden] { display: none; }
.tile {
  display: block; width: 100%; padding: 0; border: 0; background: var(--khaki); cursor: zoom-in;
  position: relative; overflow: hidden; border-radius: var(--radius);
}
.tile img { width: 100%; transition: transform .6s var(--ease); }
.tile span {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(245, 241, 234, .92); color: var(--espresso);
  font-size: .82rem; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.tile:hover img { transform: scale(1.03); }
.tile:hover span, .tile:focus-visible span { opacity: 1; transform: none; }
@media (hover: none) { .tile span { opacity: 1; transform: none; } }
.gallery-more { margin-top: 32px; color: var(--muted); }
.gallery-more a { color: var(--cocoa); font-weight: 500; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 56px 16px 72px;
  border: 0; background: rgba(46, 33, 27, .96); color: var(--linen);
}
.lightbox[open] { display: grid; place-items: center; grid-template-rows: 1fr auto; gap: 16px; }
.lightbox::backdrop { background: rgba(46, 33, 27, .8); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto; object-fit: contain; border-radius: var(--radius); }
.lightbox p { font-size: .95rem; color: var(--khaki); }
.lightbox-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  background: rgba(245, 241, 234, .1); border: 1px solid rgba(245, 241, 234, .25); color: var(--linen);
  font-size: 1.6rem; line-height: 1; display: grid; place-items: center;
}
.lightbox-btn:hover { background: rgba(245, 241, 234, .2); }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; transform: none; }
  .lightbox-prev { left: calc(50% - 56px); }
  .lightbox-next { right: calc(50% - 56px); }
}

/* CTA final */
.cta { padding-block: var(--section); text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-mark { width: 72px; height: 72px; margin-bottom: 28px; opacity: .9; }
.cta h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin-bottom: 18px; }
.cta p { color: var(--muted); font-size: 1.1rem; margin-bottom: 32px; max-width: 30em; }
.cta .cta-phone { margin: 18px 0 0; font-size: .95rem; letter-spacing: .04em; }

.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { background: #17633e; border-color: #17633e; }

/* Footer */
.site-footer { background: var(--ink); color: var(--khaki); padding-top: 64px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; align-items: start; }
.footer-logo { width: 170px; }
.footer-cols { display: flex; gap: clamp(40px, 8vw, 96px); flex-wrap: wrap; }
.footer-h { font-family: var(--sans); font-size: .76rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--camel); margin-bottom: 16px; }
.footer-cols li { margin-bottom: 10px; font-size: .95rem; }
.footer-cols a { text-decoration: none; color: var(--linen); }
.footer-cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-legal {
  margin-top: 56px; padding-block: 24px; border-top: 1px solid rgba(215, 201, 184, .14);
  display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
  font-size: .85rem; color: rgba(215, 201, 184, .7);
}
.footer-legal a { color: var(--khaki); text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--linen); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 8px 24px rgba(46, 33, 27, .25);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float .icon { width: 28px; height: 28px; }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Zonas de servicio */
address { font-style: normal; }
.zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
.zone { padding: 28px 24px 32px; border-top: 1px solid var(--espresso); }
.zone h3 { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; line-height: 1.1; margin-bottom: 12px; }
.zone p { color: var(--muted); font-size: .96rem; }
.visit {
  margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3vw, 36px);
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--khaki); border-radius: var(--radius);
}
.visit h3 { margin-bottom: 6px; }
.visit address { color: var(--espresso); }
@media (max-width: 980px) { .zones { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .zones { grid-template-columns: 1fr; } .zone { padding-inline: 0; } }

/* Preguntas frecuentes */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-size: 1.08rem; font-weight: 500;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: 1.8rem; color: var(--cocoa); transition: transform .3s var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 40px 24px 0; color: var(--muted); max-width: 40em; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } .faq .section-head { margin-bottom: 0; } }

.footer-cols address { color: var(--khaki); }
