/* ============ PULIDOS DE PISOS PR ============ */
:root {
  --navy: #0a2240;
  --navy-2: #0e2f5c;
  --navy-3: #123a6e;
  --gold: #e8b93c;
  --gold-2: #f5c85c;
  --gold-soft: #fdf3dc;
  --red: #e63946;
  --white: #ffffff;
  --bg: #f6f8fc;
  --ink: #10233f;
  --muted: #5a6b85;
  --line: #e3e9f2;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(10, 34, 64, 0.14);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

.wrap { width: min(1140px, 92%); margin: 0 auto; }
.section { padding: 96px 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark .section-sub { color: #b9c6da; }
.section-tint { background: var(--bg); }

/* ---------- type ---------- */
.section-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.section-dark .section-title { color: var(--white); }
.section-sub {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 48px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 34px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-align: center;
}
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 28px rgba(232, 185, 60, 0.4); }
.btn-gold:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-3); transform: translateY(-2px); }
.btn-sm { padding: 11px 24px; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(10,34,64,0.08);
  transition: box-shadow 0.25s ease;
}
.nav.scrolled { box-shadow: 0 8px 30px rgba(10,34,64,0.12); }
.nav-inner {
  width: min(1200px, 94%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 16px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 46px; width: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 14px rgba(10,34,64,0.25); }
.nav-wordmark { font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; letter-spacing: 0.04em; color: var(--navy); white-space: nowrap; }
.nav-wordmark em { font-style: normal; color: var(--gold); }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  color: var(--navy); position: relative; padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 3px; border-radius: 3px;
  background: var(--gold); transition: width 0.22s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-burger span { width: 26px; height: 3px; border-radius: 3px; background: var(--navy); transition: 0.25s ease; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  color: var(--white); overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("assets/hero.jpg") center/cover no-repeat, var(--navy);
  transform: scale(1.06);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1.14); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7,22,44,0.92) 20%, rgba(7,22,44,0.55) 55%, rgba(7,22,44,0.25) 100%);
}
.hero-content { position: relative; z-index: 2; width: min(1140px, 92%); margin: 0 auto; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2);
  background: rgba(232,185,60,0.12); border: 1px solid rgba(232,185,60,0.35);
  padding: 10px 20px; border-radius: 999px; margin-bottom: 26px;
}
.kicker-star { color: var(--gold); }
.hero-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.8rem, 7.5vw, 5.4rem);
  line-height: 1.04; letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero-title .shine {
  position: relative; color: var(--gold);
  background: linear-gradient(110deg, var(--gold) 30%, #fff6dd 50%, var(--gold) 70%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineSweep 4.5s ease-in-out infinite;
}
@keyframes shineSweep { 0%,100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.hero-sub { font-size: clamp(1.02rem, 2vw, 1.25rem); color: #d7e0ef; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-chips { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-chips li {
  font-size: 0.88rem; font-weight: 600; color: #eaf0f9;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  padding: 9px 18px; border-radius: 999px; backdrop-filter: blur(6px);
}
.star { position: absolute; z-index: 1; fill: var(--gold); opacity: 0.85; filter: drop-shadow(0 0 12px rgba(232,185,60,0.7)); pointer-events: none; }
.star-1 { width: 46px; top: 22%; right: 12%; animation: twinkle 3.2s ease-in-out infinite; }
.star-2 { width: 26px; top: 58%; right: 24%; animation: twinkle 4.1s ease-in-out 0.8s infinite; }
.star-3 { width: 34px; top: 34%; right: 32%; animation: twinkle 3.7s ease-in-out 1.6s infinite; opacity: 0.5; }
.star-white { fill: #ffffff; opacity: 0.9; filter: drop-shadow(0 0 10px rgba(255,255,255,0.8)); }
.star-4 { width: 20px; top: 26%; right: 38%; animation: twinkle 2.8s ease-in-out 0.4s infinite; }
.star-5 { width: 15px; top: 66%; right: 10%; animation: twinkle 3.5s ease-in-out 2.1s infinite; opacity: 0.7; }
/* Subtle gold tile-grid motif, echoing the logo's piso de losas */
.tile-grid { position: relative; }
.tile-grid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(232,185,60,0.07) 0 2px, transparent 2px 72px),
    repeating-linear-gradient(90deg, rgba(232,185,60,0.07) 0 2px, transparent 2px 72px);
}
.tile-grid .wrap { position: relative; z-index: 1; }
@keyframes twinkle { 0%,100% { transform: scale(1) rotate(0deg); opacity: 0.85; } 50% { transform: scale(1.35) rotate(20deg); opacity: 1; } }
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 50px; border: 2px solid rgba(255,255,255,0.5);
  border-radius: 20px; z-index: 2;
}
.hero-scroll span {
  display: block; width: 6px; height: 10px; margin: 8px auto 0;
  border-radius: 4px; background: var(--gold);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 6px 22px rgba(10,34,64,0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card-img { height: 200px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img img { transform: scale(1.07); }
.card-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-family: var(--font-head); font-size: 1.18rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.card-body p { color: var(--muted); font-size: 0.96rem; flex: 1; margin-bottom: 16px; }
.card-link { font-family: var(--font-head); font-weight: 700; color: var(--red); font-size: 0.95rem; }
.card-link:hover { color: var(--navy); }

/* ---------- before / after ---------- */
.ba { max-width: 860px; margin: 0 auto; }
.ba-wrap {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 16/10; user-select: none; touch-action: pan-y;
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { position: absolute; inset: 0; width: 50%; overflow: hidden; border-right: 3px solid var(--gold); }
.ba-before .ba-img { width: 100%; max-width: none; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 0; cursor: ew-resize; z-index: 3;
}
.ba-knob {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  border: 3px solid var(--white);
}
.ba-tag {
  position: absolute; top: 16px; z-index: 2;
  font-family: var(--font-head); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px;
}
.ba-tag-before { left: 16px; background: rgba(10,34,64,0.75); color: var(--white); }
.ba-tag-after { right: 16px; background: var(--gold); color: var(--navy); }
.ba-note { text-align: center; color: #8fa0b8; font-size: 0.85rem; margin-top: 18px; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 18px; max-width: 820px; }
.step {
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 30px;
  box-shadow: 0 6px 20px rgba(10,34,64,0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.step:hover { transform: translateX(8px); box-shadow: var(--shadow); }
.step-num {
  flex: none; width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  color: var(--gold); font-family: var(--font-head);
  font-weight: 800; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(10,34,64,0.25);
}
.step h3 { font-family: var(--font-head); font-size: 1.15rem; color: var(--navy); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.97rem; }

/* ---------- split / nosotros ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.split-img { position: relative; }
.split-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 480px; object-fit: cover; }
.split-star { position: absolute; width: 64px; fill: var(--gold); top: -24px; right: -18px; filter: drop-shadow(0 0 14px rgba(232,185,60,0.8)); animation: twinkle 3.4s ease-in-out infinite; }
.split-body p { color: var(--muted); margin-bottom: 26px; font-size: 1.04rem; }
.checklist { display: grid; gap: 14px; margin-bottom: 34px; }
.checklist li { display: flex; gap: 12px; align-items: baseline; font-weight: 500; color: var(--ink); }
.checklist li span:first-child { color: var(--gold); font-size: 1.1rem; }
.pr { font-size: 1.15rem; }

/* ---------- info ---------- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.info-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px; box-shadow: 0 6px 22px rgba(10,34,64,0.07);
}
.info-card h3 { font-family: var(--font-head); font-size: 1.4rem; color: var(--navy); margin-bottom: 6px; }
.placeholder-note {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #8a6d1c; background: var(--gold-soft);
  border: 1px dashed var(--gold); border-radius: 999px;
  padding: 5px 14px; margin-bottom: 20px;
}
.towns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.towns li {
  font-weight: 600; color: var(--navy); background: var(--bg);
  border-radius: 10px; padding: 10px 16px; font-size: 0.95rem;
}
.hours { display: grid; gap: 12px; margin-bottom: 20px; }
.hours li {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg); border-radius: 10px; padding: 12px 18px; font-size: 0.95rem;
}
.hours li span { color: var(--muted); font-weight: 500; }
.hours li strong { color: var(--navy); font-family: var(--font-head); }
.info-foot { color: var(--muted); font-size: 0.92rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
.quote-form {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); padding: 38px; backdrop-filter: blur(8px);
}
.field { margin-bottom: 20px; }
.field label {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: 0.88rem; letter-spacing: 0.04em; margin-bottom: 8px; color: var(--gold-2);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 18px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08); color: var(--white);
  font-family: var(--font-body); font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #8fa0b8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: rgba(255,255,255,0.12);
}
.field select option { color: var(--ink); }
.form-note { text-align: center; color: #8fa0b8; font-size: 0.82rem; margin-top: 14px; }
.form-success { text-align: center; padding: 30px 10px 6px; }
.form-success-star { font-size: 2.4rem; color: var(--gold); display: block; margin-bottom: 10px; animation: twinkle 2.4s ease-in-out infinite; }
.form-success h3 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 8px; }
.form-success p { color: #b9c6da; }

.contact-side h3 { font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 18px; color: var(--white); }
.contact-row {
  display: flex; gap: 16px; align-items: flex-start;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px; padding: 18px 20px; margin-bottom: 14px;
  transition: transform 0.2s ease, background 0.2s ease;
  color: var(--white);
}
a.contact-row:hover { transform: translateY(-3px); background: rgba(255,255,255,0.1); }
.contact-ico {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800;
}
.contact-row strong { font-family: var(--font-head); }
.contact-row span:last-child { font-size: 0.96rem; color: #d7e0ef; }
.ph-tag {
  display: inline-block; font-style: normal; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-2); border: 1px dashed rgba(232,185,60,0.6);
  border-radius: 999px; padding: 2px 10px; margin-left: 8px; vertical-align: middle;
}
.social-title { margin-top: 30px; }
.socials { display: grid; gap: 12px; }
.socials a {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px; padding: 14px 20px; color: var(--white);
  font-family: var(--font-head); font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}
.socials a:hover { transform: translateY(-3px); background: rgba(255,255,255,0.1); }
.socials svg { width: 26px; height: 26px; fill: var(--gold); flex: none; }

/* ---------- footer ---------- */
.footer { background: #071630; color: #b9c6da; padding: 60px 0 0; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 30px; flex-wrap: wrap; padding-bottom: 40px;
}
.footer-brand { display: flex; gap: 16px; align-items: center; max-width: 340px; }
.footer-brand img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.footer-brand p { font-size: 0.92rem; }
.footer-brand strong { color: var(--white); font-family: var(--font-head); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a:hover, .footer-social a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 20px; }
.footer-base {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0; display: flex; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; font-size: 0.85rem;
}
.footer-note { color: #7c8ca6; }

/* ---------- floating whatsapp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; font-weight: 800;
  box-shadow: 0 12px 30px rgba(37,211,102,0.45);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.1) rotate(8deg); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .hero-title .shine, .star, .split-star, .hero-scroll span, .form-success-star { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-img img { height: 340px; }
  .info-grid, .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--white); flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
    box-shadow: 0 20px 40px rgba(10,34,64,0.12);
  }
  .nav-links.open { max-height: 340px; }
  .nav-links a { padding: 16px 6%; border-top: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-burger { display: flex; }
  .nav-wordmark { font-size: 0.8rem; }
  .nav-brand { gap: 8px; }
  .nav-brand img { height: 40px; width: 40px; }
  .nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .cards { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
  .quote-form { padding: 28px 22px; }
  .footer-base { flex-direction: column; }
}
@media (max-width: 480px) {
  .nav-wordmark { display: none; }
}
