/* ============================================================
   AQUAPRO — PLOMERÍA & HANDYMAN
   Professional Website Styles
   ============================================================ */

/* ── VARIABLES ── */
:root {
  --navy:        #0a1628;
  --navy2:       #0d1e35;
  --navy3:       #0f2540;
  --copper:      #e07020;
  --copper-dim:  #b85c18;
  --copper-glow: rgba(224, 112, 32, 0.25);
  --blue-pipe:   #1e88e5;
  --red-pipe:    #e53935;
  --steel:       #4a7fa5;
  --white:       #f0ede8;
  --gray:        #7a8fa0;
  --border:      rgba(255,255,255,0.07);
  --card-bg:     rgba(13, 30, 53, 0.9);

  --font-h:  'Oswald', sans-serif;
  --font-b:  'Roboto', sans-serif;

  --ease:    cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --dur:     0.5s;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-b);
  overflow-x: hidden;
  line-height: 1.65;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--copper-dim); border-radius: 3px; }

/* ── CONTAINER ── */
.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--copper);
  color: #fff;
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 3px;
  transition: background var(--dur) var(--ease), transform 0.2s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  transform: translateX(-110%) skewX(-20deg);
  transition: transform 0.5s var(--ease);
}
.btn-primary:hover { background: #e8924a; transform: translateY(-2px); box-shadow: 0 12px 40px rgba(212,132,62,0.4); }
.btn-primary:hover::after { transform: translateX(110%) skewX(-20deg); }
.btn-primary.btn-full { width: 100%; text-align: center; padding: 16px; font-size: 1.05rem; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 13px 34px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 3px;
  transition: border-color var(--dur), color var(--dur), transform 0.2s;
}
.btn-outline:hover { border-color: var(--copper); color: var(--copper); transform: translateY(-2px); }

/* ── SECTION HEADERS ── */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  font-family: var(--font-b);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--copper);
  padding: 6px 18px;
  border: 1px solid var(--copper);
  border-radius: 2px;
  margin-bottom: 18px;
  opacity: 0.9;
}
.section-title {
  font-family: var(--font-h);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}
.accent { color: var(--copper); }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: padding var(--dur) var(--ease), background var(--dur), box-shadow var(--dur);
}
.navbar.scrolled {
  padding: 12px 0;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.4);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-h);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
}
/* ── Logo crop: muestra solo el frente de la tarjeta (mitad superior)
      y recorta el texto/nombre que aparece abajo en la tarjeta ── */
.logo-crop {
  /* Controla cuánto se ve:
     - ancho: escala la imagen
     - alto: recorta verticalmente — sube para mostrar menos del frente,
             baja para mostrar más */
  width: 155px;
  height: 46px;
  overflow: hidden;
  border-radius: 3px;
  background: #fff;
  flex-shrink: 0;
}
.logo-crop img {
  width: 155px;      /* misma que el contenedor → escala proporcional */
  height: auto;
  display: block;
  /* Desplaza la imagen hacia arriba para centrar en el logo
     (ajusta este valor si el recorte no queda bien) */
  margin-top: -2px;
}

.logo-crop-footer {
  width: 175px;
  height: 52px;
  margin-bottom: 10px;
}
.logo-crop-footer img {
  width: 175px;
}
.nav-links {
  display: flex;
  gap: 36px;
  margin-left: auto;
}
.nav-link {
  font-family: var(--font-b);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(240,237,232,0.75);
  transition: color 0.3s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--copper);
  transition: width 0.35s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--copper);
  color: #fff;
  font-family: var(--font-h);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 3px;
  transition: background 0.3s, transform 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: #e8924a; transform: translateY(-1px); }
.cta-icon { font-size: 0.9em; }
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.lbtn {
  padding: 7px 12px;
  font-family: var(--font-h);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--gray);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.lbtn:first-child { border-right: 1px solid var(--border); }
