/* =========================================================================
   components.css — Componentes reutilizables de interfaz.
   ========================================================================= */

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-primary-strong);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--color-deep-blue);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn--gradient {
  background: var(--gradient-brand);
  /* El degradado se dimensiona/recorta a la caja de borde para que cubra el
     100% del botón (respetando el border-radius). Sin esto, con el borde
     transparente de 2px el degradado se origina en la caja de padding y se
     teja en los laterales, dejando finas bandas del color opuesto. */
  background-origin: border-box;
  background-clip: border-box;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--gradient:hover { color: #fff; box-shadow: var(--shadow-md); }

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-line);
}
.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-deep-blue);
  background: var(--color-surface-2);
}

.btn--on-dark {
  background: #fff;
  color: var(--color-deep-blue);
}
.btn--on-dark:hover { background: var(--color-surface-3); color: var(--color-deep-blue); }

.btn--ghost-on-dark {
  background: transparent;
  color: #fff;
  border-color: var(--color-line-dark);
}
.btn--ghost-on-dark:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }

.btn--lg { padding: 1.1rem 2rem; font-size: var(--fs-lead); }
.btn--sm { padding: 0.6rem 1.1rem; font-size: var(--fs-small); }
.btn--block { display: flex; width: 100%; }

/* Enlace con flecha */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform var(--dur-base) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---- Tarjetas ---- */
.card {
  background: var(--color-surface);
  border: var(--border-soft);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  transition: transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}
.card--hover:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}
.card__icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--color-surface-3);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}
.card__icon svg { width: 1.5rem; height: 1.5rem; }
.card h3 { font-size: var(--fs-h4); margin-bottom: var(--space-xs); }
.card p { color: var(--color-ink-soft); }

/* Badges / etiquetas */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface-3);
  color: var(--color-primary);
}
.badge--gradient { background: var(--gradient-brand); color: #fff; }

/* Notas de sección en preparación (estados vacíos honestos) */
.placeholder-note {
  border: 1px dashed var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  color: var(--color-muted);
  background: var(--color-surface-2);
}

/* =========================================================================
   Header + navegación
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-line);
  box-shadow: var(--shadow-xs);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img,
.brand svg { height: 34px; width: auto; }

/* Logo según el tema (claro = color/degradado; oscuro = blanco) */
.brand__logo--dark { display: none; }
:root[data-theme="dark"] .brand__logo--light { display: none; }
:root[data-theme="dark"] .brand__logo--dark { display: block; }

/* Selector de tema (sol / luna) */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  display: inline-grid;
  place-items: center;
  color: var(--color-ink-soft);
  border: 1px solid var(--color-line);
  background: transparent;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.theme-toggle:hover { color: var(--color-primary); border-color: var(--color-primary); background: var(--color-surface-2); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: block; }

/* Nav principal */
.primary-nav { display: none; }

@media (min-width: 1024px) {
  .primary-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-weight: var(--fw-medium);
  font-size: 0.98rem;
  color: var(--color-ink);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.nav-link:hover { color: var(--color-primary); background: var(--color-surface-2); }
.nav-link[aria-current="page"] { color: var(--color-primary); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: var(--radius-pill);
}

.nav-parent { display: inline-flex; align-items: center; gap: 0; }
.nav-parent > .nav-link:first-child { padding-right: 0.35rem; }
.nav-caret-btn { padding: 0.6rem 0.6rem 0.6rem 0.15rem; display: inline-flex; align-items: center; }
.nav-caret-btn:hover { background: transparent; }
.nav-caret { width: 0.7rem; height: 0.7rem; transition: transform var(--dur-base) var(--ease-out); }
.nav-item[data-open="true"] .nav-caret { transform: rotate(180deg); }

/* Panel desplegable */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 260px;
  background: var(--color-surface);
  border: var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
  z-index: var(--z-dropdown);
}
/* Puente invisible para poder mover el cursor al panel */
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -0.6rem;
  left: 0;
  right: 0;
  height: 0.6rem;
}
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown,
.nav-item[data-open="true"] > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  font-weight: var(--fw-medium);
  font-size: 0.95rem;
}
.nav-dropdown a:hover { background: var(--color-surface-3); color: var(--color-primary); }
.nav-dropdown a[aria-current="page"] { color: var(--color-primary); background: var(--color-surface-2); }
.nav-dropdown__head {
  padding: 0.6rem 0.85rem 0.4rem;
  font-size: var(--fs-small);
  color: var(--color-muted);
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}
.nav-dropdown__sep { height: 1px; background: var(--color-line); margin: 0.35rem 0.5rem; }

