/* ==========================================================================
   Edificaciones Henko — estilos
   ========================================================================== */

/* ---------- Fuentes ---------- */
@font-face { font-family: "Archivo"; font-weight: 200; font-display: swap; src: url("../fonts/archivo-200.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 300; font-display: swap; src: url("../fonts/archivo-300.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url("../fonts/archivo-400.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 500; font-display: swap; src: url("../fonts/archivo-500.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url("../fonts/archivo-600.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("../fonts/archivo-700.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --ink: #252B33;          /* texto y fondos oscuros */
  --ink-soft: #66758A;     /* texto secundario / panel Los Pinos */
  --muted: #868686;
  --line: #E5E5E5;
  --paper: #FFFFFF;
  --paper-2: #F7F7F7;

  --romana: #BE633A;       /* terracota Romaña 125 */
  --romana-dark: #803A1A;
  --pinos: #5E7BBC;        /* azul Los Pinos */
  --pinos-panel: #66758A;

  --accent: var(--romana);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --radius: 0;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.15; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.section { padding-block: clamp(56px, 8vw, 110px); }
.section-title { font-size: 14px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 28px; }
.section-title--right { text-align: right; }

.divider-mark { display: flex; justify-content: center; padding-block: 48px; }
.divider-mark img { width: 30px; height: 30px; opacity: .9; }

/* Imagen de fondo responsive (<picture class="bg">) */
.bg { position: absolute; inset: 0; z-index: 0; }
.bg img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 12px 22px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2;
  border: 1px solid transparent; background: var(--ink); color: #fff;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); }
.btn--accent:hover { background: var(--romana-dark); }
.btn--ghost { background: transparent; border-color: currentColor; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--white { background: #fff; color: var(--accent); }
.btn--white:hover { background: var(--accent); color: #fff; }
.btn--brochure { background: rgba(37, 43, 51, .75); backdrop-filter: blur(4px); text-align: left; }
.btn--brochure:hover { background: var(--accent); }
.btn--brochure svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: background .35s, backdrop-filter .35s, height .35s;
}
.site-header.is-scrolled { background: rgba(37, 43, 51, .82); backdrop-filter: blur(8px); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.brand { position: relative; display: block; flex: none; width: 150px; height: 100%; }
.brand img { position: absolute; left: 0; transition: opacity .35s, transform .35s var(--ease); }
.brand__full { top: 16px; width: 70px; }
.brand__compact { top: 50%; width: 92px; transform: translateY(-50%); opacity: 0; }
.site-header.is-scrolled .brand__full { opacity: 0; transform: translateY(-10px); }
.site-header.is-scrolled .brand__compact { opacity: 1; }
/* Logos de proyecto (Romaña) */
.brand--wide .brand__full { width: 120px; top: 22px; }

.main-nav { display: flex; align-items: center; gap: 36px; margin-right: auto; }
.main-nav > * { display: block; line-height: 1.2; }
.main-nav a, .main-nav button {
  position: relative; background: none; border: 0; padding: 6px 0;
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.main-nav a::after, .main-nav button::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);
}
.main-nav a:hover::after, .main-nav button:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: -18px; min-width: 190px; padding: 10px 0;
  background: rgba(37, 43, 51, .95);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .25s var(--ease);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 9px 18px; }
.dropdown a::after { display: none; }
.dropdown a:hover { background: rgba(255, 255, 255, .08); }

.header-contact { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.social { display: flex; gap: 14px; }
.social a { display: grid; place-items: center; width: 22px; height: 22px; transition: opacity .2s; }
.social a:hover { opacity: .7; }
.social svg { width: 17px; height: 17px; fill: currentColor; }

.menu-toggle { display: none; margin-left: auto; width: 40px; height: 40px; background: none; border: 0; padding: 8px; }
.menu-toggle span { display: block; height: 2px; background: currentColor; margin: 5px 0; transition: .3s; }

/* ---------- Menú lateral (móvil) ---------- */
.offcanvas {
  position: fixed; inset: 0; z-index: 200;
  display: flex; justify-content: flex-end;
  visibility: hidden; pointer-events: none;
}
.offcanvas.is-open { visibility: visible; pointer-events: auto; }
.offcanvas__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .3s; }
.offcanvas.is-open .offcanvas__backdrop { opacity: 1; }
.offcanvas__panel {
  position: relative; width: min(360px, 88vw); height: 100%;
  background: var(--ink); color: #fff;
  padding: 28px 32px 40px; display: flex; flex-direction: column; gap: 32px;
  transform: translateX(100%); transition: transform .4s var(--ease);
  overflow-y: auto;
}
.offcanvas.is-open .offcanvas__panel { transform: none; }
.offcanvas__close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; background: none; border: 0; font-size: 28px; line-height: 1; }
.offcanvas__logo { width: 90px; }
.offcanvas nav a { display: block; padding: 10px 0; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.offcanvas__sub { padding-left: 16px; }
.offcanvas__sub a { font-size: 13px; color: rgba(255, 255, 255, .75); }
.offcanvas__contact { margin-top: auto; display: grid; gap: 8px; font-size: 15px; }

/* ---------- Hero con slideshow ---------- */
.hero { position: relative; min-height: 100svh; color: #fff; overflow: hidden; background: var(--ink); }
.hero--short { min-height: min(100svh, 820px); }
.slideshow { position: absolute; inset: 0; }
.slideshow > * {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease; transform: scale(1.04);
}
.slideshow > .is-active { opacity: 1; animation: kenburns 7s linear forwards; }
@keyframes kenburns { to { transform: scale(1); } }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 65%, rgba(0,0,0,.35) 100%); }

.hero__projects {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: flex; gap: 18px;
}
.hero-card {
  position: relative; display: flex; flex-direction: column;
  width: 250px; height: 380px; padding: 18px;
  border: 1px solid rgba(255, 255, 255, .85);
  transition: background .35s, backdrop-filter .35s;
}
.hero-card img { width: 100%; max-width: 210px; }
.hero-card__area { font-size: 13px; text-align: center; }
.hero-card .btn { align-self: center; margin-top: auto; margin-bottom: 16px; transform: translateY(8px); opacity: 0; transition: .35s var(--ease); white-space: nowrap; }
.hero-card:hover, .hero-card:focus-within { background: rgba(37, 43, 51, .35); backdrop-filter: blur(3px); }
.hero-card:hover .btn, .hero-card:focus-within .btn { opacity: 1; transform: none; }

/* Hero de proyecto */
.project-hero { position: relative; min-height: min(100svh, 900px); color: #fff; background: var(--ink) center / cover no-repeat; }
.project-hero__content {
  position: absolute; left: 0; right: 0; bottom: clamp(32px, 7vw, 80px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.project-hero__logo { width: clamp(200px, 26vw, 320px); }
.project-hero__address { font-size: clamp(16px, 1.6vw, 20px); font-weight: 300; letter-spacing: .06em; margin-top: 10px; }

/* ---------- Intro ---------- */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.intro h1 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 300; letter-spacing: .02em; }
.intro__text { font-size: 17px; font-weight: 300; text-align: justify; color: var(--ink); }
.intro__text strong { font-weight: 600; }
.intro__img { margin-top: 28px; width: 100%; max-width: 330px; }

/* ---------- Tarjetas de proyecto (home) ---------- */
.projects { display: grid; gap: 22px; }
.project-card {
  --panel: var(--romana);
  position: relative; display: block; aspect-ratio: 1920 / 711; min-height: 300px;
  background: var(--ink) center / cover no-repeat; color: #fff; overflow: hidden;
}
.project-card--pinos { --panel: var(--pinos-panel); }
.project-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,0) 55%); }
.project-card > :not(.bg) { z-index: 2; }
.project-card__logo { position: absolute; top: 22px; left: 26px; width: clamp(180px, 22vw, 260px); }
.project-card__brochure { position: absolute; left: 0; bottom: 30px; }
.project-card__toggle {
  position: absolute; right: 26px; bottom: 26px;
  background: rgba(255, 255, 255, .92); color: var(--ink); border: 0;
  padding: 10px 18px; font-size: 12px; font-weight: 600; letter-spacing: .12em;
  transition: opacity .3s;
}
.project-card__panel {
  position: absolute; top: 50%; right: 26px; width: 250px; padding: 30px 26px 26px;
  background: var(--panel); color: #fff;
  opacity: 0; visibility: hidden; transform: translate(12px, -50%);
  transition: .4s var(--ease);
}
.project-card.is-open .project-card__panel,
.project-card:hover .project-card__panel { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.project-card.is-open .project-card__toggle,
.project-card:hover .project-card__toggle { opacity: 0; pointer-events: none; }
.project-card__close { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border: 1px solid rgba(255,255,255,.8); background: none; color: #fff; font-size: 18px; line-height: 1; }
.facts { font-size: 14px; line-height: 1.7; }
.facts__label { margin: 16px 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.project-card__panel .btn { margin-top: 18px; width: 100%; }

/* ---------- Sección de proyecto: resumen ---------- */
.overview { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.overview__logo { width: clamp(200px, 24vw, 300px); margin-bottom: 24px; }
.overview h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: .06em; margin-bottom: 18px; }
.overview p { font-size: 17px; font-weight: 300; }
.fact-box { border: 1px solid var(--line); padding: 34px 38px; }
.fact-box ul { font-size: 16px; line-height: 1.9; }
.fact-box .facts__label { font-size: 13px; color: var(--accent); margin-top: 22px; }

/* ---------- Galería (slideshow) ---------- */
.gallery { position: relative; aspect-ratio: 1920 / 956; min-height: 360px; overflow: hidden; background: var(--ink); color: #fff; }
.gallery::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 80%, rgba(0,0,0,.35) 100%); pointer-events: none; }
.gallery > p, .gallery__dots { z-index: 1; }
.gallery__caption { position: absolute; left: 0; right: 0; top: clamp(24px, 5vw, 60px); text-align: center; padding-inline: var(--gutter); font-size: clamp(16px, 2vw, 24px); font-weight: 300; letter-spacing: .06em; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.gallery__note { position: absolute; left: var(--gutter); bottom: 18px; font-size: 12px; letter-spacing: .06em; opacity: .9; }
.gallery__dots { position: absolute; right: var(--gutter); bottom: 18px; display: flex; gap: 8px; }
.gallery__dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid #fff; background: transparent; }
.gallery__dots button.is-active { background: #fff; }

/* ---------- Cita ---------- */
.quote { max-width: 760px; margin-inline: auto; text-align: center; font-size: clamp(20px, 2.4vw, 30px); font-weight: 300; line-height: 1.45; color: var(--ink-soft); }
.quote strong { font-weight: 600; color: var(--accent); }

/* ---------- Ubicación / Entorno ---------- */
.location { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.location__list h3 { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 20px 0 6px; }
.location__list h3:first-child { margin-top: 0; }
.location__list li { font-size: 14px; line-height: 1.7; }
.location__map figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 18px; }
.location__map figcaption span { font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.location__logo { width: 180px; margin-bottom: 26px; }

.surroundings { position: relative; aspect-ratio: 1920 / 956; min-height: 360px; background: center / cover no-repeat; color: #fff; }
.surroundings__text { position: absolute; left: var(--gutter); bottom: clamp(24px, 5vw, 60px); max-width: 520px; font-size: clamp(18px, 2.2vw, 28px); font-weight: 300; line-height: 1.35; text-shadow: 0 1px 16px rgba(0,0,0,.45); }

/* ---------- Planos (carrusel) ---------- */
.plans__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 20px; }
.plans__logo { width: clamp(160px, 18vw, 220px); }
.plan-info { text-align: right; }
.plan-info__kicker { font-size: 13px; font-weight: 500; letter-spacing: .2em; }
.plan-info__name { font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: .08em; color: var(--accent); }
.plan-info__area { font-size: 18px; font-weight: 600; }
.plan-info__rooms { font-size: 15px; color: var(--ink-soft); }

.carousel { position: relative; }
.carousel__track { display: flex; transition: transform .6s var(--ease); }
.carousel__viewport { overflow: hidden; }
.carousel__slide { flex: 0 0 100%; min-width: 0; }
.carousel__slide img { width: 100%; aspect-ratio: 1920 / 956; object-fit: cover; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .9); border: 1px solid var(--ink-soft); color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.carousel__btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.carousel__btn--prev { left: 8px; }
.carousel__btn--next { right: 8px; }
.carousel__btn svg { width: 18px; height: 18px; }
.plan-rooms { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 18px; font-size: 14px; color: var(--ink-soft); }
.plan-rooms li::before { content: "·"; margin-right: 8px; color: var(--accent); font-weight: 700; }
.plan-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.plan-tabs button { padding: 8px 14px; font-size: 12px; font-weight: 600; letter-spacing: .1em; border: 1px solid var(--line); background: #fff; }
.plan-tabs button.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Cotizar ---------- */
.quote-section { position: relative; color: #fff; background: var(--ink) center / cover no-repeat; }
.quote-section::before { content: ""; position: absolute; inset: 0; background: rgba(37, 43, 51, .55); }
.quote-section > * { position: relative; }
.quote-grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.quote-grid__brand img { width: 110px; margin-bottom: 20px; }
.quote-grid__brand a { font-size: 20px; font-weight: 600; letter-spacing: .04em; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: inherit;
  background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .7);
  padding: 8px 2px; border-radius: 0;
}
.field select option { color: var(--ink); }
.field textarea { border: 1px solid rgba(255, 255, 255, .7); min-height: 110px; resize: vertical; padding: 10px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .7); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; grid-column: 1 / -1; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check a, .check button { text-decoration: underline; background: none; border: 0; padding: 0; }
.form__actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.form__status { font-size: 14px; }
.form .btn[disabled] { opacity: .6; cursor: progress; }

/* Formularios sobre fondo claro */
.form--light .field input, .form--light .field select, .form--light .field textarea { border-color: #BFC5CC; }
.form--light .field textarea { border: 1px solid #BFC5CC; }
.form--light .field input::placeholder, .form--light .field textarea::placeholder { color: var(--muted); }
.form--light .field input:focus, .form--light .field select:focus, .form--light .field textarea:focus { border-color: var(--ink); }
.form--light fieldset { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.form--light legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; width: 100%; }
.form--light .check { grid-column: auto; }

/* ---------- Contacto ---------- */
.contact-card {
  position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(28px, 8vw, 120px);
  min-height: 420px; padding: 40px var(--gutter);
  color: #fff; background: var(--ink) center / cover no-repeat;
}
.contact-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(37,43,51,.15), rgba(37,43,51,.45)); }
.contact-card > :not(.bg) { position: relative; z-index: 1; }
.contact-card__logo { width: 110px; }
.contact-card { overflow: hidden; }
.contact-card__info { display: grid; gap: 10px; font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; }
.contact-card__info .social svg { width: 22px; height: 22px; }
.contact-card__info .social a { width: 28px; height: 28px; }

/* ---------- Footer ---------- */
.site-footer { padding: 26px 0 34px; font-size: 13px; }
.site-footer ul { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 12px 28px; }
.site-footer a, .site-footer button { background: none; border: 0; padding: 0; }
.site-footer a:hover, .site-footer button:hover { color: var(--accent); }
.site-footer__copy { margin-top: 18px; text-align: center; color: var(--muted); font-size: 12px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .25s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.modal__dialog { position: relative; width: min(760px, 100%); max-height: 86vh; overflow-y: auto; background: #fff; padding: clamp(28px, 5vw, 48px); }
.modal__dialog h2 { font-size: 22px; font-weight: 600; margin-bottom: 18px; }
.modal__dialog p { font-size: 14px; text-align: justify; color: #444; }
.modal__close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: none; font-size: 28px; line-height: 1; }

/* ---------- WhatsApp flotante ---------- */
.whatsapp {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
  transition: transform .25s var(--ease);
}
.whatsapp:hover { transform: scale(1.08); }
.whatsapp svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------- Popup promocional ---------- */
.promo { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
.promo.is-open { visibility: visible; opacity: 1; }
.promo__backdrop { position: absolute; inset: 0; background: rgba(15, 18, 24, .72); backdrop-filter: blur(3px); }
.promo__dialog {
  position: relative; display: flex; flex-direction: column;
  width: min(420px, 100%, calc((100svh - 150px) * 9 / 16));
  background: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  transform: translateY(16px) scale(.98); transition: transform .4s var(--ease);
}
.promo.is-open .promo__dialog { transform: none; }
.promo__media { display: block; }
.promo__media img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.promo__close {
  position: absolute; top: -14px; right: -14px; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: #fff; color: var(--ink); font-size: 26px; line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.promo__close:hover { background: var(--romana); color: #fff; }
.promo__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
.promo__actions .btn { padding: 12px 10px; font-size: 12px; }
.promo__wa { background: #25D366; color: #fff; }
.promo__wa:hover { background: #1DA851; }
.promo__wa svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.promo__call { color: #fff; }
@media (max-width: 420px) {
  .promo__close { top: 8px; right: 8px; width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .promo, .promo__dialog { transition: none; }
}

/* ---------- Páginas simples (legales / gracias) ---------- */
.page-top { padding-top: calc(var(--header-h) + 40px); }
.site-header--solid { background: var(--ink); }
.site-header--solid .brand__full { opacity: 0; }
.site-header--solid .brand__compact { opacity: 1; }
.prose { max-width: 820px; }
.prose h1 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 300; margin-bottom: 28px; }
.prose h2 { font-size: 18px; font-weight: 600; margin: 30px 0 10px; }
.prose p, .prose li { font-size: 15px; color: #444; text-align: justify; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }

.thanks { min-height: 100svh; display: grid; place-items: center; text-align: center; color: #fff; background: var(--ink) center / cover no-repeat; position: relative; padding: calc(var(--header-h) + 40px) var(--gutter) 60px; }
.thanks::before { content: ""; position: absolute; inset: 0; background: rgba(37, 43, 51, .6); }
.thanks > * { position: relative; max-width: 640px; }
.thanks h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 300; margin-bottom: 20px; }
.thanks p { font-size: 17px; font-weight: 300; }
.thanks .btn { margin-top: 20px; }
.thanks__sign { margin-top: 36px; font-size: 15px; opacity: .9; }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .slideshow > .is-active { animation: none; }
  .carousel__track { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .main-nav, .header-contact { display: none; }
  .menu-toggle { display: block; }
  .hero__projects { left: var(--gutter); right: var(--gutter); top: auto; bottom: 40px; transform: none; justify-content: center; }
  .hero-card { width: 50%; max-width: 250px; height: 300px; }
}

@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .brand__full { width: 56px; top: 12px; }
  .brand--wide .brand__full { width: 100px; top: 16px; }

  .hero__projects { gap: 10px; bottom: 28px; }
  .hero-card { height: 230px; padding: 12px; }
  .hero-card__area { font-size: 11px; }
  .hero-card .btn { opacity: 1; transform: none; margin-bottom: 10px; padding: 8px 12px; font-size: 11px; }

  .intro, .overview, .quote-grid, .location { grid-template-columns: 1fr; }
  .intro__text { text-align: left; }

  .project-card { aspect-ratio: auto; min-height: 560px; }
  .project-card__panel { top: auto; bottom: 90px; left: 16px; right: 16px; width: auto; transform: translateY(12px); }
  .project-card.is-open .project-card__panel,
  .project-card:hover .project-card__panel { transform: none; }
  .project-card__toggle { right: 16px; bottom: 30px; }

  .project-hero__content { flex-direction: column; align-items: flex-start; }

  .gallery, .surroundings { aspect-ratio: 4 / 5; }
  .gallery__caption { top: 24px; }

  .plans__head { flex-direction: column; }
  .plan-info { text-align: left; }
  .carousel__btn { width: 36px; height: 36px; }

  .form { grid-template-columns: 1fr; }
  .form__actions { justify-content: stretch; flex-direction: column-reverse; align-items: stretch; }

  .contact-card { flex-direction: column; min-height: 520px; text-align: center; }
  .contact-card__info .social { justify-content: center; }

  .site-footer ul { flex-direction: column; align-items: center; }
}