.lbtn.active { background: var(--copper); color: #fff; }
.lbtn:not(.active):hover { background: rgba(255,255,255,0.08); color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(13,52,96,0.5) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(212,132,62,0.08) 0%, transparent 50%),
              linear-gradient(135deg, #06101f 0%, #0a1628 40%, #0d1e35 100%);
}
/* Pipe decorations in hero */
.pipe-h, .pipe-v, .pipe-joint {
  position: absolute;
  border-radius: 4px;
}
.pipe-h { height: 8px; background: linear-gradient(90deg, transparent, rgba(212,132,62,0.15), transparent); }
.pipe-v { width: 8px; background: linear-gradient(180deg, transparent, rgba(212,132,62,0.12), transparent); }
.pipe-h1 { width: 40%; top: 18%; left: -5%; animation: pipePulseH 8s ease-in-out infinite; }
.pipe-h2 { width: 30%; top: 72%; right: 0; animation: pipePulseH 10s ease-in-out infinite 2s; }
.pipe-v1 { height: 35%; left: 8%; top: 10%; animation: pipePulseV 9s ease-in-out infinite 1s; }
.pipe-v2 { height: 25%; right: 15%; top: 30%; animation: pipePulseV 7s ease-in-out infinite; }
.pipe-v3 { height: 20%; right: 35%; bottom: 0; animation: pipePulseV 11s ease-in-out infinite 3s; }
.pipe-joint {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(212,132,62,0.18);
  border: 1.5px solid rgba(212,132,62,0.25);
}
.pj1 { top: calc(18% - 3px); left: 35%; }
.pj2 { top: calc(18% - 3px); left: 8%; }
.pj3 { top: 44.5%; right: 15%; }
.pj4 { bottom: 0; right: 35%; }

@keyframes pipePulseH {
  0%, 100% { opacity: 0.3; transform: scaleX(1); }
  50% { opacity: 0.7; transform: scaleX(1.05); }
}
@keyframes pipePulseV {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* Water drops */
.water-drop {
  position: absolute;
  width: 6px; height: 10px;
  background: rgba(30,136,229,0.6);
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  animation: dropFall linear infinite;
}
.wd1 { left: 8%; animation-duration: 3s; animation-delay: 0s; top: -10px; }
.wd2 { left: 35%; animation-duration: 4s; animation-delay: 1.5s; top: -10px; }
.wd3 { right: 15%; animation-duration: 3.5s; animation-delay: 0.8s; top: -10px; }
.wd4 { right: 35%; animation-duration: 5s; animation-delay: 2.2s; top: -10px; }
.wd5 { left: 60%; animation-duration: 4.5s; animation-delay: 3s; top: -10px; }
@keyframes dropFall {
  0%   { transform: translateY(0) scaleY(1); opacity: 0.8; }
  80%  { opacity: 0.5; }
  100% { transform: translateY(110vh) scaleY(0.6); opacity: 0; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,22,40,0.2) 0%, rgba(10,22,40,0.1) 60%, rgba(10,22,40,0.9) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 1220px;
  margin: 0 auto;
  width: 100%;
}
.hero-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--copper);
  padding: 7px 20px;
  border: 1px solid rgba(212,132,62,0.5);
  border-radius: 2px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
}
.hero-title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-h);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1;
  margin-bottom: 28px;
}
.ht-line {
  opacity: 0;
  transform: translateY(40px);
  display: block;
}
.ht1 { animation: fadeUp 0.8s var(--ease-out) 0.5s forwards; }
.ht2 { animation: fadeUp 0.8s var(--ease-out) 0.65s forwards; }
.ht3 { animation: fadeUp 0.8s var(--ease-out) 0.8s forwards; color: var(--gray); font-weight: 400; }
.hero-title em { font-style: normal; color: var(--copper); position: relative; }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(240,237,232,0.7);
  max-width: 540px;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 1s forwards;
}
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 1.1s forwards;
}
.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(10,22,40,0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 28px 48px;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.3s forwards;
}
.hstat { flex: 1; text-align: center; padding: 0 20px; }
.hstat-num {
  display: block;
  font-family: var(--font-h);
  font-size: 2rem;
  font-weight: 700;
  color: var(--copper);
  line-height: 1;
  margin-bottom: 6px;
}
.hstat-label { font-size: 0.78rem; color: var(--gray); letter-spacing: 1px; text-transform: uppercase; }
.hstat-divider { width: 1px; height: 50px; background: var(--border); flex-shrink: 0; }
.scroll-hint {
  position: absolute;
  bottom: 180px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}
