/* Footer y botones flotantes del diseño nuevo (los mismos del home).
   Sacado de css/styles.css del home: solo estas piezas, con variables y fuente propias
   para no chocar con theme.css en las demás páginas. */

@font-face { font-family: "Gotham Rounded Web"; src: url("../assets/fonts/GothamRnd-Book.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Gotham Rounded Web"; src: url("../assets/fonts/GothamRnd-Medium.woff") format("woff"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Gotham Rounded Web"; src: url("../assets/fonts/GothamRnd-Bold.woff") format("woff"); font-weight: 700 900; font-style: normal; font-display: swap; }

.footer,
.fabs {
  --navy: #2A2E70;
  --blue: #4D5C97;
  --white: #FFFFFF;
  --bg-footer: #E6ECF8;
  --whatsapp: #25D366;
  font-family: "Gotham Rounded Web", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.footer *, .footer *::before, .footer *::after,
.fabs *, .fabs *::before, .fabs *::after { box-sizing: border-box; }

/* ---------- Footer ---------- */
/* padding y alineación en cero por si la página trae estilos genéricos para <footer> (Embajadores) */
.footer { padding: 0; text-align: left; line-height: normal; position: relative; margin-top: 80px; background: var(--bg-footer); border-radius: 0 clamp(60px, 9vw, 140px) 0 0; color: var(--navy); }
/* Home: el fondo de testimonios baja por detrás de la curva del footer para que no quede franja blanca */
.home-nuevo .testimonials-footer { padding-bottom: clamp(60px, 9vw, 140px); }
.home-nuevo .footer { margin-top: calc(-1 * clamp(60px, 9vw, 140px)); }

/* cuadritos decorativos que salen por arriba del footer */
.footer__iconos { position: absolute; z-index: 2; top: clamp(-38px, -2.5vw, -25px); right: 6%; width: clamp(100px, 10vw, 159px); height: auto; }
.footer__inner { max-width: 1600px; margin: 0 auto; padding: clamp(40px, 5vw, 72px) clamp(20px, 4vw, 72px) 36px; display: flex; flex-direction: column; gap: 28px; }
.footer__logo { display: block; height: 64px; width: auto; max-width: 100%; align-self: flex-start; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px; }
.footer__col { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.footer__col h3 { font-family: inherit; line-height: normal; letter-spacing: normal; text-transform: none; align-self: flex-start; margin: 0 0 4px; padding-bottom: 8px; border-bottom: 2px solid var(--navy); font-size: 13.5px; font-weight: 700; color: var(--navy); }
.footer__col a { color: var(--blue); text-decoration: none; }
.footer__col a:hover { color: var(--blue); text-decoration: underline; }
.footer__divider { height: 1px; margin: 10px 0 6px; background: var(--navy); }
.footer .social { display: flex; gap: 12px; }
.footer .social a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy); color: var(--white); text-decoration: none; }
.footer .social svg { width: 16px; height: 16px; }
.footer .icon { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.footer__legal { display: flex; flex-direction: column; gap: 10px; font-size: 11px; line-height: 1.6; color: var(--blue); }
.footer__legal p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; max-width: none; }

/* espacio para que los botones flotantes (WhatsApp y autos) no tapen el texto:
   a la derecha del texto legal y abajo, para que el final del footer quede libre */
.footer__legal { padding-right: 240px; }
.footer__inner { padding-bottom: 150px; }

/* ---------- Botones flotantes ---------- */
.fabs { position: fixed; z-index: 40; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fab { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 6px 6px 18px; background: var(--white); color: var(--navy); border: 1.5px solid #C9D3EE; border-radius: 999px; box-shadow: 0 10px 26px rgba(42, 46, 112, .18); text-decoration: none; font-size: 13px; font-weight: 600; transition: transform .2s, box-shadow .2s; }
.fab:hover { transform: translateY(-2px); color: var(--navy); }
.fab__icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--white); }
.fab__icon--wa { background: var(--whatsapp); }
.fab__icon--wa svg { width: 58%; height: 58%; }
.fab__icon--auto { background: var(--navy); }
.fab__icon--auto svg { width: 66%; height: 66%; }

/* ---------- Móvil (≤ 900 px), igual que el home ---------- */
@media (max-width: 900px) {
  .fab__texto { display: none; }
  .fab { padding: 0; border: 0; background: transparent; box-shadow: none; min-height: 0; }
  .fab__icon { width: 44px; height: 44px; box-shadow: 0 8px 18px rgba(42, 46, 112, .25); }
  .fabs { gap: 10px; }
  .footer__legal { padding-right: 72px; }
  .footer__inner { padding-bottom: 130px; }
  .footer__iconos { width: 90px; top: -22px; }
}

@media (prefers-reduced-motion: reduce) {
  .fab { transition: none; }
}