/* ===========================================================
   Grehans Tech MX — Hoja de estilos principal
   Paleta: azul marino de marca + plata + acentos por categoría
   =========================================================== */

:root {
  color-scheme: light;

  /* Marca (tomada del logo: azul marino, plata/circuito, dorado, verde, café) */
  --brand-navy: #16305c;
  --brand-navy-dark: #0d1f3d;
  --brand-navy-mid: #1f4278;
  --brand-silver: #8b95a1;
  --brand-silver-light: #eef1f4;
  --brand-gold: #b8934a;
  --brand-gold-light: #f7eddb;
  --brand-green: #3f7a3a;
  --brand-brown: #6b4423;
  --ease-smooth: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Superficies y tinta (paleta accesible) */
  --surface-0: #ffffff;
  --surface-1: #f9f9f7;
  --surface-2: #f2f4f6;
  --ink-primary: #0b0b0b;
  --ink-secondary: #52514e;
  --ink-muted: #898781;
  --border-hairline: rgba(11, 11, 11, 0.1);

  /* Acentos por categoría (validados para distinción CVD, usados junto a etiquetas de texto) */
  --color-cafe: #b5501f;
  --color-cafe-bg: #fbeee6;
  --color-ajonjoli: #158f5c;
  --color-ajonjoli-bg: #e4f6ee;
  --color-maiz: #c07e00;
  --color-maiz-bg: #fdf1d9;
  --color-multigrano: #2a78d6;
  --color-multigrano-bg: #e8f1fc;
  --color-grano_general: #6b5b95;
  --color-grano_general-bg: #efecf5;
  --color-arroz: #96703f;
  --color-arroz-bg: #f4ebdd;
  --color-te: #2f7d5c;
  --color-te-bg: #e6f3ec;
  --color-rayos_x: #c0392b;
  --color-rayos_x-bg: #fbe9e7;
  --color-reciclaje: #3a6ea5;
  --color-reciclaje-bg: #e7eff8;
  --color-mineria: #7d6b58;
  --color-mineria-bg: #f0ebe5;
  --color-fruta: #d4622a;
  --color-fruta-bg: #fcece2;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 2px 10px rgba(13, 31, 61, 0.08);
  --shadow-card-hover: 0 10px 24px rgba(13, 31, 61, 0.14);

  --container: 1180px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Sora", var(--font-sans);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-primary);
  background: var(--surface-1);
  line-height: 1.6;
}

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

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

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

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}
p { margin: 0 0 12px; color: var(--ink-secondary); }