/* Acciones header */
.header-actions { display: flex; align-items: center; gap: var(--space-sm); }
.header-actions .btn { display: none; }
@media (min-width: 1024px) { .header-actions .btn { display: inline-flex; } }

/* Botón hamburguesa */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   Mega menú (Marketing Digital / Marketing 360)
   ========================================================================= */
.mega-panel {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: min(1100px, calc(100vw - 2 * var(--gutter)));
  background: var(--mega-bg);
  color: var(--mega-text);
  border: 1px solid var(--mega-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--mega-shadow);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
  z-index: var(--z-dropdown);
}
.mega-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-panel__inner { padding: clamp(1.25rem, 1rem + 1vw, 2rem); }
.mega-cols {
  display: grid;
  grid-template-columns: repeat(var(--mega-cols, 3), 1fr);
  gap: 0;
}
.mega-col { padding: 0 clamp(1rem, 0.5rem + 1vw, 1.75rem); }
.mega-col:first-child { padding-left: 0; }
.mega-col:last-child { padding-right: 0; }
.mega-col:not(:last-child) { border-right: 1px solid var(--mega-border); }
.mega-col__head {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mega-muted);
  margin-bottom: 0.75rem;
  padding-inline: 0.75rem;
}
.mega-link {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.mega-link:hover, .mega-link:focus-visible { background: var(--mega-hover); }
.mega-link__title {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  color: var(--mega-text);
  transition: color var(--dur-fast) var(--ease-out);
}
.mega-link:hover .mega-link__title,
.mega-link:focus-visible .mega-link__title,
.mega-link[aria-current="page"] .mega-link__title { color: var(--color-primary); }
.mega-link__desc {
  display: block;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--mega-muted);
  margin-top: 0.15rem;
}

/* Franja CTA inferior */
.mega-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: 1.1rem clamp(1.25rem, 1rem + 1vw, 2rem);
  background: var(--gradient-brand-135);
  color: #fff;
}
.mega-cta__text strong { display: block; font-family: var(--font-heading); font-size: 1.05rem; }
.mega-cta__desc { display: block; font-size: 0.9rem; color: rgba(255, 255, 255, 0.9); }
.mega-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
}
.mega-cta__btn svg { width: 1.1em; height: 1.1em; transition: transform var(--dur-base) var(--ease-out); }
.mega-cta:hover .mega-cta__btn svg { transform: translateX(4px); }

@media (max-width: 1023px) {
  .mega-panel { display: none; }
}
@media (max-width: 640px) {
  .mega-cta { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
}

/* =========================================================================
   Menú móvil (acordeón)
   ========================================================================= */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--color-surface);
  z-index: var(--z-overlay);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  overflow-y: auto;
  /* El padding inferior contempla el área segura del navegador (barra/indicador de
     inicio en móviles con notch); con fallback 0 no afecta a dispositivos sin ella. */
  padding: var(--space-lg) var(--gutter) calc(var(--space-3xl) + env(safe-area-inset-bottom, 0px));
  visibility: hidden;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
@media (min-width: 1024px) { .mobile-nav { display: none; } }

.mobile-nav__list > li { border-bottom: 1px solid var(--color-line); }
.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.25rem;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: 1.15rem;
  color: var(--color-ink);
  width: 100%;
}
.mobile-nav__link[aria-current="page"] { color: var(--color-primary); }

