/* leads.css — Optimización visual y animaciones suaves HEXAPOWER */
/* Compatible con main.css (01–07) */

/* ---------- Animaciones tipo Framer Motion ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.fade-in-up { animation: fadeInUp 0.9s ease-out both; }
.fade-in    { animation: fadeIn 1.1s ease-out both; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 120px;
  text-align: center;
  color: #fff;
}
.hero-body h1 {
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}
.hero-body .sub {
  margin-top: 12px;
  color: #e5e7eb;
  font-size: 18px;
  max-width: 720px;
  margin-inline: auto;
}
.hero-body .cta {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- FORMULARIO ---------- */
.form { animation: fadeInUp 1s ease-out both; }
.form input, .form select, .form textarea {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(0,166,251,0.3);
}
.consent {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}
.consent a {
  color: var(--secondary);
  text-decoration: none;
}
.consent a:hover { text-decoration: underline; }

/* ---------- CARDS Y FOOTER ---------- */
.card.hover { animation: fadeInUp 1s ease both; }
.card.hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.15);
}
footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 40px 0;
  animation: fadeIn 1.2s ease-out both;
}

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
}
.whatsapp-float a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #25D366;
  box-shadow: 0 12px 25px rgba(0,0,0,0.4);
  transition: transform .25s ease;
}
.whatsapp-float a:hover { transform: scale(1.08); }

/* === Marcas representadas === */
.brands {
  background: var(--bg);
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.brands h2 {
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.brands .sub {
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.brand-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 60px;
}

.brand-logos img {
  height: 42px;
  max-width: 160px;
  opacity: 0.9;
  filter: grayscale(100%) brightness(0.9);
  transition: all 0.3s ease;
}

.brand-logos img:hover {
  opacity: 1;
  filter: none;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .brand-logos {
    gap: 24px 32px;
  }
  .brand-logos img {
    height: 32px;
    max-width: 120px;
  }
}

/* Tema oscuro */
:root[data-theme="dark"] .brands {
  background: #0b1016;
}

:root[data-theme="dark"] .brand-logos img {
  filter: brightness(1.5) grayscale(0.1);
}

/* === Ajuste visual para páginas internas === */
body {
  background: var(--bg);
  color: var(--text);
}

main.container {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 100px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.breadcrumbs {
  margin-bottom: 12px;
  color: var(--text-light);
  font-size: 0.875rem;
}

.breadcrumbs a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.25s ease;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

:root[data-theme="dark"] .breadcrumbs {
  color: #aaa;
}