/* ---------- Animaciones ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes driftPattern {
  from { background-position: 0 0; }
  to { background-position: 260px 260px; }
}
@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-smooth), transform 0.65s var(--ease-smooth);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

.section { padding: 64px 0; }
.section-alt { background: var(--surface-0); }
.section-title { font-size: clamp(24px, 3vw, 34px); color: var(--brand-navy-dark); }
.section-subtitle { max-width: 640px; margin-bottom: 32px; }
.section-head { margin-bottom: 36px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease-smooth), box-shadow 0.2s var(--ease-smooth), background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn:hover::after { left: 130%; }
.btn-primary { background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-mid) 100%); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, var(--brand-navy-dark) 0%, var(--brand-navy) 100%); box-shadow: var(--shadow-card-hover); }
.btn-outline { background: transparent; color: var(--brand-navy); border-color: var(--brand-navy); }
.btn-outline:hover { background: var(--brand-navy); color: #fff; }
.btn-ghost-light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost-light:hover { background: #fff; color: var(--brand-navy); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.badge-notice {
  background: #fff4d6;
  color: #7a5a00;
  border: 1px solid #f0d68a;
}
.badge-cafe { background: var(--color-cafe-bg); color: var(--color-cafe); }
.badge-ajonjoli { background: var(--color-ajonjoli-bg); color: var(--color-ajonjoli); }
.badge-maiz { background: var(--color-maiz-bg); color: var(--color-maiz); }
.badge-multigrano { background: var(--color-multigrano-bg); color: var(--color-multigrano); }
.badge-grano_general { background: var(--color-grano_general-bg); color: var(--color-grano_general); }
.badge-arroz { background: var(--color-arroz-bg); color: var(--color-arroz); }
.badge-te { background: var(--color-te-bg); color: var(--color-te); }
.badge-rayos_x { background: var(--color-rayos_x-bg); color: var(--color-rayos_x); }
.badge-reciclaje { background: var(--color-reciclaje-bg); color: var(--color-reciclaje); }
.badge-mineria { background: var(--color-mineria-bg); color: var(--color-mineria); }
.badge-fruta { background: var(--color-fruta-bg); color: var(--color-fruta); }

.example-data-banner {
  background: #fff4d6;
  color: #7a5a00;
  border-bottom: 1px solid #f0d68a;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-hairline);
}
.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-navy) 0%, var(--brand-gold) 55%, var(--brand-green) 100%);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--brand-navy-dark);
  font-size: 16px;
}
.brand img { height: 44px; width: auto; }
.brand-text-sub { font-weight: 500; font-size: 11px; color: var(--ink-muted); letter-spacing: 0.06em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand-navy); border-color: var(--brand-navy); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: flex;
  border: 1px solid var(--border-hairline);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  border: none;
  background: transparent;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-muted);
}
.lang-switch button.active { background: var(--brand-navy); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--brand-navy);
}

@media (max-width: 880px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 14px;
    border-bottom: 1px solid var(--border-hairline);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-quote-btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(100deg, rgba(10,22,45,0.92) 0%, rgba(13,31,61,0.82) 38%, rgba(22,48,92,0.45) 75%, rgba(22,48,92,0.25) 100%),
    url("../img/hero-banner.jpg") center 12% / cover no-repeat;
  color: #fff;
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,147,74,0.18), transparent 70%);
  animation: floatSoft 8s ease-in-out infinite;
  pointer-events: none;
}
.hero-inner { max-width: 720px; position: relative; z-index: 1; }
.hero-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-gold-light);
  margin-bottom: 16px;
  animation: fadeInUp 0.7s var(--ease-smooth) both;
}
.hero h1 {
  font-size: clamp(30px, 4.2vw, 48px);
  color: #fff;
  margin-bottom: 18px;
  animation: fadeInUp 0.7s var(--ease-smooth) 0.08s both;
}
.hero p.lead {
  color: #dbe4f3;
  font-size: 17px;
  max-width: 560px;
  animation: fadeInUp 0.7s var(--ease-smooth) 0.16s both;
}
.hero-actions {
  display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap;
  animation: fadeInUp 0.7s var(--ease-smooth) 0.24s both;
}

/* ---------- Category cards ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.cat-card {
  background: var(--surface-0);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth);
}
.cat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-navy), var(--brand-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-smooth);
}
.cat-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.cat-card:hover::before { transform: scaleX(1); }
.cat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
  transition: transform 0.35s var(--ease-smooth);
}
.cat-card:hover .cat-icon { transform: scale(1.12) rotate(-4deg); }
.cat-card h3 { font-size: 18px; margin-bottom: 6px; color: var(--brand-navy-dark); }
.cat-card p { font-size: 14px; margin-bottom: 0; }

/* ---------- Machine cards ---------- */
.machine-card {
  background: var(--surface-0);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth), border-color 0.25s ease;
}
.machine-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-5px); border-color: rgba(184,147,74,0.4); }
.machine-card-img {
  background: var(--surface-2);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  overflow: hidden;
}
.machine-card-img img {
  max-height: 100%; max-width: 100%; width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.5s var(--ease-smooth);
}
.machine-card:hover .machine-card-img img { transform: scale(1.08); }
.machine-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.machine-card-body .badge { align-self: flex-start; margin-bottom: 10px; }
.machine-card-body h3 { font-size: 17px; color: var(--brand-navy-dark); margin-bottom: 6px; }
.machine-card-body .model-tag { font-size: 12px; font-weight: 700; color: var(--ink-muted); margin-bottom: 8px; }
.machine-card-body p { font-size: 14px; flex: 1; }
.machine-card-body .btn { margin-top: 10px; align-self: flex-start; }