.acc-row { display: flex; align-items: center; justify-content: space-between; padding: 0; }
.acc-parent-link {
  flex: 1;
  padding: 1rem 0.25rem;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: 1.15rem;
  color: var(--color-ink);
}
.acc-parent-link[aria-current="page"] { color: var(--color-primary); }
.acc-trigger {
  padding: 1rem 0.5rem;
  display: inline-flex;
  align-items: center;
  color: var(--color-ink-soft);
}
.acc-trigger .nav-caret { width: 1rem; height: 1rem; }
.acc-trigger[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-out);
}
.acc-panel.is-open { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel a {
  display: block;
  padding: 0.7rem 0.25rem 0.7rem 1rem;
  color: var(--color-ink-soft);
  font-weight: var(--fw-medium);
  border-left: 2px solid var(--color-line);
  margin-left: 0.25rem;
}
.acc-panel a:hover,
.acc-panel a[aria-current="page"] { color: var(--color-primary); border-color: var(--color-primary); }

.mobile-nav__cta { margin-top: var(--space-xl); }

/* =========================================================================
   Breadcrumbs
   ========================================================================= */
.breadcrumbs {
  font-size: var(--fs-small);
  color: var(--color-muted);
  padding-block: var(--space-md);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.4rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--color-line); }
.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs [aria-current="page"] { color: var(--color-ink-soft); }

/* =========================================================================
   Formularios
   ========================================================================= */
.form-field { margin-bottom: var(--space-lg); }
.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  margin-bottom: 0.4rem;
}
.form-field .req { color: var(--color-primary); }
.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}
textarea.form-control { min-height: 140px; resize: vertical; }
.form-hint { font-size: var(--fs-small); color: var(--color-muted); margin-top: 0.3rem; }
.form-error { color: var(--color-error); font-size: var(--fs-small); margin-top: 0.3rem; }
.form-field.has-error .form-control { border-color: var(--color-error); }

