/* ── Portada (index.html y en/index.html): lo que no cubren custom.css ni mb-elements.css ──
   Hero: subtítulo, botones y pared de logos de clientes bajo las frases que escribe el agente
   (hero-agent.js). Debajo, secciones de statement: manifiesto de una frase, plataforma (mb-orbit),
   cobertura, cómo funciona, para quién y cierre, todas con las tarjetas e islas de
   mb-elements.css. Colores: variables de página (--primary-color, --text-color…) fuera de las
   islas y tokens --mb-* dentro; ni literales ni !important (ver docs/mb-tokens.md).
   Los assets salen del CDN sin Cache-Control: al cambiar este fichero, sube el ?v= del <link>
   en index.html y en/index.html. */

/* ── hero ── */
/* Fuera los logos de proveedores que la plantilla (custom.css) hace flotar a los lados del hero: en la portada no se
   nombra a ningún proveedor y en móvil se montaban sobre el título. */
.hero::before, .hero::after, .hero-content::before, .hero-content::after { display: none; }
/* lo que aparece bajo el título */
.home-hero-sub { max-width: 62ch; margin: 0 auto; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--text-color); }
.hero-content .hero-btn { margin-top: 30px; }
.hero-btn .home-rating { display: flex; justify-content: center; align-items: center; gap: 17px; margin-top: 32px; }
.hero-btn .home-rating strong { color: var(--primary-color); }
.home-logos { margin-top: 60px; }
.home-logos > p { margin: 0 0 22px; font: 600 11px/1 var(--mb-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--text-color); }
.home-logos-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 44px; }
/* Los logos van por ancho, no por alto: varios ficheros llevan mucho margen interno y a 32px de alto se perdían. */
.home-logos-row .company-logo { display: flex; align-items: center; width: clamp(112px, 11vw, 156px); opacity: .8; transition: opacity .3s ease; }
.home-logos-row .company-logo:hover { opacity: 1; }
.home-logos-row .company-logo img { width: 100%; height: auto; object-fit: contain; }

/* ── secciones ── */
.home-section { padding: 90px 0; }
.home-section .section-title { margin-bottom: 44px; }
.home-section .section-title.section-title-center { max-width: 860px; }
.home-section .section-title h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.12; letter-spacing: -.02em; }
.home-section .section-title p { font-size: 17px; }
.home-section .section-title p a, .home-cta .section-title p a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* manifiesto: una frase con el titular de la página de endpoints (.section-title h2, sin override de tamaño ni
   de peso, y el efecto de scroll de .text-effect en function.js). El fragmento en rojo lleva el mismo peso. */
.home-statement { padding: 120px 0 0; text-align: center; }
.home-statement .section-title h2 span { font-weight: 300; }

/* tarjetas de cobertura, pasos y para quién */
.home-cards .mb-card h3 { font-size: 23px; line-height: 1.2; }
.home-cards .mb-card p { font-size: 15.5px; line-height: 1.6; }
.home-cards .mb-card-head .mb-ball { margin-bottom: 22px; }
.home-link { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 2px; border-bottom: 1px solid var(--mb-line-strong); font-size: 14px; font-weight: 600; color: var(--mb-ink); text-decoration: none; transition: color .25s ease, border-color .25s ease; }
.home-link:hover { color: var(--mb-accent); border-color: var(--mb-accent); }
.home-step-num { display: block; margin-bottom: 18px; font: 600 12px/1 var(--mb-mono); letter-spacing: .22em; color: var(--mb-accent); }

/* cierre */
.home-cta { padding: 120px 0 90px; text-align: center; }
.home-cta .section-title { max-width: 920px; margin-bottom: 0; }
.home-cta .section-title h2 { font-size: clamp(32px, 4.2vw, 58px); font-weight: 500; line-height: 1.08; letter-spacing: -.025em; }
.home-cta .section-title p { max-width: 60ch; margin: 22px auto 0; font-size: 18px; }
.home-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 24px; margin-top: 40px; }

/* letra pequeña antes del pie */
.home-legal { padding: 0 0 56px; }
.home-legal p { max-width: 980px; margin: 0 auto; font-size: 12px; line-height: 1.65; color: var(--text-color); opacity: .75; text-align: center; }

@media (max-width: 991px) {
  .home-section { padding: 60px 0; }
  .home-statement { padding: 80px 0 0; }
  .home-cta { padding: 80px 0 60px; }
}
@media (max-width: 575px) {
  .home-logos { margin-top: 44px; }
  .home-logos-row { gap: 10px 22px; }
  .home-logos-row .company-logo { width: 96px; }
}