.scroll-mouse {
  width: 22px; height: 34px;
  border: 2px solid rgba(240,237,232,0.3);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.scroll-wheel {
  width: 4px; height: 8px;
  background: var(--copper);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel { 0%,100%{transform:translateY(0);opacity:1} 50%{transform:translateY(8px);opacity:0.3} }
.scroll-hint span { font-size: 0.68rem; letter-spacing: 3px; text-transform: uppercase; color: rgba(240,237,232,0.4); }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* ── MARQUEE ── */
.marquee-strip {
  background: var(--copper);
  overflow: hidden;
  padding: 14px 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--font-h);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: rgba(10,22,40,0.85);
  text-transform: uppercase;
  white-space: nowrap;
}
.mdot { color: rgba(10,22,40,0.5) !important; font-size: 0.5em !important; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SERVICES ── */
.services {
  padding: 120px 0;
  position: relative;
}
.services::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, var(--copper), transparent);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur);
  opacity: 0;
  transform: translateY(40px);
}
.service-card.visible { opacity: 1; transform: translateY(0); }
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(212,132,62,0.3); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.service-card:hover::before { transform: scaleX(1); }
.service-card.featured {
  border-color: rgba(212,132,62,0.4);
  background: linear-gradient(145deg, rgba(15,37,64,0.95), rgba(13,30,53,0.95));
}
.sc-badge {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--copper);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}
.sc-top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.sc-icon-wrap {
  width: 56px; height: 56px;
  background: rgba(212,132,62,0.1);
  border: 1px solid rgba(212,132,62,0.2);
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s;
}
.service-card:hover .sc-icon-wrap { background: rgba(212,132,62,0.18); border-color: rgba(212,132,62,0.4); }
.sc-top h3 { font-family: var(--font-h); font-size: 1.1rem; font-weight: 600; letter-spacing: 1px; }
.service-card p { color: var(--gray); font-size: 0.9rem; line-height: 1.7; margin-bottom: 16px; }
.sc-list { display: flex; flex-direction: column; gap: 6px; }
.sc-list li {
  font-size: 0.82rem;
  color: rgba(240,237,232,0.65);
  padding-left: 16px;
  position: relative;
}
.sc-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--copper);
  font-size: 0.7em;
}
.emergency-card { border-color: rgba(229,57,53,0.3); }
.emergency-card:hover { border-color: rgba(229,57,53,0.5); }
.sc-pulse {
  position: absolute;
  top: 22px; right: 22px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #e53935;
}
.sc-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(229,57,53,0.5);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring { 0%{transform:scale(1);opacity:1} 100%{transform:scale(2.5);opacity:0} }
.sc-emergency-btn {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-h);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #e53935;
  border: 1px solid rgba(229,57,53,0.4);
  padding: 8px 18px;
  border-radius: 3px;
  transition: background 0.3s, color 0.3s;
}
.sc-emergency-btn:hover { background: #e53935; color: #fff; }

/* ── HOUSE BUILDING SECTION ── */
.house-section {
  position: relative;
  background: linear-gradient(180deg, var(--navy) 0%, #060e1a 100%);
}
.house-pin-wrapper {
  position: relative;
  min-height: 100vh;
}
.house-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 100vh;
  align-items: center;
}
.house-text-side {
  padding: 80px 60px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}
.house-steps-container { position: relative; min-height: 200px; }
.hstep {
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.hstep.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}
.hstep-num {
  display: block;
  font-family: var(--font-h);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(212,132,62,0.12);
  line-height: 1;
  margin-bottom: -20px;
}
.hstep h3 {
  font-family: var(--font-h);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 14px;
}
.hstep p { font-size: 1rem; color: var(--gray); line-height: 1.8; max-width: 420px; }

.hstep-progress { display: flex; flex-direction: column; gap: 14px; }
.hstep-dots { display: flex; gap: 10px; }
.hdot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.hdot.active { background: var(--copper); transform: scale(1.3); }
.hprogress-bar { height: 2px; background: rgba(255,255,255,0.08); border-radius: 1px; width: 200px; }
.hprogress-fill { height: 100%; background: var(--copper); border-radius: 1px; width: 0; transition: width 0.6s var(--ease); }

.house-visual-side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 60px 60px 20px;
  min-height: 100vh;
}
.house-label {
  position: absolute;
  top: 40px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-h);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--copper);
  padding: 6px 18px;
  border: 1px solid rgba(212,132,62,0.35);
  border-radius: 2px;
  transition: opacity 0.4s;
  white-space: nowrap;
}
.house-svg {
  width: 100%;
  max-width: 580px;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.6));
}
.h-layer { transition: opacity 0.7s var(--ease); }

