/* ============================================================
   Contrib Asesores — Hoja de estilos
   Paleta de marca:
     Azul primario   #36A0FF
     Azul oscuro     #1D7FD6
     Casi negro      #1A1A1E
     Gris texto      #5D5D61
     Fondos          #FFFFFF / #F6F6F7
   ============================================================ */

:root {
  --blue: #36A0FF;
  --blue-dark: #1D7FD6;
  --ink: #1A1A1E;
  --gray: #5D5D61;
  --bg: #FFFFFF;
  --bg-soft: #F6F6F7;
  --border: #E8E8EA;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(26, 26, 30, 0.06);
  --shadow-md: 0 10px 30px rgba(26, 26, 30, 0.10);
  --shadow-lg: 0 20px 50px rgba(26, 26, 30, 0.14);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --navbar-h: 72px;
  --transition: 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; font-weight: 700; }

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

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 780px; }

/* ---------------- Botones ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 34px; font-size: 1.02rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(54, 160, 255, 0.35);
}
.btn-primary:hover { background: var(--blue-dark); color: #fff; box-shadow: 0 12px 28px rgba(29, 127, 214, 0.4); }

.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); background: rgba(255,255,255,0.06); }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.12); }

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

.btn-whatsapp { background: #25D366; color: #fff; margin-top: 8px; }
.btn-whatsapp:hover { background: #1eb858; color: #fff; }

/* ---------------- Navbar ---------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}
/* Sobre héroes oscuros (cuando no hay scroll) */
.navbar:not(.scrolled) .brand-name,
.navbar:not(.scrolled) .brand-mark { color: #fff; }
.navbar:not(.scrolled) .nav-link { color: rgba(255, 255, 255, 0.85); }
.navbar:not(.scrolled) .nav-link:hover,
.navbar:not(.scrolled) .nav-link.active { color: #fff; }
.navbar:not(.scrolled) .nav-toggle span { background: #fff; }

.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 40px; width: auto; }
/* Logo blanco sobre el héroe oscuro; logo oscuro con la barra blanca al hacer scroll */
.brand-logo-white { display: none; }
.navbar:not(.scrolled) .brand-logo-white { display: block; }
.navbar:not(.scrolled) .brand-logo-dark { display: none; }
.brand-mark {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.brand-dot { color: var(--blue); }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--gray);
  padding: 8px 14px;
  border-radius: 999px;
}
.nav-link:hover { color: var(--ink); background: rgba(26, 26, 30, 0.05); }
.nav-link.active { color: var(--blue); }
.navbar:not(.scrolled) .nav-link.active { color: #fff; }
.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 9px 20px;
  margin-left: 8px;
  box-shadow: 0 6px 16px rgba(54, 160, 255, 0.35);
}
.nav-cta:hover { background: var(--blue-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Alertas / mensajes ---------------- */
.messages { position: fixed; top: calc(var(--navbar-h) + 12px); left: 50%; transform: translateX(-50%); z-index: 999; }
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  background: #fff;
  border-left: 4px solid var(--blue);
  font-size: 0.95rem;
}
.alert-success { border-left-color: #22a06b; }
.alert-success i { color: #22a06b; }
.alert-error { border-left-color: var(--blue); color: var(--blue-dark); }
.alert-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--gray); margin-left: 10px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 85% 15%, rgba(54, 160, 255, 0.35), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(29, 127, 214, 0.25), transparent 55%),
    linear-gradient(135deg, #17171b 0%, #1A1A1E 45%, #2a1a1c 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 80%);
}
.hero-content { position: relative; z-index: 1; padding-top: calc(var(--navbar-h) + 40px); padding-bottom: 90px; max-width: 820px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #BFE0FF;
  background: rgba(54, 160, 255, 0.14);
  border: 1px solid rgba(54, 160, 255, 0.35);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------------- Page hero (páginas internas) ---------------- */
.page-hero {
  position: relative;
  padding: calc(var(--navbar-h) + 72px) 0 72px;
  color: #fff;
  background:
    radial-gradient(700px 380px at 85% 10%, rgba(54, 160, 255, 0.3), transparent 60%),
    linear-gradient(135deg, #17171b 0%, #1A1A1E 55%, #2a1a1c 100%);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 14px; }
.page-hero p { color: rgba(255, 255, 255, 0.75); max-width: 640px; font-size: 1.05rem; }
.page-hero-icon { font-size: 2rem; color: var(--blue); margin-bottom: 6px; }
.page-hero-article .article-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  margin-top: 16px;
}
.article-meta i { color: var(--blue); margin-right: 4px; }

.section-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(54, 160, 255, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
}
.section-tag.light { color: #BFE0FF; background: rgba(54, 160, 255, 0.16); border: 1px solid rgba(54, 160, 255, 0.3); }

.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.75); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { font-size: 0.7rem; }

/* ---------------- Secciones ---------------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 12px; }
.section-sub { color: var(--gray); font-size: 1.02rem; }
.section-cta { text-align: center; margin-top: 44px; }

/* ---------------- Tarjetas ---------------- */
.cards-grid { display: grid; gap: 26px; }
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(54, 160, 255, 0.35);
}

.service-card h3 { font-size: 1.15rem; margin: 18px 0 10px; }
.service-card p { color: var(--gray); font-size: 0.95rem; margin-bottom: 18px; }
.service-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--blue);
  background: linear-gradient(135deg, rgba(54, 160, 255, 0.12), rgba(29, 127, 214, 0.08));
  border-radius: 14px;
  transition: background var(--transition), color var(--transition);
}
.service-card:hover .service-icon { background: var(--blue); color: #fff; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}
.card-link i { transition: transform var(--transition); }
.card-link:hover i { transform: translateX(4px); }

.empty-note { grid-column: 1 / -1; text-align: center; color: var(--gray); }

/* ---------------- Valores ---------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 26px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-item i {
  font-size: 1.6rem;
  color: var(--blue);
}

/* ---------------- Equipo ---------------- */
.member-card { text-align: center; }
.member-photo {
  position: relative;
  width: 120px; height: 120px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: visible;
}
.member-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(54, 160, 255, 0.25);
}
.member-initials {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border: 3px solid rgba(54, 160, 255, 0.25);
}
.badge-mascota {
  position: absolute;
  bottom: -6px; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.badge-mascota i { color: var(--blue); }
.member-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.member-cargo { color: var(--blue); font-weight: 600; font-size: 0.88rem; }
.member-bio { color: var(--gray); font-size: 0.9rem; margin-top: 12px; text-align: left; }
.member-contact { margin-top: 14px; display: flex; justify-content: center; gap: 16px; color: var(--gray); font-size: 0.88rem; }
.member-card-full { display: flex; flex-direction: column; }

/* ---------------- Clientes ---------------- */
.section-clients { padding-bottom: 72px; }
.marquee {
  overflow: hidden;
  position: relative;
  padding: 10px 0;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.client-logo {
  display: flex; align-items: center; justify-content: center;
  min-width: 200px;
  height: 84px;
  padding: 0 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.client-logo img { max-height: 52px; width: auto; filter: grayscale(1); opacity: 0.8; transition: filter var(--transition), opacity var(--transition); }
.client-logo:hover img { filter: none; opacity: 1; }
.client-placeholder {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray);
}
.client-initials {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--ink), #3a3a40);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.client-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.client-card:hover .client-card-link { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.client-card img { max-height: 64px; width: auto; }
.client-placeholder.big .client-initials { width: 64px; height: 64px; flex-basis: 64px; font-size: 1.4rem; border-radius: 16px; }
.client-name { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 0.98rem; }

/* ---------------- Noticias ---------------- */
.news-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-thumb { height: 180px; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-thumb-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-size: 2.6rem;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}
.news-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-body h3 { font-size: 1.05rem; margin: 10px 0 10px; }
.news-body p { color: var(--gray); font-size: 0.92rem; flex: 1; margin-bottom: 16px; }
.news-meta { display: flex; gap: 16px; font-size: 0.8rem; color: var(--gray); }
.news-meta i { color: var(--blue); }

.pagination {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin-top: 48px;
}
.page-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  transition: background var(--transition), color var(--transition);
}
.page-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.page-info { color: var(--gray); font-size: 0.9rem; }

/* ---------------- Detalle (servicio / artículo) ---------------- */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.detail-image {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
}
.detail-content { font-size: 1.03rem; color: #333338; }
.detail-content p { margin-bottom: 18px; }

.highlight-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 26px 28px;
  margin-top: 34px;
}
.highlight-box h3 { font-size: 1.1rem; margin-bottom: 16px; }
.highlight-box h3 i { color: var(--blue); }
.highlight-list { list-style: none; columns: 2; column-gap: 30px; }
.highlight-list li {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 6px 0;
  font-size: 0.95rem;
  break-inside: avoid;
}
.highlight-list i { color: var(--blue); margin-top: 4px; }

.detail-cta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-top: 40px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #1A1A1E, #2a1a1c);
  color: #fff;
  border-radius: var(--radius);
}
.detail-cta p { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }

.sidebar-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.sidebar-box h4 { font-size: 1rem; margin-bottom: 14px; }
.sidebar-list { list-style: none; }
.sidebar-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-weight: 500;
  font-size: 0.93rem;
}
.sidebar-list li:last-child a { border-bottom: none; }
.sidebar-list a:hover { color: var(--blue); }
.sidebar-list a > i:first-child { color: var(--blue); }
.sidebar-list a > i:last-child { margin-left: auto; font-size: 0.8rem; color: var(--gray); }
.sidebar-contact p { color: var(--gray); font-size: 0.92rem; margin-bottom: 8px; }
.sidebar-contact i { color: var(--blue); margin-right: 6px; }
.sidebar-contact .btn { margin-top: 12px; }

