/* ============ Tokens ============ */
:root {
  --ink: #0e1726;
  --navy: #13233a;
  --navy-2: #1c3150;
  --brass: #c9973f;
  --brass-2: #e2b768;
  --brass-ink: #9a6d22;
  --cream: #f6f2ea;
  --stone: #ece5d8;
  --text: #1b2433;
  --muted: #5b6475;
  --line: #e2dccf;
  --wa: #25d366;
  --wa-dark: #1da851;
  --radius: 20px;
  --shadow: 0 20px 50px -20px rgba(14, 23, 38, .35);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.02em; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--brass-ink); }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; margin-top: 48px; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass-ink);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brass); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 0;
  font: 700 .95rem/1.2 var(--font);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 16px 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--wa { background: var(--wa); color: #06331a; box-shadow: 0 12px 28px -12px rgba(37, 211, 102, .8); }
.btn--wa:hover { background: #2fe072; }
.btn--ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); }

/* ============ Header ============ */
.header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  transition: box-shadow .25s;
}
/* El blur va en un pseudo-elemento: si estuviera en .header, el menú móvil (position: fixed) quedaría atrapado dentro */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(14, 23, 38, .25); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 46px; height: 46px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-size: 1.3rem; font-weight: 800; color: var(--navy); letter-spacing: .16em; text-transform: uppercase; }
.brand__text small { font-size: .66rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--brass-ink); margin-top: 5px; }
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text small { color: var(--brass-2); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav > a { white-space: nowrap; }
.nav > a:not(.btn) { font-weight: 600; font-size: .95rem; color: var(--text); position: relative; }
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
  background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav > a:not(.btn):hover::after { transform: scaleX(1); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--navy); border-radius: 12px; cursor: pointer; padding: 0; position: relative; z-index: 60; }
.burger span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px auto; border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ Hero ============ */
.hero { position: relative; padding: 56px 0 88px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 20%, rgba(201, 151, 63, .18), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(19, 35, 58, .08), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--cream) 100%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; margin-bottom: 20px; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--muted); max-width: 54ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 28px; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: .92rem; color: var(--navy); }
.hero__trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust .ico { color: var(--brass); }

.hero__media { position: relative; }
.hero__frame { border-radius: 28px; box-shadow: var(--shadow); transform: rotate(1.5deg); background: #fff; padding: 10px; }
.hero__frame img { border-radius: 22px; width: 100%; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow);
  font-size: .85rem; line-height: 1.3; animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--navy); font-size: .95rem; }
.float-card span { color: var(--muted); }
.float-card--a { left: -28px; bottom: 48px; }
.float-card--b { right: -16px; top: 28px; flex-direction: column; align-items: flex-start; gap: 2px; background: var(--navy); animation-delay: -3s; }
.float-card--b strong { color: var(--brass-2); }
.float-card--b span { color: #cdd5e1; }
.float-card__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--wa); color: #fff; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ============ Ticker ============ */
.ticker { background: var(--navy); color: var(--cream); overflow: hidden; padding: 18px 0; }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.ticker span::after { content: "◆"; color: var(--brass); font-size: .7rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============ Sections ============ */
.section { padding: 104px 0; }
.section--soft { background: var(--cream); }
.section--dark { background: var(--ink); color: #cdd5e1; position: relative; overflow: hidden; }
.section--dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 100% 0%, rgba(201, 151, 63, .16), transparent 70%);
}
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head h2, .split h2, .why h2, .cta h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; }
.section__head p { color: var(--muted); font-size: 1.08rem; }
.section__head--light h2 { color: #fff; }
.section__head--light h2 em { color: var(--brass-2); }
.section__head--light p { color: #aeb8c8; }
.section__head--light .eyebrow { color: var(--brass-2); }

/* ============ Service cards ============ */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--cream); color: var(--navy); margin-bottom: 20px; transition: background .25s, color .25s;
}
.card:hover .card__icon { background: var(--navy); color: var(--brass-2); }
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tag {
  position: absolute; top: 30px; right: 24px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(201, 151, 63, .14); color: var(--brass-ink); padding: 6px 10px; border-radius: 999px;
}
.card h3 { font-size: 1.25rem; font-weight: 800; }
.card__list { list-style: none; padding: 0; margin: 4px 0 22px; color: var(--muted); }
.card__list li { padding: 6px 0 6px 22px; position: relative; border-bottom: 1px dashed var(--line); }
.card__list li:last-child { border-bottom: 0; }
.card__list li::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; border-radius: 2px; background: var(--brass); transform: rotate(45deg); }
.card__link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--navy); }
.card__link .ico { transition: transform .2s; }
.card__link:hover .ico { transform: translateX(4px); }

