:root {
  --navy: #10162b;
  --navy-soft: #1b2340;
  --red: #c91f32;
  --red-dark: #a91829;
  --text: #1f2937;
  --muted: #64748b;
  --bg: #ffffff;
  --soft: #f6f7fb;
  --line: #e5e7eb;
  --shadow: 0 24px 70px rgba(16, 22, 43, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { height: 110px; display: flex; align-items: center; justify-content: space-between; }
.brand img { width: 210px; height: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--navy); text-decoration: none; font-weight: 700; font-size: 15px; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 28px; color: var(--navy); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 15px 24px;
  background: var(--red);
  color: white !important;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(201, 31, 50, .22);
  transition: .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--red-dark); }
.btn-secondary { background: var(--navy); box-shadow: 0 12px 28px rgba(16, 22, 43, .18); }
.btn-small { padding: 11px 18px; font-size: 14px !important; }

.hero {
  padding: 86px 0 74px;
  background:
    radial-gradient(circle at top right, rgba(201, 31, 50, .12), transparent 32%),
    linear-gradient(180deg, #fff 0%, #f8f9fd 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--red); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
h1, h2, h3 { color: var(--navy); margin-top: 0; line-height: 1.05; }
h1 { font-size: clamp(42px, 6vw, 70px); letter-spacing: -0.06em; margin-bottom: 22px; }
h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.045em; }
h3 { font-size: 22px; letter-spacing: -0.025em; }
p { line-height: 1.7; }
.hero-text { font-size: 19px; color: var(--muted); max-width: 640px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 34px 0; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row span { background: white; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; color: var(--navy); font-weight: 700; font-size: 14px; }
.hero-card {
  background: var(--navy);
  color: white;
  padding: 38px;
  border-radius: 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-card::after { content: ''; position: absolute; width: 190px; height: 190px; background: rgba(201, 31, 50, .2); border-radius: 50%; right: -60px; bottom: -70px; }
.hero-card h2 { color: white; font-size: 34px; }
.hero-card p, .hero-card li { color: rgba(255,255,255,.78); }
.hero-card ul { padding-left: 20px; margin-bottom: 0; }
.status-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--red); margin-bottom: 22px; box-shadow: 0 0 0 8px rgba(201, 31, 50, .18); }

.section { padding: 84px 0; }
.section-heading { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  background: white;
  box-shadow: 0 16px 40px rgba(16, 22, 43, .06);
}
.card p { color: var(--muted); }
.icon { color: var(--red); font-weight: 900; margin-bottom: 22px; }
.soft-bg { background: var(--soft); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; }
.split p { color: var(--muted); font-size: 18px; }
.benefit-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.benefit-list div { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.benefit-list strong { display: block; color: var(--navy); font-size: 20px; margin-bottom: 8px; }
.benefit-list span { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { padding: 30px; border-radius: 28px; background: white; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(16, 22, 43, .06); }
.step span { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--red); color: white; font-weight: 900; margin-bottom: 22px; }
.step p { color: var(--muted); }
.contact { background: var(--navy); }
.contact-card { background: white; border-radius: 34px; padding: 42px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 36px; box-shadow: var(--shadow); }
.contact-card p { color: var(--muted); }

/* --- NUEVAS CLASES PARA DATOS DE CONTACTO CON ICONOS --- */
.contact-info { margin-top: 36px; display: flex; flex-direction: column; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; }
.info-item { display: flex; flex-direction: row; align-items: center; gap: 14px; }
.info-icon { color: var(--navy); display: flex; align-items: center; justify-content: center; }
.info-item a, .info-item span { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.2s ease; }
.info-item a:hover { color: var(--red); }
/* ------------------------------------------------------- */

.form { display: grid; gap: 16px; }
label { color: var(--navy); font-weight: 800; }
input, textarea { width: 100%; margin-top: 8px; border: 1px solid var(--line); border-radius: 18px; padding: 15px 16px; font: inherit; outline: none; }
input:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(201, 31, 50, .1); }
.form-note { font-size: 13px; margin: 0; }
.footer { padding: 28px 0; background: #fff; border-top: 1px solid var(--line); }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer img { width: 170px; }
.footer p { color: var(--muted); font-size: 14px; }

/* MEDIA QUERIES PARA HACER LA PÁGINA RESPONSIVE */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 16px; right: 16px; top: 82px; background: white; border: 1px solid var(--line); border-radius: 20px; padding: 18px; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hero-grid, .split, .contact-card { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  /* En tablets, hacer que los datos de contacto se muestren en fila */
  .contact-info { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
}

@media (max-width: 560px) {
  .brand img { width: 170px; }
  .nav { height: 74px; }
  .nav-links { top: 74px; }
  .hero { padding: 58px 0; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .cards, .benefit-list { grid-template-columns: 1fr; }
  .contact-card, .hero-card { padding: 28px; border-radius: 26px; }
  /* En móviles, regresar la información de contacto a columna */
  .contact-info { flex-direction: column; gap: 20px; }
  .footer-content { flex-direction: column; text-align: center; }
}
/* --- NUEVAS CLASES PARA EL CARRUSEL DE MARCAS --- */
.brands-section {
  padding: 40px 0 20px;
  background: var(--bg);
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.brands-eyebrow {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Efecto de difuminado en los bordes izquierdo y derecho */
.marquee-container::before,
.marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scrollBrands 30s linear infinite;
}

/* Estilo para detener el carrusel si el usuario pasa el mouse */
.marquee-track:hover {
  animation-play-state: paused;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 80px;
  margin-right: 30px; /* Separación entre logos */
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(16, 22, 43, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%) opacity(70%);
  transition: filter 0.3s ease;
}

/* Efecto hover: Recupera el color y eleva sutilmente la tarjeta */
.brand-logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(16, 22, 43, 0.06);
}

.brand-logo:hover img {
  filter: grayscale(0%) opacity(100%);
}

/* Animación de desplazamiento infinito */
@keyframes scrollBrands {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50%)); }
}

/* Ajustes para móviles */
@media (max-width: 560px) {
  .brand-logo {
    width: 130px;
    height: 70px;
    margin-right: 20px;
  }
}
