/* ==========================================================
   ELEVADORES TESLA S.A.S. — Light Theme
   ========================================================== */

:root {
  --white: #ffffff;
  --gray-100: #f6f7f9;
  --gray-200: #eceef1;
  --gray-300: #dde1e6;
  --gray-metallic: #858585;
  --gray-400: #b0b0b0;
  --gray-600: #5b6470;
  --gray-800: #232a33;
  --ink: #121826;

  --blue: #0045ab;
  --blue-dark: #00388c;
  --blue-soft: #e8f0fe;
  --blue-pale: #adcde6;
  --green: #63a51e;
  --green-dark: #4b8412;
  --green-soft: #eff7e3;
  --gold: #ecaa00;
  --gold-dark: #c98f00;
  --gold-soft: #fbf4e0;

  --grad-blue: linear-gradient(135deg, #2f7bdd 0%, #0045ab 100%);
  --grad-green: linear-gradient(135deg, #7cb84a 0%, #4b8412 100%);
  --grad-gold: linear-gradient(135deg, #ffce54 0%, #c98f00 100%);
  --grad-ink: linear-gradient(135deg, #23304a 0%, #121826 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(20, 24, 31, 0.06);
  --shadow: 0 10px 30px rgba(20, 24, 31, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 24, 31, 0.12);

  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Poppins", "Inter", 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;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  padding: 13px 26px;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 69, 171, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0, 69, 171, 0.36); }
.btn-outline {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border: 1.5px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { transform: translateY(-2px); border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-whatsapp { background: var(--grad-green); color: #fff; box-shadow: 0 10px 24px rgba(20, 184, 105, 0.28); }
.btn-whatsapp:hover { transform: translateY(-2px); }

/* ==========================================================
   NAVBAR
   ========================================================== */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  padding: 22px 0;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--grad-blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 69, 171, 0.3);
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%; height: 100%;
  object-fit: cover;
  background: #fff;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.6px; color: var(--ink); }
.brand-text small { font-size: 11px; color: var(--gray-600); letter-spacing: 0.4px; }
.navbar.scrolled .brand-text strong { color: var(--ink); }
.navbar:not(.scrolled) .brand-text strong { color: var(--gold); }
.navbar:not(.scrolled) .brand-text small { color: rgba(255,255,255,0.85); }

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.25s ease, background 0.25s ease;
}
.navbar.scrolled .nav-link { color: var(--gray-800); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover { color: var(--blue); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-cta { margin-left: 10px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 8px;
}
.menu-toggle span {
  width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.navbar:not(.scrolled) .menu-toggle span { background: #fff; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 60px;
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(8, 18, 40, 0.95) 0%, rgba(0, 45, 140, 0.85) 45%, rgba(8, 18, 40, 0.6) 100%),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=75") center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 380px at 15% 15%, rgba(0, 69, 171, 0.22), transparent 70%),
    radial-gradient(500px 320px at 90% 80%, rgba(236, 170, 0, 0.2), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #cfe1ff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 9px 16px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(99, 165, 30,0.25); }

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  margin: 22px 0 18px;
  letter-spacing: -1.5px;
}
.grad-text {
  background: linear-gradient(100deg, #8ec0ff 0%, #5a9bff 40%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { font-size: 17px; color: rgba(255, 255, 255, 0.85); max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }

.hero-indicators {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 6px 0;
  width: fit-content;
}
.hero-indicators li {
  padding: 14px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-indicators li:last-child { border-right: none; }
.ind-num {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
}
.ind-label { font-size: 11.5px; color: rgba(255, 255, 255, 0.72); letter-spacing: 0.3px; }

.hero-visual { position: relative; height: 520px; }
.hero-photo { position: absolute; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-main { width: 68%; height: 82%; top: 0; left: 0; }
.photo-side { width: 46%; height: 58%; bottom: 0; right: 0; border: 5px solid #fff; }

.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  backdrop-filter: blur(8px);
}
.float-card { top: 40px; right: -10px; animation: floaty 5s ease-in-out infinite; }
.float-card-2 { bottom: 44px; left: -14px; animation: floaty 6s ease-in-out 0.8s infinite; }
.hero-card strong { font-size: 13.5px; display: block; }
.hero-card small { font-size: 11.5px; color: var(--gray-600); }
.float-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: #fff;
}
.float-card .float-icon { background: var(--grad-blue); }
.float-card-2 .float-icon { background: var(--grad-green); }
.float-icon i { width: 20px; height: 20px; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.scroll-down {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  animation: bounce 2s infinite;
  z-index: 2;
}
.scroll-down i { width: 24px; height: 24px; }
@keyframes bounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ==========================================================
   SECTIONS GENERIC
   ========================================================== */
.section { padding: 104px 0; }
.section-alt { background: var(--gray-100); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #d6e4ff;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-sub { color: var(--gray-600); font-size: 16.5px; }

/* ==========================================================
   NOSOTROS
   ========================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.about-visual { position: relative; }
.about-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  width: 100%;
}
.exp-badge {
  position: absolute;
  bottom: -24px; right: -18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--grad-blue);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
}
.exp-badge strong { font-family: var(--font-display); font-size: 2rem; }
.exp-badge span { font-size: 12.5px; line-height: 1.3; opacity: 0.95; }
.about-content p { color: var(--gray-600); font-size: 16.5px; margin-bottom: 22px; }
.about-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.about-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--gray-800); }
.about-list i { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; }
.about-content .btn i { width: 18px; height: 18px; }

/* ==========================================================
   SERVICIOS
   ========================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 22px;
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}
.service-icon i { width: 26px; height: 26px; }
.service-card:hover .service-icon { background: var(--grad-blue); color: #fff; transform: scale(1.06); }
.service-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.service-card p { color: var(--gray-600); font-size: 14.5px; margin-bottom: 18px; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--blue);
}
.service-link i { width: 16px; height: 16px; transition: transform 0.25s ease; }
.service-link:hover i { transform: translate(3px, -3px); }

/* ==========================================================
   ¿POR QUÉ ELEGIRNOS?
   ========================================================== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.why-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--gray-100);
  color: var(--blue);
  margin-bottom: 18px;
}
.why-icon i { width: 24px; height: 24px; }
.why-item:nth-child(2) .why-icon { color: var(--green); background: var(--green-soft); }
.why-item:nth-child(3) .why-icon { color: var(--gold-dark); background: var(--gold-soft); }
.why-item:nth-child(4) .why-icon { color: var(--blue); background: var(--blue-soft); }
.why-item:nth-child(5) .why-icon { color: var(--gold-dark); background: var(--gold-soft); }
.why-item:nth-child(6) .why-icon { color: var(--green); background: var(--green-soft); }
.why-item h4 { font-size: 1.05rem; margin-bottom: 8px; }
.why-item p { color: var(--gray-600); font-size: 14px; }

/* ==========================================================
   PROYECTOS
   ========================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}
.filter-btn {
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  color: var(--gray-600);
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: 999px;
  transition: all 0.25s ease;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.is-active { background: var(--grad-blue); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(0, 69, 171, 0.3); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3.4;
}
.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover img { transform: scale(1.08); }
.project-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 56px 22px 20px;
  background: linear-gradient(to top, rgba(10, 16, 28, 0.85), transparent);
  color: #fff;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.project-card:hover figcaption { opacity: 1; transform: none; }
.project-card figcaption h3 { font-size: 1.15rem; }
.project-card figcaption p { font-size: 13px; color: rgba(255,255,255,0.82); }
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-dark);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.project-card .tag { background: rgba(255,255,255,0.2); color: #fff; backdrop-filter: blur(6px); }

.project-card.is-hidden { display: none; }

/* ==========================================================
   PRODUCTOS
   ========================================================== */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-visual {
  height: 168px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.product-visual i { width: 54px; height: 54px; color: #fff; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.18)); }
.grad-blue { background: linear-gradient(140deg, #8ec0ff 0%, #0045ab 78%); }
.grad-green { background: linear-gradient(140deg, #9ccb63 0%, #4b8412 78%); }
.grad-gold { background: linear-gradient(140deg, #ffd76e 0%, #c98f00 78%); }
.product-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.product-card p { color: var(--gray-600); font-size: 14px; margin-bottom: 18px; }
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.product-link i { width: 16px; height: 16px; color: var(--blue); transition: transform 0.25s ease; }
.product-link:hover i { transform: translateX(4px); }

/* ==========================================================
   ESTADÍSTICAS
   ========================================================== */
.stats {
  background: linear-gradient(120deg, #0b1630 0%, #0d2752 55%, #0a1f42 100%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 300px at 10% 20%, rgba(0, 69, 171, 0.45), transparent 70%),
    radial-gradient(480px 300px at 90% 85%, rgba(236, 170, 0, 0.22), transparent 70%);
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat { padding: 10px; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(100deg, #8ec0ff 0%, #ffffff 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: 14px; color: rgba(255,255,255,0.75); margin-top: 6px; display: block; }

/* ==========================================================
   TESTIMONIOS
   ========================================================== */
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stars { color: var(--gold); letter-spacing: 3px; font-size: 15px; }
.testimonial p { color: var(--gray-800); font-size: 15px; flex: 1; }
.testimonial footer { display: flex; align-items: center; gap: 12px; }
.testimonial footer img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial footer strong { display: block; font-size: 14px; }
.testimonial footer span { font-size: 12.5px; color: var(--gray-600); }
.dots { display: flex; justify-content: center; gap: 8px; }
.dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--gray-300);
  transition: all 0.3s ease;
}
.dots button.is-active { background: var(--blue); width: 26px; border-radius: 999px; }

/* ==========================================================
   CLIENTES
   ========================================================== */
.logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logo-track { display: flex; gap: 44px; align-items: center; width: max-content; animation: marquee 28s linear infinite; }
.logo-track:hover { animation-play-state: paused; }
.client-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 1.5px;
  color: var(--gray-metallic);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.client-logo:hover { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================
   COBERTURA
   ========================================================== */
.coverage-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: stretch;
}
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  min-height: 380px;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.cities {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.cities h3 { font-size: 1.2rem; margin-bottom: 20px; }
.cities ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin-bottom: 24px;
}
.cities li { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; color: var(--gray-800); }
.cities li i { width: 17px; height: 17px; color: var(--blue); flex-shrink: 0; }
.coverage-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 13.5px;
  font-weight: 500;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
}
.coverage-note i { width: 18px; height: 18px; flex-shrink: 0; }

/* ==========================================================
   BLOG
   ========================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.blog-card > img { aspect-ratio: 16 / 10; object-fit: cover; }
.blog-featured { grid-row: span 1; }
.blog-body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-body .tag { align-self: flex-start; margin: 0; }
.blog-body h3 { font-size: 1.15rem; line-height: 1.3; }
.blog-body p { color: var(--gray-600); font-size: 14px; flex: 1; }
.blog-body .service-link { margin-top: 4px; }
.blog-featured > img { aspect-ratio: 16 / 8; }

/* ==========================================================
   CONTACTO
   ========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue);
  flex-shrink: 0;
}
.contact-icon i { width: 21px; height: 21px; }
.contact-item strong { display: block; font-size: 13px; color: var(--gray-metallic); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; margin-bottom: 3px; }
.contact-item a, .contact-item span { font-size: 15px; font-weight: 500; color: var(--ink); }
.contact-item a:hover { color: var(--blue); }
.contact-cta { margin-top: 4px; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-800); margin-bottom: 7px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.form-group textarea { resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 69, 171, 0.12);
}
.form-group input.has-error { border-color: #e5484d; }
.form-success {
  display: none;
  margin-top: 16px;
  text-align: center;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid #b9ecd2;
  border-radius: var(--radius-sm);
  padding: 13px;
  font-size: 14px;
  font-weight: 500;
}
.form-success.show { display: block; }
.form-error {
  display: none;
  margin-top: 16px;
  text-align: center;
  color: #b42318;
  background: #fdecea;
  border: 1px solid #f5c2bd;
  border-radius: var(--radius-sm);
  padding: 13px;
  font-size: 14px;
  font-weight: 500;
}
.form-error.show { display: block; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer { background: var(--gray-100); border-top: 1px solid var(--gray-200); padding-top: 72px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand .brand-mark { background: var(--grad-blue); }
.footer-brand p { color: var(--gray-600); font-size: 14px; margin: 18px 0 20px; max-width: 300px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  transition: all 0.25s ease;
}
.socials a:hover { background: var(--grad-blue); color: #fff; transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0, 69, 171, 0.28); }
.socials i { width: 18px; height: 18px; }
.footer-col h4 { font-size: 15px; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: var(--gray-600); transition: color 0.25s ease; }
.footer-col a:hover { color: var(--blue); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--gray-600); }
.footer-contact i { width: 17px; height: 17px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0;
  border-top: 1px solid var(--gray-200);
  font-size: 13px;
  color: var(--gray-metallic);
}

/* ==========================================================
   FLOATING BUTTONS
   ========================================================== */
.fab {
  position: fixed;
  right: 22px;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  z-index: 90;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fab:hover { transform: scale(1.08); }
.fab i { width: 25px; height: 25px; }
.fab-whatsapp { bottom: 24px; background: var(--grad-green); animation: pulse 2.4s infinite; }
.fab-call { bottom: 92px; background: var(--grad-blue); display: none; }
.fab-top {
  bottom: 92px;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.25s ease;
}
.fab-top.visible { opacity: 1; pointer-events: auto; }
.fab-tooltip {
  position: absolute;
  right: 64px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  padding: 8px 13px;
  border-radius: 9px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.fab-tooltip::after {
  content: "";
  position: absolute;
  top: 50%; right: -5px;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--ink);
}
.fab-whatsapp:hover .fab-tooltip { opacity: 1; }
@keyframes pulse {
  0% { box-shadow: 0 12px 28px rgba(99, 165, 30,0.4), 0 0 0 0 rgba(99, 165, 30,0.4); }
  70% { box-shadow: 0 12px 28px rgba(99, 165, 30,0.4), 0 0 0 16px rgba(99, 165, 30,0); }
  100% { box-shadow: 0 12px 28px rgba(99, 165, 30,0.4), 0 0 0 0 rgba(99, 165, 30,0); }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 440px; max-width: 560px; }
  .hero { padding-top: 120px; }
  .hero-indicators { grid-template-columns: repeat(2, 1fr); width: min(100%, 480px); }
  .hero-indicators li { border-right: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 560px; }
  .services-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-featured { grid-column: span 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 82%);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    padding: 96px 28px 32px;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .nav-menu.open { transform: none; }
  .nav-link { color: var(--gray-800) !important; font-size: 16px; width: 100%; }
  .nav-link::after { display: none; }
  .nav-menu .btn { width: 100%; margin-top: 12px; }
  .hero-title { letter-spacing: -0.8px; }
  .hero-indicators { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .products-grid, .why-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-featured { grid-column: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .coverage-grid { grid-template-columns: 1fr; }
  .cities ul { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .fab-call { display: grid; }
  .fab-top { bottom: 160px; }
  .hero-visual { height: 360px; }
  .float-card { right: 0; top: 16px; }
  .float-card-2 { left: 0; bottom: 24px; }
}

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