/* ── BLUEPRINT ── */
.bp-frame {
  position: relative;
  width: 100%;
  max-width: 620px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(30,64,96,0.8),
              0 0 40px rgba(14,50,100,0.6),
              0 30px 80px rgba(0,0,0,0.7);
}
.bp-badge {
  position: absolute;
  top: -32px; left: 50%; transform: translateX(-50%);
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #6aadce;
  padding: 5px 16px;
  border: 1px solid rgba(100,160,220,0.3);
  border-radius: 2px;
  background: rgba(9,25,46,0.9);
  white-space: nowrap;
  transition: opacity 0.5s, color 0.5s;
}
.bp-svg {
  display: block;
  width: 100%;
  height: auto;
}
.bpd {
  fill: none;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.bpf { opacity: 0; }

/* ── WHY US ── */
.why-us { padding: 120px 0; background: var(--navy2); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why-reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.why-reveal.visible { opacity: 1; transform: translateY(0); }
.why-visual { position: relative; }
.why-img-frame {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.why-img-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.why-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--gray);
  font-size: 0.9rem;
  text-align: center;
  background: linear-gradient(145deg, rgba(30,136,229,0.05), rgba(212,132,62,0.05));
}
.why-img-placeholder p { line-height: 1.5; }
.why-years-badge {
  position: absolute;
  bottom: -24px; right: -24px;
  width: 110px; height: 110px;
  background: var(--copper);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(212,132,62,0.4);
  border: 4px solid var(--navy2);
}
.wyb-num {
  font-family: var(--font-h);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.wyb-text { font-size: 0.68rem; color: rgba(10,22,40,0.8); text-align: center; line-height: 1.3; font-weight: 500; }
.why-desc { color: var(--gray); font-size: 1rem; margin-bottom: 36px; line-height: 1.8; }
.why-features { display: flex; flex-direction: column; gap: 24px; }
.why-feat {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.wf-check {
  width: 32px; height: 32px;
  background: rgba(212,132,62,0.15);
  border: 1px solid var(--copper);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--copper);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.why-feat h4 { font-family: var(--font-h); font-size: 1rem; letter-spacing: 0.5px; margin-bottom: 4px; }
.why-feat p { font-size: 0.88rem; color: var(--gray); line-height: 1.6; }

/* ── STATS ── */
.stats-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0a1628 0%, #0d1e35 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
}
.stat-block { text-align: center; }
.stat-count {
  display: block;
  font-family: var(--font-h);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--copper);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-suffix {
  font-family: var(--font-h);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--copper);
  font-weight: 500;
}
.stat-block p { font-size: 0.82rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); margin-top: 6px; }
.stat-divider { width: 1px; height: 70px; background: var(--border); }

/* ── TESTIMONIALS ── */
.testimonials { padding: 120px 0; background: var(--navy2); }
.testi-wrapper { overflow: hidden; margin: 0 -12px; }
.testi-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s var(--ease);
  padding: 12px;
}
.testi-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 36px 30px;
  min-width: calc(33.333% - 16px);
  flex-shrink: 0;
  transition: border-color 0.3s, transform 0.3s;
}
.testi-card:hover { border-color: rgba(212,132,62,0.25); transform: translateY(-4px); }
.testi-stars { color: var(--copper); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 16px; }
.testi-text { font-size: 0.95rem; color: rgba(240,237,232,0.8); line-height: 1.75; margin-bottom: 24px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--copper-dim), var(--copper));
  display: grid;
  place-items: center;
  font-family: var(--font-h);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
}
.testi-author strong { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.testi-author span { font-size: 0.78rem; color: var(--gray); }
.testi-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 36px; }
.testi-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 1.3rem;
  display: grid;
  place-items: center;
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
}
.testi-btn:hover { background: var(--copper); border-color: var(--copper); transform: scale(1.05); }
.testi-dots { display: flex; gap: 8px; }
.tdot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  border: none;
}
.tdot.active { background: var(--copper); transform: scale(1.3); }

