:root {
  --azul: #18223a;
  --azul-2: #22304f;
  --dorado: #ba9964;
  --dorado-soft: #d4bb93;
  --blanco: #ffffff;
  --gris: #f5f7fb;
  --gris-2: #e9edf5;
  --texto: #223;
  --texto-soft: #5b6475;
  --borde: rgba(24, 34, 58, 0.1);
  --shadow: 0 18px 60px rgba(24, 34, 58, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.section { padding: 88px 0; }
.section-sm { padding: 60px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dorado);
  font-weight: 700;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--dorado);
  display: inline-block;
}
h1, h2, h3, h4, p { margin: 0; }
h1 {
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: var(--azul);
}
h3 {
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--azul);
  margin-bottom: 12px;
}
p.lead {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.84);
  max-width: 660px;
}
p.section-text {
  font-size: 1.02rem;
  color: var(--texto-soft);
  max-width: 760px;
}

.btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: .25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--dorado);
  color: var(--azul);
  box-shadow: 0 12px 28px rgba(186, 153, 100, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.02); }
.btn-secondary {
  color: var(--blanco);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.11); }
.btn-outline {
  border-color: var(--azul);
  color: var(--azul);
  background: transparent;
}
.btn-outline:hover { background: var(--azul); color: var(--blanco); }
.hero-btns-mobile {
  display: none;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(24, 34, 58, 0.06);
}
.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--azul), #22304f);
  display: grid;
  place-items: center;
  color: var(--dorado);
  font-weight: 800;
  font-size: 1.35rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { min-width: 0; }
.brand-text strong {
  display: block;
  color: var(--azul);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}
.brand-text span {
  display: block;
  color: var(--texto-soft);
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  color: var(--azul);
  font-weight: 600;
}
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--dorado);
  transition: .25s ease;
}
.nav-links a:hover::after { width: 100%; }
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--azul);
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(186, 153, 100, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.06), transparent 25%),
    linear-gradient(135deg, #10192d 0%, var(--azul) 55%, #233250 100%);
  color: var(--blanco);
  padding: 70px 0 42px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: center;
  margin-bottom: 26px;
}
.hero h1 span { color: var(--dorado-soft); }
.hero-copy .mini-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.93rem;
  color: rgba(255,255,255,0.88);
}
.clients-strip {
  margin-top: 8px;
  padding-top: 8px;
}

.clients-title {
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.clients-carousel {
  max-width: 620px;
  margin: 0 auto;
  overflow: hidden;
}

.clients-track {
  position: relative;
  min-height: 110px;
}

.client-slide {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.client-slide.active {
  display: flex;
  animation: fadeClients .55s ease;
}

.client-logo-card {
  width: 220px;
  height: 88px;
  background: white;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.client-logo-card img {
  max-width: 82%;
  max-height: 52px;
  object-fit: contain;
}

.logo-wide img {
  max-width: 92%;
  max-height: 46px;
  object-fit: contain;
}

@keyframes fadeClients {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.hero-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.hero-logo {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  background: rgba(255,255,255,0.96);
  padding: 8px;
  display: grid;
  place-items: center;
}
.hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.hero-card h3 { color: var(--blanco); margin-bottom: 4px; }
.hero-card p { color: rgba(255,255,255,0.8); }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.metric {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 18px;
}
.metric strong {
  display: block;
  font-size: 1.5rem;
  color: var(--dorado-soft);
  margin-bottom: 4px;
}
.metric span {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.78);
}

.grid-3, .grid-2, .services-grid, .audiences-grid, .benefits-grid {
  display: grid;
  gap: 22px;
}
.grid-3, .services-grid, .benefits-grid { grid-template-columns: repeat(3, 1fr); }
.grid-2, .audiences-grid { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 12px 34px rgba(24,34,58,0.06);
  transition: .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(24,34,58,0.1); }
.icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(186, 153, 100, 0.14);
  color: var(--azul);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.card p { color: var(--texto-soft); }

.highlight-band {
  background: var(--gris);
  border-top: 1px solid rgba(24,34,58,0.05);
  border-bottom: 1px solid rgba(24,34,58,0.05);
}

.audience-card {
  background: linear-gradient(180deg, #fff, #fbfbfd);
  border: 1px solid var(--borde);
  border-radius: var(--radius-xl);
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.audience-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--dorado), transparent);
}
.audience-card ul {
  padding-left: 18px;
  margin: 18px 0 0;
  color: var(--texto-soft);
}
.audience-card li + li { margin-top: 10px; }

.services-grid .card {
  position: relative;
  padding-top: 30px;
}
.service-number {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.9rem;
  font-weight: 800;
  color: rgba(24,34,58,0.18);
}

.about-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 30px;
  align-items: stretch;
}
.about-panel {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(160deg, var(--azul), #22304f);
  color: var(--blanco);
  padding: 36px;
  position: relative;
  min-height: 100%;
}
.about-panel::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(186,153,100,0.12);
  bottom: -40px;
  right: -40px;
}
.about-panel p { color: rgba(255,255,255,0.82); }
.about-logo {
  width: 92px;
  background: rgba(255,255,255,0.96);
  border-radius: 20px;
  padding: 10px;
  margin-bottom: 22px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.about-stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.about-stat strong { display: block; font-size: 1.45rem; color: var(--dorado-soft); }
.about-stat span { font-size: 0.88rem; color: rgba(255,255,255,0.78); }

.contact-box {
  background: linear-gradient(180deg, #ffffff, #fafbff);
  border: 1px solid var(--borde);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: 0 18px 50px rgba(24,34,58,0.07);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 26px;
  align-items: start;
}
.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.contact-item {
  border: 1px solid var(--borde);
  border-radius: 18px;
  padding: 16px 18px;
  background: #fff;
}
.contact-item small {
  display: block;
  color: var(--texto-soft);
  margin-bottom: 6px;
}
.contact-item strong { color: var(--azul); }

form {
  display: grid;
  gap: 14px;
}
.field {
  display: grid;
  gap: 8px;
}
label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--azul);
}
input, textarea, select {
  width: 100%;
  border: 1px solid rgba(24,34,58,0.14);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  outline: none;
  transition: .2s ease;
  background: white;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--dorado);
  box-shadow: 0 0 0 4px rgba(186,153,100,0.14);
}
textarea { min-height: 140px; resize: vertical; }

