/* Cabecera, navegación, logos de clientes y pie. Cada dirección ajusta las variables. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg, var(--bg)); color: var(--header-fg, var(--ink));
  border-bottom: 1px solid var(--header-line, var(--line));
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { flex: none; display: block; }
.brand img { width: 128px; }
@media (min-width: 720px) { .brand img { width: 144px; } .header-inner { min-height: 76px; } }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-cta { display: none; }
.platform-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px;
  border-radius: var(--radius); color: inherit; font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap;
}
.platform-link svg { width: 20px; height: 20px; flex: none; }
.platform-link .pl-largo { display: none; }
@media (min-width: 560px) { .platform-link .pl-largo { display: inline; } }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px;
  border: 1.5px solid currentColor; border-radius: var(--radius); background: none; font-weight: 600; cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor; transition: transform .2s; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-open .menu-icon { background: transparent; }
.menu-open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* Navegación: panel en móvil */
.main-nav { display: none; }
.menu-open { overflow: hidden; }
.menu-open .main-nav {
  display: block; position: fixed; inset: var(--menu-top, 68px) 0 0 0; z-index: 45; overflow-y: auto;
  padding: 12px var(--gutter) 32px; background: var(--header-bg, var(--bg)); color: var(--header-fg, var(--ink));
}
.nav-list > li { border-bottom: 1px solid var(--header-line, var(--line)); }
.nav-list > li > a, .nav-sub-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 56px;
  padding: 8px 0; border: 0; background: none; color: inherit; font-weight: 600; font-size: 1.1875rem; text-decoration: none; text-align: left; cursor: pointer;
}
.nav-sub-btn svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-sub-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.subnav { display: none; padding: 0 0 16px; }
.nav-sub-btn[aria-expanded="true"] + .subnav { display: block; }
.subnav a { display: grid; gap: 2px; padding: 10px 0 10px 14px; border-left: 3px solid var(--teal); margin-bottom: 6px; text-decoration: none; }
.subnav strong { font-weight: 700; }
.subnav span { font-size: .9375rem; opacity: .82; line-height: 1.4; }
.nav-mobile-actions { display: grid; gap: 12px; margin-top: 24px; }

@media (min-width: 1180px) {
  .menu-toggle, .nav-mobile-actions { display: none; }
  .header-cta { display: inline-flex; }
  .main-nav { display: block; margin-left: 28px; }
  .nav-list { display: flex; align-items: center; gap: 2px; }
  .nav-list > li { position: relative; border: 0; }
  .nav-list > li > a, .nav-sub-btn {
    min-height: 44px; padding: 6px 10px; border-radius: var(--radius); font-size: .9375rem; white-space: nowrap;
  }
  .nav-list > li > a:hover, .nav-sub-btn:hover { background: var(--nav-hover, rgba(25, 21, 23, .07)); }
  .subnav {
    position: absolute; top: calc(100% + 14px); left: -8px; width: 660px; padding: 20px;
    display: none; grid-template-columns: 1fr 1fr; gap: 6px 20px;
    background: var(--sub-bg, #fff); color: var(--ink); border: 1px solid var(--line); border-radius: 6px;
    box-shadow: 0 10px 30px rgba(25, 21, 23, .10);
  }
  .nav-sub-btn[aria-expanded="true"] + .subnav { display: grid; }
  .subnav ul { display: contents; }
  .subnav a { margin: 0; padding: 10px 12px; border-left: 0; border-radius: var(--radius); }
  .subnav a:hover { background: #F0F5F5; }
  .subnav li:first-child { grid-column: 1 / -1; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
}

/* Logos de clientes: en color, visibles al principio */
.clientes-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 36px; }
.clientes-logos img { width: auto; }
/* Los logos que solo existen en baja resolución no se amplían más allá de su tamaño original */
.logo-coca { height: 42px; }
.logo-prosegur { height: 46px; }
.logo-gsk { height: 34px; }
.logo-viiv { height: 48px; }
.logo-storz { height: 36px; }
.logo-cat { height: 17px; }
.logo-mwm { height: 48px; }
.logo-ohana { height: 40px; }
@media (max-width: 719px) { .clientes-logos { gap: 18px 26px; } }

/* Pie oscuro */
.site-footer { background: var(--footer-bg, var(--ink)); color: #E9E6E7; font-size: .9375rem; --focus: var(--yellow); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-top { display: grid; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand img { width: 150px; margin-bottom: 18px; }
.footer-brand p { max-width: 30ch; color: #CFCACC; }
.footer-contact { display: grid; gap: 4px; margin-top: 14px; font-weight: 600; }
.footer-col h2 { margin-bottom: 12px; font: 700 .9375rem/1.3 var(--font-body); letter-spacing: 0; color: #fff; }
.footer-col li { margin-bottom: 8px; }
.footer-col .footer-redes { margin-top: 28px; }
.footer-sello img { width: 112px; }
.footer-sello p { margin-top: 10px; font-size: .8125rem; color: #CFCACC; max-width: 22ch; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .16); color: #CFCACC; font-size: .875rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (min-width: 720px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr .9fr; } }

/* Botón fijo de agenda (solo dirección B) */
.agenda-fija {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 10px 16px; border: 0; border-radius: var(--radius); background: var(--ink); color: #fff;
  font-weight: 700; cursor: pointer; transition: opacity .2s, transform .2s;
}
.agenda-fija svg { width: 20px; height: 20px; }
.agenda-fija.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
@media (max-width: 719px) {
  .agenda-fija { justify-content: center; width: 52px; height: 52px; padding: 0; border-radius: 50%; }
  .agenda-fija-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