/* ── CONTACT ── */
.contact { padding: 120px 0; background: var(--navy); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-desc { color: var(--gray); font-size: 1rem; margin-bottom: 40px; line-height: 1.8; }
.cinfo-list { display: flex; flex-direction: column; gap: 28px; }
.cinfo-item { display: flex; gap: 18px; align-items: flex-start; }
.cinfo-icon {
  width: 46px; height: 46px;
  background: rgba(212,132,62,0.1);
  border: 1px solid rgba(212,132,62,0.2);
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.cinfo-item h4 { font-family: var(--font-h); font-size: 0.9rem; letter-spacing: 1px; margin-bottom: 4px; }
.cinfo-item p { font-size: 0.9rem; color: var(--gray); line-height: 1.7; }
.cinfo-item a { color: var(--gray); transition: color 0.3s; }
.cinfo-item a:hover { color: var(--copper); }

.cform {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cform-group { display: flex; flex-direction: column; gap: 8px; }
.cform-group label { font-size: 0.8rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: rgba(240,237,232,0.6); }
.cform-group input,
.cform-group select,
.cform-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font-b);
  font-size: 0.92rem;
  transition: border-color 0.3s, background 0.3s;
  resize: none;
}
.cform-group input::placeholder,
.cform-group textarea::placeholder { color: rgba(240,237,232,0.3); }
.cform-group input:focus,
.cform-group select:focus,
.cform-group textarea:focus {
  outline: none;
  border-color: var(--copper);
  background: rgba(212,132,62,0.04);
}
.cform-group select option { background: #0d1e35; }

/* ── FOOTER ── */
.footer {
  background: #060c16;
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.75;
  margin: 20px 0 24px;
  max-width: 280px;
}
.footer-social { display: flex; gap: 10px; }
.fsocial-btn {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gray);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.fsocial-btn:hover { border-color: var(--copper); color: var(--copper); background: rgba(212,132,62,0.08); }
.footer-col h4 {
  font-family: var(--font-h);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.88rem;
  color: var(--gray);
  transition: color 0.3s, padding-left 0.3s;
}
.footer-col a:hover { color: var(--copper); padding-left: 6px; }
.footer-emergency h4 { color: var(--white); font-family: var(--font-h); font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.femergency-num {
  display: block;
  font-family: var(--font-h);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--copper);
  margin-bottom: 10px;
  transition: color 0.3s;
}
.femergency-num:hover { color: #e8924a; }
.footer-emergency p { font-size: 0.85rem; color: var(--gray); line-height: 1.6; margin-bottom: 14px; }
.femergency-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #4caf50;
  background: rgba(76,175,80,0.1);
  border: 1px solid rgba(76,175,80,0.2);
  padding: 6px 14px;
  border-radius: 20px;
}
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(122,143,160,0.6); }

/* ── SCROLL REVEAL (service cards) ── */
.sc-reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.sc-reveal:nth-child(1) { transition-delay: 0s; }
.sc-reveal:nth-child(2) { transition-delay: 0.08s; }
.sc-reveal:nth-child(3) { transition-delay: 0.16s; }
.sc-reveal:nth-child(4) { transition-delay: 0.24s; }
.sc-reveal:nth-child(5) { transition-delay: 0.32s; }
.sc-reveal:nth-child(6) { transition-delay: 0.40s; }
.sc-reveal:nth-child(7) { transition-delay: 0.48s; }
.sc-reveal:nth-child(8) { transition-delay: 0.56s; }
.sc-reveal:nth-child(9) { transition-delay: 0.64s; }

/* ── GALLERY ── */
.gallery-section { padding: 120px 0; background: var(--navy); }

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}
.gf-btn {
  font-family: var(--font-h);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 10px 22px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
}
.gf-btn:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }
.gf-btn.active { background: var(--copper); color: #fff; border-color: var(--copper); transform: translateY(-1px); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* Standard item */
.gi {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 1 / 1;
  background: var(--card-bg);
  cursor: zoom-in;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.gi:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.4); }