/* ---------------- Artículo ---------------- */
.section-article { padding-top: 56px; }
.article-lead {
  font-size: 1.2rem;
  color: var(--gray);
  border-left: 4px solid var(--blue);
  padding-left: 20px;
  margin-bottom: 32px;
}
.article-content p { margin-bottom: 20px; }
.article-share {
  display: flex; align-items: center; gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--gray);
  font-size: 0.92rem;
}
.article-share a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--gray);
  font-size: 1.05rem;
  transition: all var(--transition);
}
.article-share a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.related-news { margin-top: 44px; }
.related-news h3 { margin-bottom: 16px; }
.related-news ul { list-style: none; }
.related-news a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-weight: 500;
}
.related-news a:hover { color: var(--blue); }
.related-news i { color: var(--blue); }

/* ---------------- CTA band ---------------- */
.cta-band {
  background:
    radial-gradient(600px 300px at 90% 20%, rgba(54, 160, 255, 0.35), transparent 60%),
    linear-gradient(135deg, #17171b, #2a1a1c);
  color: #fff;
  padding: 72px 0;
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.cta-inner h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 10px; }
.cta-inner p { color: rgba(255, 255, 255, 0.7); max-width: 520px; }

/* ---------------- Contacto ---------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}
.contact-info h2, .contact-form-wrap h2 { font-size: 1.4rem; margin-bottom: 24px; }
.contact-list { list-style: none; }
.contact-list li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-list li:last-child { border-bottom: none; }
.contact-icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  color: var(--blue);
  background: rgba(54, 160, 255, 0.1);
  font-size: 1.15rem;
}
.contact-list strong { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.contact-list span, .contact-list a { color: var(--gray); font-size: 0.93rem; }

.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 7px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(54, 160, 255, 0.12);
}
.contact-form textarea { resize: vertical; }
.field-error { display: block; color: var(--blue-dark); font-size: 0.82rem; margin-top: 5px; }

/* ---------------- Footer ---------------- */
.footer {
  background: #141417;
  color: rgba(255, 255, 255, 0.72);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 44px;
  padding-bottom: 52px;
}
.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer h4::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 34px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
}
.brand-footer .brand-mark, .brand-footer .brand-name { color: #fff; }
.footer-desc { font-size: 0.92rem; margin: 16px 0 20px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.05rem;
  transition: background var(--transition), transform var(--transition);
}
.social-links a:hover { background: var(--blue); transform: translateY(-3px); }
.footer-links { list-style: none; }
.footer-links a {
  display: inline-block;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.93rem;
}
.footer-links a:hover { color: var(--blue); }
.footer-contact { list-style: none; }
.footer-contact li { display: flex; gap: 10px; padding: 6px 0; font-size: 0.92rem; }
.footer-contact i { color: var(--blue); margin-top: 4px; }
.footer-contact a { color: rgba(255, 255, 255, 0.72); }
.footer-contact a:hover { color: var(--blue); }
.footer-horarios, .footer-extra { font-size: 0.92rem; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------------- WhatsApp flotante ---------------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 900;
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse-wa 2.6s infinite;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
@keyframes pulse-wa {
  0% { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.35); }
  70% { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------------- Animaciones de aparición ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: calc(var(--delay, 0) * 90ms);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .whatsapp-float { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(4, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .cards-grid-3 { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .highlight-list { columns: 1; }
  .hero { min-height: 88vh; }

  /* Menú hamburguesa */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    background: rgba(20, 20, 23, 0.97);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.25rem;
    padding: 12px 28px;
  }
  .nav-links .nav-link:hover { background: rgba(255, 255, 255, 0.08); }
  .nav-links .nav-cta { margin-left: 0; margin-top: 10px; }
  .navbar:not(.scrolled) .nav-toggle.open span { background: #fff; }
  .nav-toggle.open span { background: #fff; }
}

@media (max-width: 520px) {
  .cards-grid-4 { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .contact-form-wrap { padding: 26px 20px; }
  .whatsapp-float { width: 52px; height: 52px; bottom: 18px; right: 18px; }
}
