:root {
    --navy: #06152c;
    --navy-2: #0a2240;
    --navy-3: #102d50;
    --gold: #d1a457;
    --gold-light: #e0bb79;
    --ivory: #f7f5f0;
    --sand: #eee9df;
    --white: #fff;
    --ink: #172131;
    --muted: #687383;
    --line: #ded9cf;
    --green: #25d366;
    --shadow: 0 24px 70px rgba(6, 21, 44, .14);
    --container: min(1280px, calc(100% - 96px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--ivory);
    font-family: "Manrope", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.container { width: var(--container); margin-inline: auto; }
.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-link { position: fixed; top: -80px; left: 20px; z-index: 1000; padding: 12px 18px; background: var(--gold); color: var(--navy); }
.skip-link:focus { top: 20px; }

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    color: var(--white);
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
    background: rgba(6, 21, 44, .94);
    border-color: rgba(255,255,255,.1);
    backdrop-filter: blur(16px);
}
.header-inner { height: 92px; display: flex; align-items: center; gap: 42px; }
.brand { width: 138px; height: 82px; overflow: hidden; flex: 0 0 auto; }
.brand img { width: 100%; height: 100%; object-fit: contain; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 40px; margin-left: auto; }
.main-nav a { position: relative; padding: 34px 0; font-size: .94rem; font-weight: 500; }
.main-nav a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 24px; height: 2px;
    background: var(--gold); transition: right .25s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px;
    border: 1px solid transparent; border-radius: 1px; cursor: pointer; font-weight: 700;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button-header { min-height: 48px; border-color: var(--gold); color: var(--gold-light); font-size: .9rem; white-space: nowrap; }
.button-header:hover { background: var(--gold); color: var(--navy); }
.button-gold { background: var(--gold); color: var(--navy); box-shadow: 0 14px 40px rgba(209,164,87,.2); }
.button-gold:hover { background: var(--gold-light); }
.button-outline { border-color: rgba(255,255,255,.7); color: var(--white); }
.button-outline:hover { background: var(--white); color: var(--navy); }
.button-navy { width: 100%; background: var(--navy); color: var(--white); gap: 18px; }
.button-navy:hover { background: var(--navy-2); }
.menu-toggle { display: none; }

.hero { position: relative; min-height: 900px; height: 100svh; overflow: hidden; color: var(--white); background: var(--navy); }
.hero-media { position: absolute; inset: 0; background: url("../images/hero-reforma.webp") center right / cover no-repeat; transform: scale(1.025); animation: heroZoom 1.1s .15s ease forwards; }
.hero-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(6,21,44,.99) 0%, rgba(6,21,44,.9) 29%, rgba(6,21,44,.54) 51%, rgba(6,21,44,.12) 78%, rgba(6,21,44,.06) 100%),
        linear-gradient(0deg, rgba(4,14,29,.3), transparent 45%);
}
.hero-content { position: relative; z-index: 2; padding-top: clamp(185px, 23vh, 250px); }
.eyebrow { margin: 0 0 24px; color: var(--gold-light); font-size: .79rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow-dark { color: #a8782e; }
.hero h1 {
    max-width: 760px; margin: 0; color: var(--white); font-size: clamp(3.6rem, 5.5vw, 5.25rem);
    font-weight: 600; letter-spacing: -.055em; line-height: 1.04;
}
.hero-copy { max-width: 650px; margin: 26px 0 0; color: #dbe1ea; font-size: 1.12rem; line-height: 1.72; }
.hero-actions { display: flex; gap: 20px; margin-top: 34px; }
.hero-meta { display: flex; align-items: center; gap: 14px; margin-top: 34px; color: #dbe1ea; font-size: .9rem; }
.hero-meta strong { color: var(--white); }
.meta-icon { width: 42px; height: 42px; padding: 9px; color: var(--gold-light); border: 1px solid var(--gold); border-radius: 50%; }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 42px; width: 34px; height: 34px; transform: translateX(-50%); }
.scroll-cue span { display: block; width: 18px; height: 18px; margin: 4px auto; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); animation: scrollPulse 1.8s infinite; }

.trust-strip { background: var(--navy); color: var(--white); border-top: 1px solid rgba(255,255,255,.08); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid div { min-height: 115px; display: flex; flex-direction: column; justify-content: center; padding: 20px 30px; border-right: 1px solid rgba(255,255,255,.1); }
.trust-grid div:first-child { border-left: 1px solid rgba(255,255,255,.1); }
.trust-grid strong { margin-bottom: 7px; color: var(--gold-light); font-size: .94rem; }
.trust-grid span { color: #aeb9c7; font-size: .78rem; line-height: 1.5; }

.section { padding: 125px 0; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr); gap: 80px; align-items: end; margin-bottom: 62px; }
.section-heading h2, .showcase h2, .about h2, .contact h2 {
    margin: 0; color: var(--navy); font-size: clamp(2.4rem, 4vw, 4.25rem); line-height: 1.08; letter-spacing: -.05em;
}
.section-heading > p { margin: 0 0 7px; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.services { background: var(--ivory); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 310px; padding: 38px 30px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.42); transition: background .3s, transform .3s, box-shadow .3s; }
.service-card:hover { position: relative; z-index: 2; background: var(--white); transform: translateY(-6px); box-shadow: var(--shadow); }
.service-icon { display: block; width: 45px; height: 45px; margin-bottom: 30px; color: #b47e2d; }
.service-card h3 { margin: 0 0 13px; color: var(--navy); font-size: 1.18rem; }
.service-card p { min-height: 73px; margin: 0 0 26px; color: var(--muted); font-size: .86rem; line-height: 1.7; }
.service-card a { color: var(--navy); font-size: .78rem; font-weight: 700; }
.service-card a span { display: inline-block; margin-left: 7px; color: var(--gold); transition: transform .2s; }
.service-card a:hover span { transform: translateX(5px); }

.showcase { background: var(--sand); overflow: hidden; }
.showcase-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(70px, 8vw, 130px); }
.showcase-image { position: relative; min-height: 690px; background: url("../images/cocina-bano.webp") center / cover; box-shadow: var(--shadow); }
.image-label { position: absolute; left: 0; bottom: 0; padding: 18px 24px; background: var(--navy); color: var(--gold-light); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.showcase-copy > p:not(.eyebrow) { margin: 28px 0; color: var(--muted); line-height: 1.8; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 24px; margin: 0 0 34px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 25px; color: var(--ink); font-size: .88rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #ae792b; font-weight: 800; }
.text-link { display: inline-flex; gap: 13px; align-items: center; padding-bottom: 7px; border-bottom: 1px solid var(--gold); color: var(--navy); font-weight: 700; }
.text-link span { color: var(--gold); transition: transform .2s; }
.text-link:hover span { transform: translateX(5px); }

.about { background: var(--navy); color: var(--white); overflow: hidden; }
.about-grid { display: grid; grid-template-columns: .87fr 1.13fr; gap: clamp(70px, 8vw, 130px); align-items: center; }
.about h2 { color: var(--white); }
.about-copy > p:not(.eyebrow) { color: #b9c3d1; line-height: 1.8; }
.about-highlights { display: flex; margin-top: 48px; border-top: 1px solid rgba(255,255,255,.15); }
.about-highlights div { flex: 1; padding: 26px 20px 0 0; }
.about-highlights span { display: block; color: var(--gold-light); font-size: 1.8rem; font-weight: 600; }
.about-highlights small { color: #aeb9c7; font-size: .72rem; }
.about-image { position: relative; min-height: 680px; background: url("../images/trabajo-equipo.webp") center / cover; }
.floating-note { position: absolute; left: -65px; bottom: 46px; min-width: 300px; padding: 24px 30px; background: var(--gold); color: var(--navy); box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.floating-note span, .floating-note strong { display: block; }
.floating-note span { margin-bottom: 5px; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.floating-note strong { font-size: 1.2rem; }

.process { background: var(--navy-2); color: var(--white); }
.process-heading h2 { color: var(--white); }
.process-heading > p { color: #b9c3d1; }
.process-list { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.14); }
.process-list li { position: relative; min-height: 270px; padding: 35px 28px 25px 0; border-right: 1px solid rgba(255,255,255,.14); }
.process-list li:not(:first-child) { padding-left: 28px; }
.process-list li:last-child { border-right: 0; }
.process-list > li > span { display: block; margin-bottom: 52px; color: var(--gold); font-size: .75rem; font-weight: 700; }
.process-list li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.process-list li:not(:first-child)::before { left: 28px; }
.process-list h3 { margin: 0 0 13px; font-size: 1.02rem; }
.process-list p { margin: 0; color: #aeb9c7; font-size: .81rem; line-height: 1.7; }

.emergency { padding: 50px 0; background: var(--gold); color: var(--navy); }
.emergency-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; }
.emergency-icon { width: 60px; height: 60px; padding: 14px; border: 1px solid rgba(6,21,44,.35); border-radius: 50%; }
.emergency .eyebrow { margin-bottom: 8px; color: var(--navy); }
.emergency h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.04em; }
.emergency .button-gold { border-color: var(--navy); background: var(--navy); color: var(--white); box-shadow: none; }
.emergency .button-gold:hover { background: var(--navy-2); }

.contact { background: var(--ivory); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(70px, 9vw, 150px); align-items: start; }
.contact-copy > p:not(.eyebrow) { margin: 28px 0 40px; color: var(--muted); line-height: 1.8; }
.contact-methods { display: grid; gap: 20px; }
.contact-methods > * { display: flex; align-items: center; gap: 17px; }
.contact-methods > * > span { flex: 0 0 46px; width: 46px; height: 46px; padding: 12px; color: #ae792b; border: 1px solid var(--line); border-radius: 50%; }
.contact-methods small, .contact-methods strong { display: block; }
.contact-methods small { margin-bottom: 2px; color: var(--muted); font-size: .7rem; }
.contact-methods strong { color: var(--navy); font-size: .9rem; }
.contact-form { padding: 48px; background: var(--white); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: block; margin-bottom: 20px; color: var(--navy); font-size: .78rem; font-weight: 700; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; margin-top: 9px; padding: 14px 15px; color: var(--ink); background: var(--ivory);
    border: 1px solid transparent; border-bottom-color: #cfc8bc; border-radius: 0; outline: 0; transition: border .2s, background .2s;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { background: var(--white); border-color: var(--gold); }
.contact-form .privacy-check { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .7rem; font-weight: 500; line-height: 1.5; }
.privacy-check input { flex: 0 0 auto; width: 16px; margin: 2px 0 0; }
.privacy-check button { padding: 0; border: 0; background: transparent; color: var(--navy); text-decoration: underline; cursor: pointer; }
.honeypot { position: absolute !important; left: -9999px !important; }
.form-status { min-height: 22px; margin: 14px 0 0; color: var(--navy); font-size: .78rem; text-align: center; }
.form-status.error { color: #a12424; }
.submit-button[disabled] { opacity: .65; cursor: wait; }

.site-footer { padding-top: 78px; color: #b9c3d1; background: #031020; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr .8fr; gap: 70px; padding-bottom: 65px; }
.footer-brand img { width: 145px; height: 105px; object-fit: contain; margin-bottom: 15px; }
.footer-brand p { max-width: 300px; margin: 0; font-size: .78rem; line-height: 1.8; }
.footer-grid h3 { margin: 18px 0 22px; color: var(--white); font-size: .85rem; }
.footer-grid a, .footer-grid span, .footer-grid button { display: block; margin: 0 0 12px; padding: 0; color: #9ba8b9; background: none; border: 0; font-size: .75rem; text-align: left; cursor: pointer; }
.footer-grid a:hover, .footer-grid button:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; padding: 24px 0 28px; border-top: 1px solid rgba(255,255,255,.1); color: #77869a; font-size: .69rem; }

.whatsapp-float {
    position: fixed; right: 25px; bottom: 25px; z-index: 80; width: 58px; height: 58px; padding: 14px;
    color: var(--white); background: var(--green); border-radius: 50%; box-shadow: 0 12px 30px rgba(0,0,0,.24);
    transition: transform .2s;
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.03); }
.whatsapp-float svg { fill: none; stroke-width: 1.8; }

.modal { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 24px; }
.modal.is-open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,16,32,.8); backdrop-filter: blur(6px); }
.modal-card { position: relative; z-index: 2; width: min(650px, 100%); max-height: 80vh; overflow: auto; padding: 46px; background: var(--white); box-shadow: var(--shadow); }
.modal-card h2 { margin: 0 0 24px; color: var(--navy); font-size: 2rem; }
.modal-card p { color: var(--muted); line-height: 1.8; }
.modal-close { position: absolute; top: 14px; right: 18px; padding: 0; border: 0; background: transparent; color: var(--navy); font-size: 2rem; cursor: pointer; }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }

@keyframes heroZoom { to { transform: scale(1); } }
@keyframes scrollPulse { 0%,100% { opacity: .45; transform: translateY(-4px) rotate(45deg); } 50% { opacity: 1; transform: translateY(5px) rotate(45deg); } }

@media (max-width: 1100px) {
    :root { --container: min(100% - 52px, 980px); }
    .main-nav { gap: 22px; }
    .button-header { display: none; }
    .hero { min-height: 760px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase-grid, .about-grid, .contact-grid { gap: 60px; }
    .process-list { grid-template-columns: repeat(3, 1fr); }
    .process-list li:nth-child(3) { border-right: 0; }
    .process-list li:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,.14); }
    .process-list li:nth-child(4) { padding-left: 0; }
    .process-list li:nth-child(4)::before { left: 0; }
}

@media (max-width: 820px) {
    :root { --container: min(100% - 40px, 720px); }
    .header-inner { height: 78px; }
    .brand { width: 108px; height: 68px; }
    .menu-toggle { display: grid; gap: 5px; width: 42px; height: 42px; margin-left: auto; padding: 10px; background: transparent; border: 1px solid rgba(255,255,255,.25); }
    .menu-toggle span:not(.sr-only) { display: block; height: 1px; background: var(--white); transition: transform .2s, opacity .2s; }
    .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .main-nav {
        position: absolute; top: 78px; left: 0; right: 0; display: grid; gap: 0; max-height: 0; overflow: hidden;
        background: rgba(6,21,44,.98); transition: max-height .3s ease;
    }
    .main-nav.is-open { max-height: 400px; border-top: 1px solid rgba(255,255,255,.1); }
    .main-nav a { padding: 17px 30px; border-bottom: 1px solid rgba(255,255,255,.08); }
    .main-nav a::after { display: none; }
    .hero { min-height: 760px; height: 100svh; }
    .hero-media { background-position: 62% center; }
    .hero-overlay { background: linear-gradient(90deg, rgba(6,21,44,.98), rgba(6,21,44,.8) 60%, rgba(6,21,44,.45)); }
    .hero-content { padding-top: 165px; }
    .hero h1 { max-width: 630px; font-size: clamp(3rem, 8vw, 4.3rem); }
    .trust-grid { grid-template-columns: 1fr 1fr; }
    .trust-grid div:nth-child(odd) { border-left: 1px solid rgba(255,255,255,.1); }
    .trust-grid div { border-bottom: 1px solid rgba(255,255,255,.1); }
    .section { padding: 90px 0; }
    .section-heading { grid-template-columns: 1fr; gap: 25px; }
    .showcase-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .showcase-image, .about-image { min-height: 570px; }
    .about-copy { order: 2; }
    .about-image { order: 1; }
    .floating-note { left: 25px; }
    .emergency-inner { grid-template-columns: auto 1fr; }
    .emergency .button { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: 1.5fr 1fr; }
}

@media (max-width: 560px) {
    :root { --container: calc(100% - 32px); }
    .hero { min-height: 720px; }
    .hero-media { background-position: 67% center; }
    .hero-overlay { background: linear-gradient(90deg, rgba(6,21,44,.98), rgba(6,21,44,.83) 70%, rgba(6,21,44,.62)); }
    .hero-content { padding-top: 140px; }
    .eyebrow { margin-bottom: 18px; font-size: .68rem; }
    .hero h1 { font-size: clamp(2.55rem, 12vw, 3.3rem); }
    .hero h1 br { display: none; }
    .hero-copy { font-size: .94rem; line-height: 1.65; }
    .hero-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 26px; }
    .hero-actions .button { min-height: 50px; }
    .hero-meta { margin-top: 25px; font-size: .78rem; }
    .scroll-cue { display: none; }
    .trust-grid { grid-template-columns: 1fr; }
    .trust-grid div, .trust-grid div:nth-child(odd) { min-height: 88px; border-left: 0; border-right: 0; }
    .section { padding: 75px 0; }
    .section-heading h2, .showcase h2, .about h2, .contact h2 { font-size: clamp(2.15rem, 10vw, 3rem); }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { min-height: auto; }
    .service-card p { min-height: auto; }
    .showcase-image, .about-image { min-height: 430px; }
    .check-list { grid-template-columns: 1fr; }
    .about-highlights { flex-wrap: wrap; }
    .about-highlights div { min-width: 33%; }
    .floating-note { left: 16px; right: 16px; bottom: 16px; min-width: 0; }
    .process-list { grid-template-columns: 1fr; border-top: 0; }
    .process-list li, .process-list li:not(:first-child), .process-list li:nth-child(4) { min-height: auto; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.14); border-right: 0; }
    .process-list li::before, .process-list li:not(:first-child)::before, .process-list li:nth-child(4)::before { top: -5px; left: 0; }
    .process-list > li > span { margin-bottom: 20px; }
    .emergency-inner { grid-template-columns: 1fr; text-align: center; }
    .emergency-icon { margin-inline: auto; }
    .contact-form { padding: 28px 22px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-bottom { display: grid; gap: 7px; }
    .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
    .modal-card { padding: 38px 24px 28px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