.gi.hidden { display: none; }

/* Wide item (before/after) */
.gi-wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
  cursor: default;
}
.gi-wide:hover { transform: none; box-shadow: none; }

.gi-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.gi-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.gi:hover .gi-wrap img { transform: scale(1.06); }

/* Overlay on hover */
.gi-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px;
  opacity: 0;
  transition: opacity 0.3s;
}
.gi:hover .gi-overlay { opacity: 1; }
.gi-cat {
  font-family: var(--font-h);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--copper);
  background: rgba(10,22,40,0.7);
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid rgba(224,112,32,0.4);
}
.gi-zoom {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--copper);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 300;
  display: grid;
  place-items: center;
  line-height: 1;
}

/* Before / After layout */
.gi-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  height: 100%;
}
.ba-side {
  position: relative;
  overflow: hidden;
  height: 100%;
}
.ba-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.ba-side:hover img { transform: scale(1.05); }
.ba-label {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-h);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  white-space: nowrap;
}
.ba-before .ba-label { background: rgba(229,57,53,0.85); color: #fff; }
.ba-after  .ba-label { background: rgba(76,175,80,0.85);  color: #fff; }

/* Divider line between before/after */
.ba-side + .ba-side::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--copper);
  z-index: 1;
}

.gallery-footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.95rem;
  color: var(--gray);
}
.gallery-footer a { color: var(--copper); transition: color 0.3s; }
.gallery-footer a:hover { color: #e8924a; }

/* Gallery image lightbox (reuse .lightbox modal) */
.lb-gallery-img { max-height: 90vh; width: auto; max-width: 95vw; }

/* ── LOGO LIGHTBOX ── */
.logo-crop { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 22, 0.92);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}
.lb-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  overflow: hidden;
  max-width: min(480px, 92vw);
  width: 100%;
  transform: scale(0.88);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lightbox.open .lb-card {
  transform: scale(1);
}
.lb-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.2s;
}
.lb-close:hover { background: var(--copper); transform: scale(1.1); }

/* Muestra solo el frente de la tarjeta de presentación */
.lb-img-wrap {
  width: 100%;
  padding-bottom: 58%;   /* recorta al frente de la tarjeta */
  position: relative;
  overflow: hidden;
  background: #fff;
}
.lb-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .house-inner { grid-template-columns: 1fr; }
  .house-text-side { padding: 80px 40px 40px; }
  .house-visual-side { min-height: auto; padding: 20px 40px 80px; }
  .house-label { top: 20px; }
  .why-grid { grid-template-columns: 1fr; gap: 60px; }
  .why-visual { max-width: 480px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 20px; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(6,12,22,0.98); align-items: center; justify-content: center; z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-link { font-size: 1.5rem; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero { padding-top: 90px; }
  .hero-stats { padding: 20px 24px; flex-wrap: wrap; gap: 16px; }
  .hstat-divider { display: none; }
  .hstat { min-width: 40%; }
  .services-grid { grid-template-columns: 1fr; }
  .house-text-side { padding: 60px 24px 40px; }
  .house-visual-side { padding: 20px 24px 60px; }
  .hstep-num { font-size: 3.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cform-row { grid-template-columns: 1fr; }
  .cform { padding: 28px 20px; }
  .stats-grid { flex-wrap: wrap; justify-content: center; }
  .stat-divider { display: none; }
  .stat-block { min-width: 40%; }
  .testi-card { min-width: calc(100% - 24px); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .scroll-hint { display: none; }
  .why-years-badge { right: 0; bottom: -16px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
  .hero-btns { flex-direction: column; gap: 12px; }
  .btn-primary, .btn-outline { text-align: center; }
}