.form-consent { display: flex; gap: 0.6rem; align-items: flex-start; }
.form-consent input { margin-top: 0.25rem; width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.form-consent label { font-weight: var(--fw-regular); font-family: var(--font-body); font-size: var(--fs-small); }

/* Honeypot oculto */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-lg);
  font-size: var(--fs-small);
}
.form-alert--ok { background: #e7f5ee; color: var(--color-success); border: 1px solid #bfe3cf; }
.form-alert--error { background: #fdecea; color: var(--color-error); border: 1px solid #f6c9c2; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--color-deep-blue);
  color: var(--color-on-dark-soft);
  /* Solo el aire SUPERIOR del footer (antes 4xl/96px): con el bloque «Sectores»
     ya arriba y su propio padding, 96px dejaban demasiado hueco vacío sobre él.
     Se reduce a 2xl para acercarlo a la sección anterior; el resto del footer
     (columnas, líneas, legal, responsive) no cambia. */
  padding-top: var(--space-2xl);
}
/* Reseñas (estáticas, del CSV) en la parte superior del footer: carrusel «Lo que dicen
   nuestros clientes». Reutiliza el componente .gr-carousel/.gr-track/.gr-card y su JS,
   fijando 3 tarjetas visibles en escritorio, 2 en tablet y 1 en móvil. Tarjetas blancas
   sobre el footer oscuro; cabecera y estrellas claras. */
.footer-reviews {
  padding-bottom: var(--space-2xl);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-reviews__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  margin-bottom: var(--space-md);
}
.footer-reviews__title {
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h3);
  line-height: var(--lh-heading, 1.15);
}
.footer-reviews__avg { margin: 0; display: inline-flex; align-items: center; gap: 0.4rem; color: var(--color-on-dark-soft); }
.footer-reviews__avg .gr-stars--full { font-size: 0.95rem; }
.footer-reviews__avg strong { color: #fff; font-weight: 700; }
.footer-reviews__top { margin-bottom: var(--space-sm); }
.footer-reviews__hint { color: var(--color-on-dark-soft); }
.footer-reviews__track { --fr-gap: 1.5rem; gap: var(--fr-gap); padding-block: 0.25rem 0.5rem; }
/* 3 / 2 / 1 tarjetas visibles según el ancho (dentro del scroller con snap). */
.footer-reviews__track .gr-card {
  flex-basis: calc((100% - 2 * var(--fr-gap)) / 3);
  max-width: none;
}
@media (max-width: 900px) {
  .footer-reviews__track .gr-card { flex-basis: calc((100% - var(--fr-gap)) / 2); }
}
@media (max-width: 600px) {
  .footer-reviews__track .gr-card { flex-basis: 100%; }
}
.footer-reviews__foot { margin-top: var(--space-lg); text-align: center; }
.footer-reviews__foot .btn svg { width: 1em; height: 1em; margin-left: 0.15rem; }
/* Línea discreta «Reseña publicada en Google» al pie de cada tarjeta. */
.gr-card__source {
  margin-top: 0.35rem;
  font-size: var(--fs-small);
  color: var(--color-ink-soft);
  opacity: 0.8;
}

.site-footer h4 {
  color: #fff;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-md);
}
.footer-top {
  display: grid;
  gap: var(--space-2xl);
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  /* La línea divisoria de arriba es el border-bottom de .footer-sectors, que deja
     48px (space-2xl) de aire por su lado. Este padding-top le da los MISMOS 48px
     por debajo para que la línea quede centrada entre Sectores y este bloque, y
     no pegada a él. (El padding-bottom es la separación con la línea del legal y
     no se toca.) */
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid var(--color-line-dark);
}
@media (max-width: 1023px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
/* Solo el LOGOTIPO (hijo directo): con el selector descendente esta regla alcanzaba
   también a los iconos de redes, y su margin-bottom los descentraba 8px hacia arriba
   dentro del círculo. */
.footer-brand > img, .footer-brand > svg { height: 36px; width: auto; margin-bottom: var(--space-md); }
.footer-brand p { max-width: 34ch; color: var(--color-on-dark-soft); }
.footer-contact li { margin-bottom: 0.5rem; }
.footer-contact a { color: var(--color-on-dark-soft); }
.footer-contact a:hover { color: #fff; }
/* Icono por dato de contacto (dirección, teléfono, email): mismo trazo que en la
   página de Contacto, en cian de marca sobre el azul oscuro del footer. */
.footer-contact__item { display: flex; align-items: center; gap: 0.6rem; }
.footer-contact__item--addr { align-items: flex-start; }
.footer-contact__ic {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 1.15rem; height: 1.15rem;
  color: #fff;
}
.footer-contact__item--addr .footer-contact__ic { margin-top: 0.15rem; }
/* Iconos de TRAZO: la regla global `svg { fill: currentColor }` de base.css pisa el
   atributo fill="none" y los rellenaría (quedarían como manchas sólidas). */
.footer-contact__ic svg, .contact-points__ic svg { fill: none; }
.footer-contact__ic svg { width: 100%; height: 100%; }
.footer-links a { color: var(--color-on-dark-soft); display: inline-block; padding: 0.25rem 0; }
.footer-links a:hover { color: #fff; }

.footer-social { display: flex; gap: 0.6rem; margin-top: var(--space-md); }
.footer-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--color-line-dark);
  border-radius: var(--radius-pill);
  color: #fff;
}
.footer-social a:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.footer-social svg { width: 1.1rem; height: 1.1rem; }
/* Apartado "Redes sociales" del footer */
.footer-social__title { font-family: var(--font-heading); font-weight: var(--fw-semibold); font-size: 0.95rem; color: #fff; margin: var(--space-md) 0 0.55rem; }
.footer-social { margin-top: 0; }
/* Los SVG de redes no fijan fill: heredan el color del botón */
.footer-social svg, .hero-social svg, .contact-social svg { fill: currentColor; }

/* Bloque de redes en Contacto (integrado en el hero de contacto) */
.contact-social-block { margin-top: var(--space-lg); }
.contact-social-block__title {
  display: block; font-family: var(--font-heading); font-weight: var(--fw-semibold);
  font-size: 0.95rem; color: var(--color-ink); margin-bottom: 0.6rem;
}
.contact-social { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.contact-social__btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--color-line); border-radius: var(--radius-pill);
  background: var(--color-surface); color: var(--color-primary);
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.contact-social__btn:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; transform: translateY(-2px); }
.contact-social__btn svg { width: 1.15rem; height: 1.15rem; }

/* Mapa de la sede (La Agencia). Ocupa el hueco de la antigua ficha del split, con el
   mismo panel de marca, radio y proporción. El iframe lo inserta el JS (módulo
   [data-map]) al haber consentimiento de cookies o al pulsar «Ver el mapa». */
.map-embed {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(320px, 34vw, 420px);
  background: var(--color-surface-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.map-embed__ask {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  text-align: center;
}
.map-embed__ic { display: grid; place-items: center; width: 2rem; height: 2rem; color: var(--color-primary); }
.map-embed__ic svg { width: 100%; height: 100%; fill: none; }
.map-embed__addr { font-family: var(--font-heading); font-weight: var(--fw-semibold); color: var(--color-ink); max-width: 30ch; }
.map-embed__note { font-size: var(--fs-small); color: var(--color-ink-soft); max-width: 40ch; }
.map-embed iframe { flex: 1 1 auto; width: 100%; min-height: clamp(280px, 30vw, 380px); border: 0; display: block; }
.map-embed__foot {
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem clamp(1rem, 0.8rem + 0.6vw, 1.5rem);
  background: var(--color-surface);
  border-top: var(--border-soft);
}

/* Datos de contacto de La Agencia: reutiliza .contact-points manteniendo el color y
   el peso que ya tenían los enlaces de este apartado. */
.agency-contact { margin-top: var(--space-lg); }
/* Selector compuesto: `.contact-points a` (pages.css, misma especificidad y hoja
   posterior) fijaría el color de texto normal. */
.contact-points.agency-contact a { color: var(--color-primary); font-weight: var(--fw-semibold); }
.contact-points.agency-contact a:hover { color: var(--color-deep-blue); }

/* Bloque de sectores */
.footer-sectors { padding-block: var(--space-2xl); border-bottom: 1px solid var(--color-line-dark); }
.footer-sectors__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: var(--fw-semibold);
  padding: 0;
}
.footer-sectors__toggle .footer-caret { width: 1rem; height: 1rem; transition: transform var(--dur-base) var(--ease-out); }
.footer-sectors__toggle[aria-expanded="false"] .footer-caret { transform: rotate(-90deg); }
@media (min-width: 1024px) {
  .footer-sectors__toggle { cursor: default; pointer-events: none; }
  .footer-sectors__toggle .footer-caret { display: none; }
}
/* Colapsable solo con JS y en responsive; sin JS los enlaces siempre visibles */
@media (max-width: 1023px) {
  .js .footer-sectors__grid {
    overflow: hidden;
    max-height: 0;
    transition: max-height var(--dur-base) var(--ease-out);
  }
  .js .footer-sectors__grid.is-open { max-height: 1400px; }
}
.footer-sectors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.35rem 1.5rem;
  margin-top: var(--space-md);
}
.footer-sectors__grid a {
  color: var(--color-on-dark-soft);
  padding: 0.35rem 0;
  font-size: 0.95rem;
  display: inline-block;
}
.footer-sectors__grid a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
  justify-content: space-between;
  align-items: center;
  padding-block: var(--space-xl);
  font-size: var(--fs-small);
  color: var(--color-on-dark-muted);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.footer-legal a { color: var(--color-on-dark-muted); }
.footer-legal a:hover { color: #fff; }
.footer-legal button {
  color: var(--color-on-dark-muted);
  font: inherit;
  text-decoration: underline;
}
.footer-legal button:hover { color: #fff; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: var(--space-xl); }
}

/* =========================================================================
   Consentimiento de cookies
   ========================================================================= */
.cookie-banner {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--gutter);
  max-width: 560px;
  margin-inline: auto;
  background: var(--color-surface);
  border: var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-lg);
  z-index: var(--z-toast);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: var(--fs-small); color: var(--color-ink-soft); margin-bottom: var(--space-md); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* =========================================================================
   Pantalla de espera global (page-loader)
   La inyecta el script en línea de <head> SOLO si a los 3 s la página sigue
   cargando; nunca está en el HTML, así que no cuesta nada en las cargas
   rápidas. El vídeo de marca viene sobre FONDO NEGRO, así que se compone con
   `mix-blend-mode: screen`: el negro se convierte exactamente en el azul del
   fondo (no se ve la caja del vídeo) y solo queda la animación en cian.
   ========================================================================= */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;              /* nunca genera barras de scroll */
  isolation: isolate;            /* el `screen` se mezcla con SU fondo, no con la página */
  background: var(--color-deep-blue);
  opacity: 0;                    /* entra con fundido: sin destellos */
  transition: opacity var(--dur-base) var(--ease-out);
}
.page-loader.is-on { opacity: 1; }
.page-loader.is-off {
  opacity: 0;
  transition-duration: var(--dur-slow);
  pointer-events: none;          /* deja de estorbar en cuanto empieza a irse */
}
.page-loader__video {
  display: block;
  width: min(520px, 86vw);
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  mix-blend-mode: screen;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .page-loader { transition: none; }
}
