:root {
  --ink: #171614;
  --muted: #69645e;
  --paper: #fffdf8;
  --cream: #f6f0e5;
  --line: rgba(23, 22, 20, .12);
  --accent: #f59e0b;
  --accent-dark: #c96b08;
  --plum: #6f4a75;
  --sage: #87957a;
  --white: #fff;
  --shadow: 0 24px 60px rgba(31, 26, 20, .13);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 999; background: var(--ink); color: white; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,253,248,.88); backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: .25s ease; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 25px rgba(20,20,20,.06); }
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px 14px 18px 10px; background: var(--ink); color: white; font-family: "Playfair Display", serif; font-size: 21px; position: relative; overflow: hidden; }
.brand-mark::after { content: ""; position: absolute; width: 28px; height: 8px; border-radius: 999px; background: var(--accent); bottom: 2px; right: -4px; transform: rotate(-14deg); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 17px; text-transform: uppercase; letter-spacing: .04em; }
.brand-copy small { color: var(--muted); font-size: 11px; letter-spacing: .08em; margin-top: 4px; }
.site-logo { width: auto; height: 68px; max-width: 230px; object-fit: contain; transition: height .25s ease; }
.site-header.scrolled .site-logo { height: 58px; }
.footer-logo { height: 76px; max-width: 250px; }
.main-nav { display: flex; align-items: center; gap: 27px; font-weight: 700; font-size: 14px; }
.main-nav a:not(.nav-cta) { position: relative; }
.main-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px; background: var(--accent); transition: .25s ease; }
.main-nav a:hover::after { right: 0; }
.nav-cta { padding: 12px 18px; border-radius: 999px; background: var(--ink); color: white; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

.hero { min-height: 720px; display: grid; align-items: center; position: relative; overflow: hidden; padding: 70px 0 80px; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 20%, rgba(245,158,11,.16), transparent 35%), linear-gradient(135deg, #fffdf8 0%, #f8f2e9 100%); z-index: -3; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--accent-dark); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 30px; height: 2px; background: currentColor; }
.hero h1, .section-heading h2, .featured-copy h2, .cta-box h2 { font-family: "Playfair Display", serif; line-height: 1.04; margin: 18px 0 22px; }
.hero h1 { font-size: clamp(47px, 5.6vw, 76px); max-width: 760px; letter-spacing: -.035em; }
.hero h1 em { color: var(--plum); font-style: normal; position: relative; }
.hero-copy > p { color: var(--muted); font-size: 18px; max-width: 670px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin: 34px 0 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 23px; border-radius: 999px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; fill: currentColor; }
.btn-primary { background: var(--accent); color: #20160a; box-shadow: 0 14px 30px rgba(245,158,11,.26); }
.btn-primary:hover { background: #ffae1f; box-shadow: 0 18px 36px rgba(245,158,11,.34); }
.btn-secondary { border: 1px solid var(--line); background: rgba(255,255,255,.55); }
.hero-points { display: flex; flex-wrap: wrap; gap: 14px 22px; list-style: none; margin: 0; padding: 0; font-size: 13px; font-weight: 700; color: #4d4944; }
.hero-points span { color: var(--accent-dark); }

.hero-visual { position: relative; min-height: 545px; display: grid; place-items: center; }
.hero-card {
  width: min(480px, 94%);
  aspect-ratio: .92;
  border-radius: 44px 44px 70px 28px;
  background-image: url("img/casa-pintada.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
  border: 9px solid rgba(255,255,255,.94);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,20,38,.02) 30%, rgba(7,20,38,.2) 60%, rgba(7,20,38,.88) 100%);
}
.hero-card-copy {
  position: absolute;
  left: 38px;
  right: 30px;
  bottom: 34px;
  z-index: 2;
  display: grid;
  line-height: .9;
  color: white;
  text-shadow: 0 3px 18px rgba(0,0,0,.45);
}
.hero-card-copy strong {
  font-family: "Playfair Display", serif;
  font-size: 78px;
  letter-spacing: -.07em;
}
.hero-card-copy span {
  font-family: "Playfair Display", serif;
  font-size: 29px;
  letter-spacing: .15em;
}
.hero-card-copy p {
  max-width: 260px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.92);
  font-weight: 700;
  line-height: 1.45;
}
.floating-badge { position: absolute; background: white; border: 1px solid rgba(0,0,0,.05); border-radius: 17px; padding: 13px 17px; box-shadow: 0 17px 40px rgba(20,20,20,.13); display: flex; flex-direction: column; line-height: 1.2; font-size: 12px; }
.floating-badge strong { font-size: 14px; }
.badge-one { left: 0; top: 95px; transform: rotate(-5deg); }
.badge-two { right: -5px; bottom: 80px; transform: rotate(5deg); }
.paint-blob { position: absolute; border-radius: 44% 56% 61% 39% / 44% 41% 59% 56%; filter: blur(.2px); z-index: -2; }
.paint-blob-one { width: 180px; height: 180px; background: rgba(111,74,117,.12); right: -70px; top: 90px; }
.paint-blob-two { width: 220px; height: 120px; background: rgba(135,149,122,.17); left: -80px; bottom: 20px; transform: rotate(18deg); }

.trust-bar { border-block: 1px solid var(--line); background: white; }
.trust-list { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #5e5953; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 800; }
.trust-list i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.section { padding: 110px 0; }
.section-heading { max-width: 720px; margin-bottom: 50px; }
.section-heading h2, .featured-copy h2, .cta-box h2 { font-size: clamp(38px, 4.5vw, 58px); letter-spacing: -.025em; }
.section-heading p, .featured-copy > p { color: var(--muted); font-size: 17px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.7); padding: 30px; min-height: 245px; transition: .25s ease; position: relative; overflow: hidden; }
.service-card::after { content: ""; position: absolute; width: 100px; height: 100px; background: var(--cream); border-radius: 50%; right: -50px; bottom: -50px; transition: .25s ease; }
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::after { transform: scale(1.5); background: rgba(245,158,11,.18); }
.service-icon { color: var(--accent-dark); font-weight: 800; font-size: 13px; letter-spacing: .1em; }
.service-card h3 { font-family: "Playfair Display", serif; font-size: 25px; margin: 27px 0 11px; }
.service-card p { color: var(--muted); margin: 0; }

.featured { background: #1b1a18; color: white; }
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.featured-image { position: relative; }
.featured-image img { width: 100%; aspect-ratio: 1.08; object-fit: cover; border-radius: 32px 32px 90px 32px; }
.featured-image::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid rgba(255,255,255,.22); border-radius: 32px 32px 90px 32px; }
.featured-stamp { position: absolute; right: -24px; bottom: 28px; width: 154px; height: 154px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--accent); color: #1b1a18; box-shadow: var(--shadow); }
.featured-stamp strong { font-family: "Playfair Display", serif; font-size: 40px; line-height: .9; }
.featured-stamp span { font-size: 10px; max-width: 90px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.featured-copy > p { color: rgba(255,255,255,.68); }
.check-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); font-weight: 800; }
.text-link span { transition: .2s ease; }
.text-link:hover span { transform: translateX(5px); }

.gallery-section { background: var(--cream); }
.heading-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.heading-row > div { max-width: 700px; }
.heading-row > p { max-width: 360px; font-size: 14px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 15px; }
.gallery-item { border: 0; padding: 0; border-radius: 20px; overflow: hidden; position: relative; cursor: zoom-in; background: #ddd; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.62), transparent 55%); opacity: 0; transition: .3s ease; }
.gallery-item span { position: absolute; left: 18px; bottom: 15px; color: white; z-index: 2; font-weight: 800; opacity: 0; transform: translateY(8px); transition: .3s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover::after, .gallery-item:hover span { opacity: 1; }
.gallery-item:hover span { transform: translateY(0); }
.gallery-large { grid-column: span 2; grid-row: span 2; }
.gallery-wide { grid-column: span 2; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.process-step { position: relative; padding-top: 30px; border-top: 1px solid var(--line); }
.process-step span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); font-weight: 900; margin-bottom: 23px; }
.process-step h3 { font-family: "Playfair Display", serif; font-size: 22px; margin: 0 0 9px; }
.process-step p { color: var(--muted); margin: 0; font-size: 14px; }

.faq { background: white; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.accordion { display: grid; gap: 12px; }
.accordion details { border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; background: var(--paper); }
.accordion summary { cursor: pointer; list-style: none; padding: 20px 35px 20px 0; font-weight: 800; position: relative; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 25px; color: var(--accent-dark); }
.accordion details[open] summary::after { content: "−"; }
.accordion details p { color: var(--muted); margin: 0 0 20px; }

.cta-section { padding: 0 0 90px; background: white; }
.cta-box { background: var(--plum); color: white; border-radius: 34px; padding: 58px 65px; display: flex; align-items: center; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.cta-box::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 55px solid rgba(255,255,255,.08); right: 18%; top: -135px; }
.cta-box h2 { font-size: clamp(36px, 4vw, 54px); margin-bottom: 12px; }
.cta-box p { margin: 0; color: rgba(255,255,255,.75); }
.eyebrow.light { color: #ffd58a; }
.btn-light { background: white; color: var(--plum); position: relative; z-index: 2; white-space: nowrap; }

.site-footer { background: #151412; color: white; padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr .8fr; gap: 70px; }
.brand-footer .brand-mark { background: white; color: var(--ink); }
.footer-grid p, .footer-grid span { color: rgba(255,255,255,.58); max-width: 420px; }
.footer-grid h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 19px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { margin-top: 55px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; color: rgba(255,255,255,.42); font-size: 12px; }
.whatsapp-float { position: fixed; right: 24px; bottom: 24px; z-index: 45; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: white; box-shadow: 0 16px 38px rgba(37,211,102,.35); transition: .2s ease; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.03); }
.whatsapp-float svg { width: 29px; fill: currentColor; }

.lightbox { border: 0; padding: 0; border-radius: 22px; background: transparent; max-width: min(92vw, 1050px); max-height: 90vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0,0,0,.86); backdrop-filter: blur(7px); }
.lightbox img { max-height: 86vh; width: auto; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; right: -12px; top: -48px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: white; font-size: 27px; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .main-nav { position: fixed; inset: 82px 20px auto; padding: 24px; border-radius: 20px; background: white; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .2s ease; }
  .main-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .menu-toggle { display: block; }
  .hero-grid, .featured-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 35px; }
  .hero-visual { min-height: 500px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { gap: 55px; }
  .featured-copy { order: -1; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 35px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1160px); }
  .nav-wrap { min-height: 72px; }
  .main-nav { inset-top: 72px; }
  .brand-copy small { display: none; }
  .site-logo { height: 56px; max-width: 190px; }
  .site-header.scrolled .site-logo { height: 52px; }
  .footer-logo { height: 66px; max-width: 220px; }
  .hero { min-height: auto; padding: 50px 0 70px; }
  .hero h1 { font-size: clamp(42px, 13vw, 60px); }
  .hero-copy > p { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .hero-points { flex-direction: column; gap: 8px; }
  .hero-visual { min-height: 430px; margin-top: 20px; }
  .hero-card { width: 94%; aspect-ratio: 1 / 1.05; background-position: 58% center; }
  .hero-card-copy { left: 26px; right: 24px; bottom: 26px; }
  .hero-card-copy strong { font-size: 62px; }
  .hero-card-copy span { font-size: 23px; }
  .badge-one { left: -3px; top: 40px; }
  .badge-two { right: -2px; bottom: 28px; }
  .trust-list { justify-content: flex-start; overflow-x: auto; white-space: nowrap; }
  .section { padding: 82px 0; }
  .service-grid, .process-grid { grid-template-columns: 1fr; }
  .featured-stamp { width: 120px; height: 120px; right: -5px; }
  .heading-row { display: block; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery-large, .gallery-wide { grid-column: span 2; }
  .faq-grid { gap: 20px; }
  .cta-box { padding: 42px 28px; flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .whatsapp-float { right: 16px; bottom: 16px; }
}

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