/* ---------- Filters ---------- */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-hairline);
  background: var(--surface-0);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
}
.filter-chip.active { background: var(--brand-navy); color: #fff; border-color: var(--brand-navy); }

/* ---------- Why us ---------- */
.why-item { display: flex; gap: 16px; }
.why-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--brand-silver-light);
  color: var(--brand-navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: transform 0.3s var(--ease-smooth), background 0.3s ease, color 0.3s ease;
}
.why-item:hover .why-icon { background: var(--brand-navy); color: #fff; transform: scale(1.08); }
.why-item h3 { font-size: 16.5px; margin-bottom: 4px; color: var(--brand-navy-dark); }
.why-item p { font-size: 14px; margin-bottom: 0; }

/* ---------- Map teaser ---------- */
.map-teaser {
  background: var(--brand-silver-light);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.map-teaser-text { max-width: 520px; }
.map-teaser-text h2 { color: var(--brand-navy-dark); }

/* ---------- Product detail ---------- */
.breadcrumb { font-size: 13px; color: var(--ink-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--brand-navy); font-weight: 600; }

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}
@media (max-width: 900px) { .product-hero { grid-template-columns: 1fr; } }

.product-gallery-main {
  background: var(--surface-0);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 24px;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-gallery-main img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  transition: opacity 0.22s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}
.product-gallery-main:hover img { transform: scale(1.05); }
.product-gallery-main img.is-swapping { opacity: 0; transform: scale(0.96); }
.product-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product-gallery-thumbs img {
  width: 64px; height: 64px; object-fit: contain;
  border: 2px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  background: var(--surface-0);
  padding: 6px;
  cursor: pointer;
  opacity: 0.68;
  transition: transform 0.22s var(--ease-smooth), border-color 0.22s ease, opacity 0.22s ease, box-shadow 0.22s ease;
}
.product-gallery-thumbs img:hover { opacity: 1; transform: translateY(-3px); }
.product-gallery-thumbs img.active {
  opacity: 1;
  border-color: var(--brand-gold);
  box-shadow: 0 4px 14px rgba(184,147,74,0.25);
  transform: translateY(-2px) scale(1.06);
}
.gallery-note { font-size: 12px; color: var(--ink-muted); margin-top: 10px; }

.product-info .model-tag {
  font-size: 13px; font-weight: 700; color: var(--brand-navy);
  letter-spacing: 0.03em; margin-bottom: 8px; display: block;
}
.product-info h1 { font-size: clamp(24px, 3vw, 32px); color: var(--brand-navy-dark); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tag-pill {
  font-size: 12.5px; font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  padding: 5px 12px; border-radius: 999px;
  color: var(--ink-secondary);
}

.spec-table-wrap { overflow-x: auto; border: 1px solid var(--border-hairline); border-radius: var(--radius-md); }
table.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface-0); }
table.spec-table th, table.spec-table td {
  text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border-hairline);
  white-space: nowrap;
}
table.spec-table thead th {
  background: var(--brand-silver-light); color: var(--brand-navy-dark); font-weight: 700;
}
table.spec-table tbody tr:last-child td { border-bottom: none; }
table.spec-table td:first-child, table.spec-table th:first-child { color: var(--ink-secondary); font-weight: 600; white-space: normal; min-width: 200px; }

.feature-list, .app-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feature-list li, .app-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14.5px; color: var(--ink-secondary);
  background: var(--surface-0); border: 1px solid var(--border-hairline);
  padding: 12px 14px; border-radius: var(--radius-sm);
}
.feature-list li::before { content: "✓"; color: var(--brand-navy); font-weight: 800; }
.app-list li::before { content: "•"; color: var(--color-maiz); font-weight: 800; }

.cta-box {
  background: linear-gradient(120deg, var(--brand-navy-dark) 0%, var(--brand-navy) 60%, var(--brand-navy-mid) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-box::after {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,147,74,0.22), transparent 70%);
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { color: #fff; margin-bottom: 6px; }
.cta-box p { color: #cfe0ff; margin-bottom: 0; }

/* ---------- About page ---------- */
.value-card {
  background: var(--surface-0); border: 1px solid var(--border-hairline); border-radius: var(--radius-md);
  padding: 26px; box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth);
}
.value-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.value-card h3 { color: var(--brand-navy-dark); font-size: 17px; }

/* ---------- Map page ---------- */
#leaflet-map {
  width: 100%;
  height: 520px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
  z-index: 0;
}
.map-legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 18px 0 4px; font-size: 13px; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-secondary); font-weight: 600; }
.map-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--brand-navy-dark); margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline); font-family: var(--font-sans); font-size: 14.5px;
  background: var(--surface-0);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--ink-muted); margin-top: 8px; }
.contact-info-card {
  background: var(--surface-0); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-card);
}
.contact-info-row { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.contact-info-row strong { display: block; color: var(--brand-navy-dark); font-size: 13.5px; }
.contact-info-row span { font-size: 14px; color: var(--ink-secondary); }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand-silver-light); color: var(--brand-navy);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-navy-dark); color: #cfd6e2; padding: 52px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; font-size: 14px; }
.footer-grid a { color: #cfd6e2; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { height: 40px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-brand span { font-weight: 800; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  font-size: 12.5px;
  color: #9aa5b5;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
  text-align: center;
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.leaflet-popup-content { font-family: var(--font-sans); font-size: 13px; }

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 500;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  text-decoration: none;
  font-size: 28px;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Campo trampa anti-spam (oculto para personas) ---------- */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Formulario de contacto: estados ---------- */
.form-status { margin-top: 12px; padding: 10px 14px; border-radius: 8px; font-size: 14px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e4f6ee; color: #0f6e3f; }
.form-status.error { background: #fbeae7; color: #a3341f; }
