/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #258e55; border-radius: 3px; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container--wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: 88px;
  display: flex;
  align-items: center;
}

.navbar-inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 52px; width: auto; }

.nav-links { display: none; align-items: center; }
@media (min-width: 1280px) { .nav-links { display: flex; } }

.nav-link {
  position: relative;
  padding: 4px 11px;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.13px;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-link:hover { color: rgba(255,255,255,0.9); }
.nav-link.active { color: #258e55; font-weight: 400; }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 11px;
  width: 33px; height: 1.5px;
  background: #258e55;
  border-radius: 1px;
}

.nav-right { display: none; align-items: center; gap: 16px; flex-shrink: 0; }
@media (min-width: 1024px) { .nav-right { display: flex; } }

.nav-tel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
}

.nav-tel svg, .nav-wa svg { display: block; }

.btn-cotizar {
  background: #258e55;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.28px;
  white-space: nowrap;
  transition: background 0.2s;
  display: inline-block;
}
.btn-cotizar:hover { background: #1c7343; }

.nav-mobile-btn { display: flex; color: white; padding: 4px; }
@media (min-width: 1280px) { .nav-mobile-btn { display: none; } }

/* Mobile drawer */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 88px; left: 0; right: 0;
  background: #1a1a1a;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px;
  flex-direction: column;
  gap: 2px;
  z-index: 99;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-link {
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  border-radius: 6px;
  text-align: left;
  transition: all 0.2s;
}
.nav-mobile-link.active { color: #258e55; background: rgba(37,142,85,0.08); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: #1a1a1a;
  min-height: 867px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding-top: 88px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-video {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,20,20,0.55) 0%,
    rgba(20,20,20,0.4) 40%,
    rgba(20,20,20,0.85) 100%
  );
  z-index: 1;
}

@media (min-width: 769px) {
  .hero-video {
    display: block;
  }
  .hero-bg {
    display: none;
  }
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(10,10,10,0.65) 0%,
      rgba(10,10,10,0.5) 40%,
      rgba(10,10,10,0.88) 100%
    );
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 2rem 64px;
  max-width: 900px;
  width: 100%;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2.86px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-logo {
  width: 100%;
  max-width: 516px;
  height: auto;
  margin: 0 auto 32px;
}

.hero-subtitle {
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 300;
  color: rgba(247,247,247,0.6);
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #258e55;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.32px;
  transition: background 0.2s;
}
.btn-primary:hover { background: #1c7343; }
.btn-primary svg { display: block; }

.btn-ghost {
  font-size: 15px;
  font-weight: 300;
  color: rgba(247,247,247,0.65);
  transition: color 0.2s;
}
.btn-ghost:hover { color: white; }

/* Stats bar */
.hero-stats {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-stats-inner {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 32px 2rem;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }

.stat-value {
  font-size: 35px;
  font-weight: 300;
  color: #f7f7f7;
  line-height: 1.25;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.72px;
}

/* ============================================================
   SECTION BASE
   ============================================================ */
.section { padding: 96px 0; }

.section-label {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #258e55;
  letter-spacing: 2.16px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 300;
  color: #1a1a1a;
  line-height: 1.15;
}

/* ============================================================
   LO QUE RESOLVEMOS
   ============================================================ */
.problems-section {
  background: #f7f7f7;
}

.problems-section .container {
  text-align: center;
}

.problems-section .section-heading {
  margin-bottom: 12px;
}

.problems-desc {
  font-size: 16px;
  color: #777;
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 52px;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}

.problem-card {
  background: #e8e8e8;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.problem-icon {
  width: 52px;
  height: 52px;
  background: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.problem-icon svg { display: block; }

.problem-title {
  font-size: 16px;
  font-weight: 300;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.problem-solution {
  font-size: 13px;
  color: #666;
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #258e55;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  transition: background 0.2s;
}
.btn-sm:hover { background: #1c7343; }
.btn-sm svg { display: block; }

/* ============================================================
   TIPOS DE ACABADOS
   ============================================================ */
.acabados-section { background: #e8e8e8; }

.acabados-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
}

.acabados-link {
  font-size: 14px;
  font-weight: 500;
  color: #888;
  white-space: nowrap;
  transition: color 0.2s;
}
.acabados-link:hover { color: #555; }

.acabados-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.acabado-card {
  background: #f7f7f7;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.acabado-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); }

.acabado-img {
  height: 260px;
  overflow: hidden;
}
.acabado-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.acabado-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.acabado-title {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.acabado-desc {
  font-size: 13px;
  color: #777;
  line-height: 1.65;
  flex: 1;
}

.acabado-link {
  font-size: 13px;
  font-weight: 600;
  color: #258e55;
  margin-top: 16px;
  display: block;
}

/* Pager */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.pager-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: 1px solid rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.pager-btn:hover { background: #f0f0f0; }
.pager-btn:disabled { opacity: 0.3; cursor: default; pointer-events: none; }
.pager-btn svg { display: block; }

.pager-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.pager-dot {
  height: 8px;
  border-radius: 4px;
  background: rgba(0,0,0,0.2);
  width: 8px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  padding: 0;
}
.pager-dot.active { width: 20px; background: #258e55; }

/* ============================================================
   POR QUÉ ELEGIRNOS
   ============================================================ */
.porq-section { background: #f7f7f7; }

.porq-section .section-label { margin-bottom: 48px; }

.porq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.porq-card {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 26px;
}

.porq-icon {
  width: 52px;
  height: 52px;
  background: #e8e8e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.porq-icon svg { display: block; }

.porq-title {
  font-size: 16px;
  font-weight: 300;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.5;
}

.porq-desc {
  font-size: 13px;
  color: #777;
  line-height: 1.7;
}

/* ============================================================
   CTA DARK
   ============================================================ */
.cta-section {
  background: #1a1a1a;
  padding: 100px 2rem;
  text-align: center;
}

.cta-label {
  display: block;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.cta-heading {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  color: #f7f7f7;
  margin-bottom: 36px;
  line-height: 1.1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #141414;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
}

.footer-group-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-link {
  display: block;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-link:hover { color: rgba(255,255,255,0.85); }

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.footer-contact-row svg { flex-shrink: 0; display: block; }

.footer-address {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  margin-top: 8px;
}

.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.social-btn {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.social-btn:hover { background: rgba(255,255,255,0.15); }
.social-btn svg { display: block; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 24px;
  z-index: 50;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { display: block; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .problems-grid { grid-template-columns: repeat(2, 1fr); }
  .porq-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero { min-height: auto; }
  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; }
  .stat-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; }
  .problems-grid { grid-template-columns: repeat(2, 1fr); }
  .acabados-grid { grid-template-columns: 1fr; }
  .porq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .acabados-header { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .problems-grid { grid-template-columns: 1fr; }
  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .btn-primary { padding: 14px 28px; font-size: 15px; }
}
