/* Cabecera y pie para las páginas que no son la landing.
   La landing sigue usando assets/css/styles.css. */

.site-header,
.site-footer {
  --navy: #1d2b4e;
  --blue: #3583f0;
  --white: #fff;
  --ink-footer: #b7bcc7;
  --ink-footer-muted: #7d8493;
  --footer-bg: #0e111a;
  --shadow-header: 0 8px 28px rgba(16, 24, 48, .12);
  --social-instagram: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  --social-linkedin: #0a66c2;
  --social-youtube: #ff0000;
  --social-facebook: #1877f2;
  --social-twitter: #000;
  --social-tiktok: #010101;
  font-family: "Saira", system-ui, sans-serif;
}

.site-header a,
.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  margin-top: 16px;
  padding-bottom: 8px;
  background: transparent;
}

.site-header .header-inner {
  padding: 14px 28px;
  width: min(1324px, calc(100% - 80px));
  margin-inline: auto;
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: var(--shadow-header);
}

.site-header .logo img { height: 24px; width: auto; }

.page-template-page-textos-legales .site > .container {
  padding-top: 40px;
}

.site-header .main-nav { display: flex; gap: 34px; }

.site-header .main-nav a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
}

.site-header .main-nav a:hover,
.site-header .main-nav a:focus-visible { color: var(--blue); }

.site-header .lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-header .lang-switch a.is-current { color: var(--blue); }

.site-header .lang-sep {
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.site-header .nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--navy);
}

.site-footer {
  background: var(--footer-bg);
  color: var(--ink-footer);
  padding: 64px 0 28px;
  margin-top: 48px;
}

.site-footer .footer-grid {
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 40px;
}

.site-footer .footer-brand img { height: 26px; width: auto; margin-bottom: 26px; }
.site-footer .footer-hq { color: var(--white); font-size: 12.5px; font-weight: 600; margin-bottom: 14px; }
.site-footer address { font-style: normal; font-size: 13px; line-height: 1.6; margin-bottom: 14px; }
.site-footer .footer-phone { font-size: 13px; margin-bottom: 20px; }
.site-footer .footer-phone a:hover,
.site-footer .footer-phone a:focus-visible,
.site-footer a[href^="tel:"]:hover,
.site-footer a[href^="tel:"]:focus-visible { color: var(--white); }

.site-footer .social { gap: 10px; }
.site-footer .social a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--white);
  color: var(--footer-bg);
}
.site-footer .social a:hover,
.site-footer .social a:focus-visible { color: var(--white); }
.site-footer .social-instagram:hover,
.site-footer .social-instagram:focus-visible { background: var(--social-instagram); }
.site-footer .social-linkedin:hover,
.site-footer .social-linkedin:focus-visible { background: var(--social-linkedin); }
.site-footer .social-youtube:hover,
.site-footer .social-youtube:focus-visible { background: var(--social-youtube); }
.site-footer .social-facebook:hover,
.site-footer .social-facebook:focus-visible { background: var(--social-facebook); }
.site-footer .social-twitter:hover,
.site-footer .social-twitter:focus-visible { background: var(--social-twitter); }
.site-footer .social-tiktok:hover,
.site-footer .social-tiktok:focus-visible { background: var(--social-tiktok); }
.site-footer .social svg { width: 16px; height: 16px; }

.site-footer .footer-col h4 {
  color: var(--white);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer .footer-col a { display: block; font-size: 13px; margin-bottom: 10px; }
.site-footer .footer-col a:hover,
.site-footer .footer-col a:focus-visible { color: var(--white); }
.site-footer .footer-col .footer-widget-col ul { list-style: none; margin: 0; padding: 0; }
.site-footer .footer-col .footer-widget-col li { margin: 0; }
.site-footer .footer-bottom hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .14); margin: 42px 0 20px; }
.site-footer .footer-bottom p { font-size: 11.5px; color: var(--ink-footer-muted); margin: 0; }

@media (max-width: 900px) {
  .site-header { top: 12px; margin-top: 12px; }
  .site-header .header-inner {
    width: calc(100% - 40px);
    padding: 10px 16px 10px 20px;
  }
  .site-header .logo img { height: 22px; }
  .site-header .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .92);
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(16, 24, 48, .14);
  }
  .site-header .main-nav.open { display: flex; }
  .site-header .main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(29, 43, 78, .1); }
  .site-header .main-nav a:last-child { border-bottom: 0; }
  .site-header .main-nav .lang-switch { padding: 14px 0; gap: 10px; }
  .site-header .main-nav .lang-switch a { padding: 0; border-bottom: 0; }
  .site-header .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
  }
  .site-footer { padding: 48px 0 24px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer .footer-bottom hr { margin: 28px 0 16px; }
}
