/* ==========================================================================
   Fabián Construcciones — estilos
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f5f7;
  --ink: #14161c;
  --ink-soft: #4b4f5a;
  --muted: #767b87;
  --border: #e4e5ea;

  --dark: #12141a;
  --dark-soft: #1b1e26;

  --accent: #ffb100;
  --accent-dark: #e69900;
  --accent-ink: #12141a;

  --whatsapp: #25d366;
  --whatsapp-dark: #1fb955;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(18, 20, 26, .25);
  --shadow-sm: 0 4px 14px -6px rgba(18, 20, 26, .18);

  --font-head: 'Archivo', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-family: var(--font-head);
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 15px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }

.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--accent-dark); }

.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--ink); }

.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(18, 20, 26, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand-mark {
  width: 34px; height: 34px;
  color: var(--accent);
  flex-shrink: 0;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-text {
  font-family: var(--font-head);
  font-weight: 500;
  color: #fff;
  font-size: 18px;
  letter-spacing: -.01em;
}
.brand-text strong { font-weight: 800; }

.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  color: rgba(255,255,255,.82);
  font-weight: 600;
  font-size: 14.5px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.main-nav a:hover { color: #fff; border-color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  margin: 0 auto;
  transition: transform .2s, opacity .2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12,13,17,.75) 0%, rgba(12,13,17,.55) 40%, rgba(12,13,17,.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 90px;
  padding-bottom: 70px;
  max-width: 780px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.hero h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.hero-lead {
  color: rgba(255,255,255,.85);
  font-size: 18px;
  max-width: 620px;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.hero-badges li {
  color: rgba(255,255,255,.8);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-badges li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* caution strip divider */
.caution-strip {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent),
    var(--accent) 18px,
    var(--dark) 18px,
    var(--dark) 36px
  );
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }

.section-eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  margin-bottom: 12px;
}
.section-eyebrow--light { color: var(--accent); }

.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -.02em;
  max-width: 640px;
}
.section-lead {
  font-size: 17px;
  max-width: 620px;
  margin-bottom: 44px;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.service-card--featured {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}
.service-card--featured h3 { color: #fff; }
.service-card--featured .service-sub { color: rgba(255,255,255,.65); }
.service-card--featured li { color: rgba(255,255,255,.85); }
.service-card--featured .service-icon { color: var(--accent); }
.service-card--featured .service-link { color: var(--accent); }

.service-icon {
  width: 46px; height: 46px;
  color: var(--accent-dark);
  margin-bottom: 18px;
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 { font-size: 19px; margin-bottom: 6px; }
.service-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; font-weight: 600; }

.service-card ul { margin-bottom: 6px; }
.service-card li {
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 5px 0 5px 20px;
  position: relative;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.service-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-dark);
}

/* ---------- Alturas feature ---------- */
.alturas {
  background: var(--dark);
  color: #fff;
  padding: 96px 0;
}
.alturas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.alturas-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
}
.alturas-media img { width: 100%; height: 560px; object-fit: cover; }

.alturas-content h2 {
  color: #fff;
  font-size: clamp(26px, 3.2vw, 36px);
  max-width: 480px;
}
.alturas-content > p { color: rgba(255,255,255,.75); font-size: 16.5px; max-width: 480px; }

.alturas-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 30px 0 34px;
}
.alturas-list h4 {
  color: var(--accent);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
}
.alturas-list li {
  color: rgba(255,255,255,.85);
  font-size: 14.5px;
  padding: 5px 0 5px 18px;
  position: relative;
}
.alturas-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Trust grid ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.trust-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
}
.trust-icon {
  width: 42px; height: 42px;
  color: var(--accent-dark);
  margin-bottom: 16px;
}
.trust-icon svg { width: 100%; height: 100%; }
.trust-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.trust-card p { font-size: 14px; margin: 0; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-alt);
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.35) 100%);
  opacity: 0;
  transition: opacity .2s;
}
.gallery-item:hover::after { opacity: 1; }

.gallery-more { text-align: center; margin-top: 36px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 11, 14, .95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: min(90vw, 1100px);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  color: #fff;
  border: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav:hover, .lightbox-close:hover { background: rgba(255,255,255,.22); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-count {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: 13.5px;
  font-weight: 600;
  margin: 0;
}

/* ---------- Zona ---------- */
.zona {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 64px 0;
  text-align: center;
}
.zona-inner { display: flex; flex-direction: column; align-items: center; }
.zona-icon { width: 46px; height: 46px; margin-bottom: 14px; }
.zona-icon svg { width: 100%; height: 100%; }
.zona h2 { margin-bottom: 8px; font-size: 28px; }
.zona p { color: rgba(18,20,26,.8); margin: 0; font-size: 16px; }

/* ---------- Contacto ---------- */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.whatsapp-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 28px 0 26px;
  transition: box-shadow .2s, transform .2s;
}
.whatsapp-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.whatsapp-card-icon {
  width: 46px; height: 46px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.whatsapp-card-icon svg { width: 24px; height: 24px; fill: #fff; }
.whatsapp-card strong { display: block; font-size: 15px; }
.whatsapp-card span:last-child { color: var(--muted); font-size: 14px; }
.whatsapp-card > span { display: flex; flex-direction: column; gap: 2px; }

.contacto-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.contacto-badges li {
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.contacto-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
}
.form-row { margin-bottom: 18px; }
.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contacto-form label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--ink);
}
.contacto-form input,
.contacto-form select,
.contacto-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s;
}
.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
  outline: none;
  border-color: var(--accent-dark);
}
.contacto-form textarea { resize: vertical; }
.hidden-field { position: absolute; left: -9999px; }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; margin: 14px 0 0; }
.form-feedback {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.form-feedback.ok { background: #e6f8ec; color: #157a3b; }
.form-feedback.err { background: #fdeceb; color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.8); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 32px;
  padding: 60px 0 40px;
}
.footer-brand .brand-text { color: #fff; font-size: 19px; }
.footer-brand p { color: rgba(255,255,255,.55); font-size: 14px; margin-top: 10px; }
.footer-links h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.footer-links a { color: rgba(255,255,255,.75); font-size: 14.5px; font-weight: 600; }
.footer-links a:hover { color: var(--accent); }
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
  justify-content: flex-end;
}
.footer-badges span {
  border: 1px solid rgba(255,255,255,.18);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  height: fit-content;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
}
.footer-bottom p { margin: 0; font-size: 13px; color: rgba(255,255,255,.5); text-align: center; }

/* ---------- Floating WhatsApp ---------- */
.fab-whatsapp {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px -6px rgba(37, 211, 102, .55);
  z-index: 300;
  animation: fab-pulse 2.4s infinite;
}
.fab-whatsapp svg { width: 30px; height: 30px; fill: #fff; }
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 10px 26px -6px rgba(37, 211, 102, .55); }
  50% { box-shadow: 0 10px 26px -6px rgba(37, 211, 102, .85), 0 0 0 10px rgba(37, 211, 102, .12); }
}

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .alturas-grid { grid-template-columns: 1fr; gap: 36px; }
  .alturas-media img { height: 380px; }
  .contacto-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-badges { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta .btn { padding: 11px; width: 42px; height: 42px; }
  .header-cta .btn span { display: none; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--dark);
    padding: 18px 24px 26px;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .site-header.nav-open .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }

  .hero { min-height: auto; padding-top: 20px; }
  .hero-content { padding-top: 60px; padding-bottom: 50px; }
  .hero-actions .btn { width: 100%; }

  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row--split { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-badges { justify-content: flex-start; }

  .lightbox { padding: 16px; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 24px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}