.footer {
  background: var(--azul);
  color: rgba(255,255,255,0.75);
  padding: 28px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer strong { color: var(--blanco); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .about-wrap,
  .contact-grid,
  .grid-3,
  .grid-2,
  .services-grid,
  .audiences-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .client-slide {
    flex-wrap: nowrap;
    justify-content: center;
  }

  .client-logo-card {
    min-width: 220px;
  }

  .nav-links {
    position: fixed;
    inset: 78px 16px auto 16px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--borde);
    border-radius: 20px;
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .nav > .btn-outline {
    display: none;
  }

  .about-stats,
  .hero-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .diagnostico-wrap {
    grid-template-columns: 1fr;
  }

  .diagnostico-card .metric {
    min-height: auto;
  }
}

.hero-btns-desktop {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-btns-mobile {
  display: none;
}

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .hero { padding: 58px 0 38px; }

  .about-stats,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .contact-box,
  .hero-card,
  .about-panel,
  .card,
  .audience-card {
    padding: 22px;
  }

  .brand-text span { display: none; }
  h1 { font-size: 2.35rem; }
  h2 { font-size: 1.85rem; }

  .hero-btns-desktop {
    display: none;
  }

  .hero-btns-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    width: 100%;
  }

  .hero-btns-mobile .btn {
    flex: 1;
    min-width: 0;
    padding: 12px 8px;
    font-size: 0.8rem;
    text-align: center;
    white-space: nowrap;
    border-radius: 999px;
  }

  .clients-title {
    font-size: 0.9rem;
    margin-bottom: 14px;
  }

  .client-slide {
    flex-direction: column;
    gap: 14px;
  }

  .client-logo-card {
    width: 100%;
    max-width: 280px;
    height: 96px;
  }

  .client-logo-card img {
    max-height: 54px;
  }

  .diagnostico-list li {
    font-size: 0.98rem;
    padding-left: 24px;
  }

  .diagnostico-list li::before {
    left: 6px;
  }
}
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
  z-index: 9999;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 30px rgba(0,0,0,0.22);
}

.whatsapp-float img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
/* ===== DIAGNÓSTICO ===== */

.diagnostico-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: stretch;
}

.diagnostico-list {
  margin: 0 0 24px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.diagnostico-list li {
  position: relative;
  padding-left: 28px;
  color: var(--texto);
  font-size: 1rem;
  line-height: 1.6;
}

.diagnostico-list li::before {
  content: "•";
  position: absolute;
  left: 8px;
  top: 0;
  color: var(--dorado);
  font-size: 1.15rem;
  font-weight: 800;
}

.diagnostico-card {
  background:
    radial-gradient(circle at top right, rgba(212, 187, 147, 0.12), transparent 28%),
    linear-gradient(160deg, var(--azul), #22304f);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 50px rgba(24, 34, 58, 0.16);
}

.diagnostico-card .hero-card-top {
  margin-bottom: 22px;
}

.diagnostico-card .hero-logo {
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.diagnostico-card .metric {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.diagnostico-card .metric strong {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--dorado-soft);
}

.diagnostico-card .metric span {
  line-height: 1.55;
}

#diagnostico .contact-box {
  min-height: 100%;
}

#diagnostico .btns {
  margin-top: 24px;
}

#diagnostico .btn-secondary {
  width: 100%;
  justify-content: center;
}

/* ===== RESPONSIVE DIAGNÓSTICO ===== */

@media (max-width: 980px) {
  .diagnostico-wrap {
    grid-template-columns: 1fr;
  }

  .diagnostico-card .metric {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .diagnostico-list li {
    font-size: 0.98rem;
    padding-left: 24px;
  }

  .diagnostico-list li::before {
    left: 6px;
  }
}

.clients-carousel {
  overflow: hidden;
  width: 100%;
  margin-top: 20px;
}

.clients-track-scroll {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scrollClients 18s linear infinite;
}

.client-logo-card {
  min-width: 220px;
  height: 120px;
  background: white;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.client-logo-card img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

@keyframes scrollClients {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
/* ===== GRACIAS ===== */

.thanks-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top left, rgba(186, 153, 100, 0.12), transparent 28%),
    linear-gradient(180deg, #f8f9fc 0%, #eef2f8 100%);
  padding: 40px 0;
}

.thanks-card {
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(180deg, #ffffff, #fafbff);
  border: 1px solid var(--borde);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: 0 18px 50px rgba(24,34,58,0.08);
  text-align: center;
}

.thanks-card h1 {
  color: var(--azul);
  margin-bottom: 18px;
}

.thanks-card .section-text {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.thanks-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

@media (max-width: 640px) {
  .thanks-card {
    padding: 28px 22px;
  }

  .thanks-card h1 {
    font-size: 2.1rem;
  }

  .thanks-actions .btn {
    width: 100%;
  }
}

.thanks-card h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}