/* ============ Remodel tiles ============ */
.remodel { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 22px; position: relative; }
.remodel__item { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: #1c2b41; min-height: 260px; }
.remodel__item--big { grid-row: span 2; }
.remodel__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.remodel__item:hover img { transform: scale(1.05); }
.remodel__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 70px 26px 24px;
  background: linear-gradient(180deg, transparent, rgba(10, 17, 28, .92));
  color: #dfe5ee;
}
.remodel__item figcaption span { font-family: var(--serif); font-style: italic; color: var(--brass-2); font-size: 1.1rem; }
.remodel__item figcaption h3 { color: #fff; font-size: 1.5rem; margin: 4px 0 6px; }
.remodel__item figcaption p { margin: 0; font-size: .95rem; max-width: 42ch; }

/* ============ Split ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 104px; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--stone) 0 10px, transparent 10px 20px); z-index: -1;
}
.split--reverse .split__media::before { inset: 24px 24px -24px -24px; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split__copy p { color: var(--muted); font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy); }
.checks .ico { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--navy); color: var(--brass-2); }

/* ============ Steps ============ */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { background: #fff; border-radius: var(--radius); padding: 30px 26px; position: relative; border: 1px solid var(--line); }
.step__n {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy); color: var(--brass-2); font: 600 1.4rem var(--serif); margin-bottom: 18px;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 56px; right: -22px; width: 22px; height: 2px; background: var(--brass);
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ============ Why ============ */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.why__intro p { color: var(--muted); font-size: 1.08rem; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feat { padding: 26px; border-radius: var(--radius); background: var(--cream); border-left: 4px solid var(--brass); }
.feat h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feat p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ============ Gallery ============ */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery__item { margin: 0; position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius); cursor: zoom-in; background: var(--stone); box-shadow: 0 14px 34px -22px rgba(14, 23, 38, .5); }
.gallery__item picture, .gallery__item img { width: 100%; height: 100%; }
.gallery__item img { object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 48px 18px 16px;
  font-weight: 700; font-size: .92rem; line-height: 1.3; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(10, 17, 28, .88));
}

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 17, 28, .9); }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 14px; margin: 0 auto; }
.lightbox__caption { color: #fff; text-align: center; margin: 12px 0 0; font-weight: 600; }
.lightbox__close {
  position: absolute; top: -18px; right: -18px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--navy); font-size: 1.6rem; line-height: 1; box-shadow: var(--shadow);
}

/* ============ CTA / form ============ */
.cta { background: linear-gradient(135deg, var(--navy) 0%, var(--ink) 100%); color: #cdd5e1; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -200px;
  background: radial-gradient(circle, rgba(201, 151, 63, .25), transparent 70%);
}
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; }
.cta h2 { color: #fff; }
.cta h2 em { color: var(--brass-2); }
.cta .eyebrow { color: var(--brass-2); }
.cta__copy p { font-size: 1.08rem; color: #aeb8c8; max-width: 46ch; }
.cta__direct { display: inline-flex; align-items: center; gap: 14px; margin-top: 12px; padding: 12px 22px 12px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); transition: background .2s; }
.cta__direct:hover { background: rgba(255, 255, 255, .12); }
.cta__direct-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--wa); color: #fff; }
.cta__direct-icon .ico { width: 26px; height: 26px; }
.cta__direct small { display: block; color: #aeb8c8; font-size: .8rem; }
.cta__direct strong { color: #fff; font-size: 1.1rem; }

.form { background: #fff; border-radius: 24px; padding: 34px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); display: grid; gap: 16px; color: var(--text); }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--navy); }
.form .opt { font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea {
  font: 500 1rem var(--font); color: var(--text); width: 100%;
  padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fbfaf7;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 4px rgba(201, 151, 63, .18); background: #fff; }
.form__error { margin: 0; color: #b42318; font-weight: 600; font-size: .9rem; }

/* ============ Footer ============ */
.footer { background: var(--ink); color: #8f9aad; padding: 56px 0 100px; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer__inner { display: grid; gap: 22px; justify-items: start; }
.footer__services { max-width: 80ch; margin: 0; font-size: .92rem; }
.footer__copy { margin: 0; font-size: .85rem; }

/* ============ WhatsApp floating ============ */
.wa-float {
  position: fixed; z-index: 40;
  right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .7);
  transition: transform .2s;
}
.wa-float .ico { width: 34px; height: 34px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .why { grid-template-columns: 1fr; gap: 40px; }

  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 55; flex-direction: column; justify-content: center; gap: 26px;
    background: var(--cream); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav > a:not(.btn) { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
  .nav__cta { margin-top: 10px; padding: 16px 26px; font-size: 1.05rem; }
  .menu-open { overflow: hidden; }
  .menu-open .nav { opacity: 1; visibility: visible; }
}

@media (max-width: 880px) {
  .hero { padding: 32px 0 72px; }
  .hero__grid, .split, .cta__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__media { max-width: 560px; margin-inline: auto; width: 100%; }
  .float-card--a { left: -6px; bottom: -18px; }
  .float-card--b { right: -6px; top: -14px; }
  .split--reverse .split__media { order: 0; }
  .split__media::before { inset: 16px -12px -16px 16px; }
  .split--reverse .split__media::before { inset: 16px -12px -16px 16px; }
  .split + .split { margin-top: 80px; }
  .remodel { grid-template-columns: 1fr; grid-template-rows: none; }
  .remodel__item--big { grid-row: auto; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .lightbox__close { top: 8px; right: 8px; }
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 40px; }
}

@media (max-width: 560px) {
  .header__inner { height: 68px; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__text strong { font-size: 1.18rem; }
  .brand__text small { font-size: .58rem; letter-spacing: .16em; }
  .hero__ctas .btn { width: 100%; }
  .services, .steps, .why__grid { grid-template-columns: 1fr; }
  .gallery__item figcaption { font-size: .76rem; padding: 32px 10px 10px; }
  .card { padding: 26px 22px; }
  .tag { position: static; align-self: flex-start; margin-bottom: 12px; }
  .float-card { padding: 10px 14px; font-size: .78rem; }
  .float-card__icon { width: 34px; height: 34px; }
  .form { padding: 24px 20px; }
  .ticker span { font-size: .95rem; }
  .wa-float { width: 56px; height: 56px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
