/* Simply Law — one-page legal / regulatory · INNSITE CMS */

:root {
  --ink: #1a2e30;
  --muted: #5a6f71;
  --paper: #ffffff;
  --paper-deep: #f5f5f5;
  --surface: #ffffff;
  --line: var(--cms-line, color-mix(in srgb, var(--primario) 14%, transparent));
  --primario: var(--cms-primario, #2f6063);
  --secundario: var(--cms-secundario, #218187);
  --acento: var(--cms-acento, #eeedde);
  --primario-soft: var(--cms-primario-soft, #3d7578);
  --acento-hover: var(--cms-acento-hover, #1a6d72);
  --on-dark: #ffffff;
  --radius: 2px;
  --radius-lg: 4px;
  --shadow-soft: 0 18px 48px color-mix(in srgb, var(--primario) 14%, transparent);
  --header-h: 128px;
  --topbar-h: 46px;
  --container: 1120px;
  --section-pad-y: clamp(3.75rem, 6.5vw, 5.75rem);
  --scroll-offset: var(--header-h);
  --font: var(--cms-font-cuerpo, Manrope, "Segoe UI", system-ui, sans-serif);
  --font-display: var(--cms-font-titulos, Outfit, "Segoe UI", system-ui, sans-serif);
  --hero-veil: color-mix(in srgb, var(--primario) 88%, #0a1819);
  --hero-veil-soft: color-mix(in srgb, var(--secundario) 55%, #0a1819);
  --heading-side-rule: 3.25rem;
  --servicios-band-bg: transparent;
  --header-surface: color-mix(in srgb, var(--surface) 88%, #fff);
  --sl-green-band: linear-gradient(
    to right,
    color-mix(in srgb, var(--primario) 88%, black) 0%,
    color-mix(in srgb, var(--primario) 70%, black) 52%,
    color-mix(in srgb, var(--primario) 55%, black) 100%
  );
  --gold: var(--secundario);
  --navy: var(--primario);
  --grid-line: color-mix(in srgb, var(--primario) 3.2%, transparent);
  --grid-size: 56px;
  --paper-grid:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  /* Papel de expediente: margen + renglones muy tenues (sin íconos) */
  --sector-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%232f6063' stroke-width='1' opacity='0.04'%3E%3Cpath d='M36 0v180'/%3E%3Cpath d='M0 24h180M0 48h180M0 72h180M0 96h180M0 120h180M0 144h180M0 168h180'/%3E%3C/g%3E%3C/svg%3E");
  --sector-motif-size: 180px;
  --section-paper:
    var(--sector-motif),
    var(--paper-grid);
  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: #ffffff;
  background-image: var(--section-paper);
  background-size: var(--sector-motif-size) var(--sector-motif-size), var(--grid-size) var(--grid-size);
  background-repeat: repeat;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: clip;
}


main {
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.is-cms-hidden,
[hidden] {
  display: none !important;
}

.is-cms-loading {
  opacity: 0.6;
}

.page-top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

main > section[id],
main > section.section-head-only {
  scroll-margin-top: calc(var(--scroll-offset, var(--header-h)) + 0.75rem);
}

/* —— Boot —— */
.site-boot-mark {
  position: relative;
  width: 420px;
  height: 80px;
  max-width: min(420px, 86vw);
  opacity: 0;
}
.site-boot-mark.is-ready { opacity: 1; }

.site-boot-mark.has-name {
  display: grid;
  place-items: center;
}

.site-boot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-boot-img.is-gray {
  filter: grayscale(1) contrast(1.05);
  opacity: 0.55;
}

.site-boot-img.is-color {
  clip-path: inset(calc(100% - var(--boot-fill, 0%)) 0 0 0);
}

.site-boot-name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  letter-spacing: 0.02em;
  color: var(--primario);
}

.site-boot-name.is-color {
  clip-path: inset(calc(100% - var(--boot-fill, 0%)) 0 0 0);
}

.site-boot-mark.is-isologo {
  width: 80px;
  height: 80px;
}

/* —— Topbar —— */
.topbar {
  background: #2F6063;
  color: #fff;
  min-height: var(--topbar-h);
  font-size: 0.82rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--topbar-h);
  padding: 0.65rem 0;
}

.topbar-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topbar-menu:empty {
  display: none;
}

.topbar-badge {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.35rem;
  margin: 0;
  min-width: 0;
  max-width: min(52vw, 28rem);
  font-size: 0.82rem;
  font-weight: 200;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: #fff;
}

.topbar-badge.is-cms-hidden {
  display: none !important;
}

.topbar-badge-img {
  width: auto;
  height: 22px;
  max-width: 120px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: left bottom;
}

.topbar-badge-img[hidden] {
  display: none !important;
}

.topbar-badge-text {
  margin: 0;
  min-width: 0;
  line-height: 1;
  padding-bottom: 1px;
  font-weight: 200;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: lowercase;
}

.topbar-badge-text:empty {
  display: none;
}

.topbar-menu a {
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease;
}

.topbar-menu a:hover {
  color: #fff;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  margin-left: auto;
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topbar-social:empty {
  display: none;
}

.topbar-social a,
.footer-social a,
.social-float-list a {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #fff;
  background: color-mix(in srgb, #fff 14%, transparent);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.topbar-social a:hover,
.footer-social a:hover {
  background: color-mix(in srgb, #fff 24%, transparent);
  color: #fff;
  transform: translateY(-1px);
}

.social-float-list a:hover {
  background: var(--sl-green-band);
  color: #fff;
  transform: translateY(-1px);
}

.site-locale-toggle {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}

.site-locale-option {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-locale-option[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primario);
}

/* —— Header (logo + menú) —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--sl-green-band);
  border-bottom: 1px solid color-mix(in srgb, #fff 12%, transparent);
  overflow: visible;
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 28px color-mix(in srgb, var(--secundario) 45%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  min-height: var(--header-h);
  max-height: var(--header-h);
  padding: 0.75rem 0;
  overflow: visible;
  box-sizing: border-box;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  height: 100%;
  overflow: visible;
  flex: 0 1 auto;
}

.brand.has-cms-logo {
  gap: 0;
  max-width: min(320px, 42vw);
}

.site-header .brand.has-cms-logo {
  max-width: min(320px, 42vw);
}

.brand-logo,
.brand [data-brand-logo] {
  height: auto;
  width: auto;
  max-height: 88px;
  max-width: min(438px, 48vw);
  object-fit: contain;
  object-position: left center;
}

.site-header .brand-logo,
.site-header .brand [data-brand-logo] {
  max-height: 88px;
  max-width: min(438px, 48vw);
  filter: brightness(0) invert(1);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: color-mix(in srgb, #fff 14%, transparent);
  color: #fff;
  font-size: 1.2rem;
}

.brand.has-cms-logo .brand-mark,
.brand-footer.has-cms-logo .brand-mark {
  display: none;
}

.brand.has-cms-logo .brand-text[hidden],
.brand-footer.has-cms-logo .brand-text[hidden] {
  display: none;
}

.brand-text {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav a {
  padding: 0.55rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
  background: color-mix(in srgb, #fff 12%, transparent);
}

.site-nav a[href="#contacto"] {
  margin-left: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.site-nav a[href="#contacto"]:hover,
.site-nav a[href="#contacto"].is-active {
  background: #fff;
  border-color: #fff;
  color: var(--primario);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.4rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: transparent;
}

.hero.is-cms-loading .hero-content {
  visibility: hidden;
}

.hero-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(82vh, 720px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.48) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.hero-slides {
  position: relative;
  z-index: 2;
  min-height: inherit;
  height: min(82vh, 720px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: color-mix(in srgb, var(--primario) 40%, black);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-slide .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.5) 52%,
      rgba(0, 0, 0, 0.74) 100%
    ),
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.45) 0%,
      transparent 42%
    );
}

.hero-slide-media::after {
  content: none;
}

@keyframes heroKenBurns {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.09) translate3d(-1.2%, -0.8%, 0);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(3rem, 7vw, 5rem);
}

.hero-controls {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hero-controls[hidden] {
  display: none;
}

.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(1, 22, 64, 0.45);
  color: #fff;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  padding: 0;
  pointer-events: auto;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-nav-btn.is-prev {
  left: 1.1rem;
}

.hero-nav-btn.is-next {
  right: 1.1rem;
}

.hero-nav-btn:hover,
.hero-nav-btn:focus-visible {
  background: var(--sl-green-band);
  border-color: color-mix(in srgb, #fff 55%, transparent);
  outline: none;
}

.hero-dots {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  left: auto;
  bottom: auto;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  pointer-events: auto;
}

.hero-dot {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  min-width: 0;
  height: auto;
  padding: 0.2rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s ease;
}

.hero-dot::after {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.25s ease, background 0.2s ease;
}

.hero-dot.is-active,
.hero-dot:hover {
  color: #fff;
  background: transparent;
  transform: none;
}

.hero-dot.is-active::after,
.hero-dot:hover::after {
  width: 2.75rem;
  background: #fff;
}

.hero-eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: color-mix(in srgb, var(--paper) 88%, transparent);
}

.hero-content h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.35rem, 5.8vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: #fff;
}

.hero-lead {
  margin: 1.1rem 0 0;
  max-width: 40ch;
  font-size: 1.02rem;
  color: rgba(255, 247, 241, 0.88);
  line-height: 1.55;
}

/* —— Sections —— */
.section {
  padding-block: var(--section-pad-y);
  animation: sectionFadeUp 0.75s ease both;
}

/* Fondos claros: papel con motif regulatorio + retícula sutil */
.section:not(.servicios-band):not(.aliado-band):not(.hero):not(.clients-section):not(.director-quote):not(.normas-section):not(.normas-head),
.clients-head,
.contact-section,
.servicios-section,
.section-head-only.servicios-band,
.servicios-section.servicios-band {
  background-color: #ffffff;
  background-image: var(--section-paper);
  background-size: var(--sector-motif-size) var(--sector-motif-size), var(--grid-size) var(--grid-size);
  background-repeat: repeat;
}

.clients-section {
  background-color: transparent;
}

@keyframes sectionFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

main > .section:nth-child(2) { animation-delay: 0.04s; }
main > .section:nth-child(3) { animation-delay: 0.08s; }
main > .section:nth-child(4) { animation-delay: 0.1s; }
main > .section:nth-child(5) { animation-delay: 0.12s; }

.section-head-only {
  padding-bottom: 0;
}

.section-head-only:not(.aliado-band):not(.servicios-band) + .section {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 3.4vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--primario);
  line-height: 1.12;
}

.section-head p {
  margin: 0.85rem auto 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-head.light h2 {
  color: var(--on-dark);
}

.section-head.light p {
  color: rgba(255, 255, 255, 0.82);
}

/* —— Título Servicios + grid: una sola franja azul —— */
section[data-cms-layout-module="titulos@servicios"].servicios-band,
#servicios.servicios-band,
section.servicios-section.servicios-band {
  background: var(--servicios-band-bg) !important;
  color: var(--ink);
  overflow: hidden;
  box-shadow: none;
  border: 0;
}

section[data-cms-layout-module="titulos@servicios"].servicios-band {
  padding-top: clamp(2.75rem, 5vw, 4rem) !important;
  padding-bottom: 0.85rem !important;
  margin: 0 !important;
}

section[data-cms-layout-module="titulos@servicios"].servicios-band .section-head {
  margin-bottom: 0;
}

section[data-cms-layout-module="titulos@servicios"].servicios-band .section-head h2,
section[data-cms-layout-module="titulos@servicios"].servicios-band .section-head h3,
section[data-cms-layout-module="titulos@servicios"].servicios-band .section-head h4,
section[data-cms-layout-module="titulos@servicios"].is-titulo-tema-oscuro .section-head h2,
section[data-cms-layout-module="titulos@servicios"].is-titulo-tema-oscuro .section-head h3,
section[data-cms-layout-module="titulos@servicios"].is-titulo-tema-oscuro .section-head h4 {
  color: var(--primario) !important;
}

section[data-cms-layout-module="titulos@servicios"].servicios-band .section-head p {
  color: var(--muted);
}

section[data-cms-layout-module="titulos@servicios"].servicios-band + #servicios.servicios-band,
section.servicios-band.section-head-only + #servicios.servicios-band {
  padding-top: 1.25rem !important;
  padding-bottom: clamp(3rem, 6vw, 4.75rem) !important;
  margin-top: 0 !important;
  margin-bottom: 0;
}

/* Fallback: títulos tema oscuro nunca quedan blancos sobre blanco */
section[data-cms-slot="titulos"].is-titulo-tema-oscuro,
section[data-cms-slot="titulos"].clients:not(.clients-head) {
  background: var(--servicios-band-bg);
  color: var(--on-dark);
}

section[data-cms-slot="titulos"].is-titulo-tema-oscuro .section-head h2,
section[data-cms-slot="titulos"].is-titulo-tema-oscuro .section-head h3,
section[data-cms-slot="titulos"].is-titulo-tema-oscuro .section-head h4,
section[data-cms-slot="titulos"].clients:not(.clients-head) .section-head h2,
section[data-cms-slot="titulos"].clients:not(.clients-head) .section-head h3,
section[data-cms-slot="titulos"].clients:not(.clients-head) .section-head h4 {
  color: var(--on-dark) !important;
}

#servicios.servicios-band > .container {
  position: relative;
  z-index: 1;
}

#servicios.servicios-band .servicio-card,
#servicios.servicios-band .servicio-card.is-tile,
#servicios.servicios-band button.servicio-card.is-tile {
  background: #2f6063 !important;
  border-color: color-mix(in srgb, #2f6063 80%, #000);
  color: #fff;
  backdrop-filter: none;
  box-shadow: none;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center !important;
}

#servicios.servicios-band .servicio-card:hover,
#servicios.servicios-band .servicio-card.is-tile:hover,
#servicios.servicios-band .servicio-card.is-tile:focus-visible {
  background: #2f6063 !important;
  border-color: color-mix(in srgb, #218187 55%, #2f6063);
  box-shadow: 0 14px 32px color-mix(in srgb, #2f6063 22%, transparent);
  transform: translateY(-4px);
}

#servicios.servicios-band .servicio-card h3,
#servicios.servicios-band .servicio-card.is-tile h3 {
  color: #fff;
  font-weight: 400;
}

#servicios.servicios-band .servicio-card p {
  color: color-mix(in srgb, #fff 78%, transparent);
}

#servicios.servicios-band .servicio-index {
  color: color-mix(in srgb, #fff 70%, transparent);
}

#servicios.servicios-band .servicio-icon,
#servicios.servicios-band .servicio-card.is-tile .servicio-icon {
  color: #fff;
  background: color-mix(in srgb, #fff 12%, transparent);
  border-color: color-mix(in srgb, #fff 28%, transparent);
}

/* —— Nosotros band (ASSA-like: featured + pair) —— */
.band.nosotros-band {
  --band-overlap: calc(4.5rem + 24px);
  color: #fff;
  padding: 0 0 clamp(4.5rem, 9vw, 7rem);
  margin-top: calc(var(--band-overlap) * -1);
  position: relative;
  z-index: 5;
  scroll-margin-top: var(--scroll-offset);
}

.band.nosotros-band > .container {
  width: min(1480px, calc(100% - 0.75rem));
}

.band-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.band-panel {
  background: var(--secundario);
  color: #fff;
  padding: 3.25rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(1, 22, 64, 0.18);
}

.band-panel--unified {
  padding: 3.5rem;
}

.band-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 3rem;
  align-items: stretch;
  min-height: 520px;
}

.band-media {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: var(--radius);
  background-color: var(--primario);
  width: 100%;
  height: 100%;
  min-height: 520px;
  align-self: stretch;
}

.nosotros-band.is-cms-loading .band-media img {
  opacity: 0;
}

.band-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.band-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1.15rem;
  height: 100%;
}

.band-copy-cols {
  column-count: 2;
  column-gap: 1.5rem;
  column-fill: balance;
  min-width: 0;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  word-break: normal;
  overflow-wrap: break-word;
}

.band-copy-cols > p {
  margin: 0 0 0.75rem;
  orphans: 2;
  widows: 2;
}

.band-copy-cols > p:last-child {
  margin-bottom: 0;
}

.band h2,
.band h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.1vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  text-transform: none;
}

.band-copy > h2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: auto;
  max-width: 100%;
  align-self: center;
  margin-inline: auto;
}

.band-pair-block > h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  align-self: flex-start;
  margin-inline: 0;
  gap: 0;
}

.band-copy > h2::before,
.band-copy > h2::after {
  content: "";
  flex: 0 0 var(--heading-side-rule);
  width: var(--heading-side-rule);
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.band p {
  margin: 0 0 0.75rem;
  font-weight: 400;
  font-size: inherit;
  line-height: inherit;
  color: rgba(255, 255, 255, 0.92);
}

.band-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.75rem;
  width: 100%;
  margin-top: auto;
  padding-top: 0;
  border-top: none;
}

.band-pair::before {
  content: "";
  grid-column: 1 / -1;
  height: 1px;
  margin: 2.5rem 0 2.5rem;
  background: rgba(255, 255, 255, 0.18);
}

.band-pair-block {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.band-pair-body {
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.band-pair-body > p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.band-pair-body > p + p {
  margin-top: 0.75rem;
}

/* —— Aliado CTA band —— */
.aliado-band {
  background: linear-gradient(
    135deg,
    var(--primario) 0%,
    color-mix(in srgb, var(--secundario) 85%, var(--primario)) 100%
  );
  color: var(--on-dark);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.aliado-band .cms-cards-grid {
  display: block;
  max-width: 52rem;
  margin-inline: auto;
}

.aliado-band .cms-card {
  display: grid;
  gap: 1rem;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
  justify-items: center;
  justify-content: center;
}

.aliado-band .cms-card-image {
  display: none;
}

.aliado-band .cms-card-copy {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  text-align: center;
  width: 100%;
  max-width: 42rem;
}

.aliado-band .cms-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--on-dark);
  letter-spacing: -0.01em;
  text-transform: none;
  text-align: center;
  margin-inline: auto;
}

.aliado-band .cms-card-excerpt {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  max-width: 42ch;
  text-align: center;
  margin-inline: auto;
}

.aliado-band .cms-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.35rem;
}

.aliado-band .cms-card-actions .btn-primary {
  background: #fff;
  color: var(--primario);
}

.aliado-band .cms-card-actions .btn-primary:hover {
  background: color-mix(in srgb, #fff 88%, var(--acento));
  color: var(--primario);
}

.aliado-band .cms-card-actions .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.aliado-band .cms-card-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.aliado-band .cms-card-link {
  display: inline-flex;
  margin-top: 0.5rem;
}

.aliado-band .cms-card-adjuntos {
  justify-content: center;
}

.aliado-band .cms-card-adjunto {
  background: var(--paper);
  color: var(--primario);
  border-radius: var(--radius);
  padding: 0.75rem 1.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.aliado-band .cms-card-adjunto:hover {
  background: #fff;
  color: var(--secundario);
}

/* —— Generic cards grid —— */
.cms-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.cms-card {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cms-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.cms-card-link {
  display: grid;
  gap: inherit;
  color: inherit;
}

.cms-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-deep);
  display: grid;
  place-items: center;
}

.cms-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cms-card-copy {
  width: 100%;
}

.cms-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--primario);
}

.cms-card-excerpt {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.cms-card-adjuntos {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cms-card-adjunto {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--secundario) 10%, var(--paper));
  color: var(--secundario);
  font-size: 0.78rem;
  font-weight: 600;
}

.cms-card-adjunto:hover {
  background: var(--secundario);
  color: #fff;
}

/* —— Servicios —— */
.servicios-section {
  background: #ffffff;
}

.servicios-section.servicios-band {
  background: #ffffff;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.25rem;
}

.servicio-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 1.15rem;
  align-items: start;
  padding: 1.35rem 1.25rem;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--primario) 14%, transparent);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.servicio-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--secundario) 40%, var(--line));
}

.servicio-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  min-width: 2.75rem;
}

.servicio-index {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--secundario);
  font-variant-numeric: tabular-nums;
}

.servicio-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: var(--sl-green-band);
  color: #fff;
  font-size: 1.05rem;
  flex: 0 0 auto;
}

.servicio-copy {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.servicio-card h3,
.servicio-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primario);
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.servicio-card p,
.servicio-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* —— Equipo —— */
.equipo-section {
  background: transparent;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.team-card {
  text-align: center;
  padding: 1.75rem 1.35rem 1.5rem;
  min-width: 0;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--primario) 8%, transparent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.team-avatar {
  position: relative;
  width: min(100%, 160px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 1.15rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--secundario) 12%, var(--paper));
  color: var(--secundario);
  font-size: 2rem;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--secundario) 22%, var(--paper));
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--primario);
}

.team-card .role {
  margin: 0.2rem 0 0.65rem;
  color: var(--secundario);
  font-size: 0.84rem;
  font-weight: 600;
}

.team-card .team-bio {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.team-contacts {
  margin: 0.5rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.team-contacts-start,
.team-contacts-end {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.team-contacts a {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--radius);
  color: var(--secundario);
  background: color-mix(in srgb, var(--secundario) 8%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--secundario) 18%, transparent);
  transition: background 0.2s ease, color 0.2s ease;
}

.team-contacts a:hover {
  background: var(--primario);
  color: var(--paper);
  border-color: var(--primario);
}

/* —— Nosotros / Entradas (rail + panel) —— */
.nosotros-stage {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.6fr);
  gap: 2rem 2.75rem;
  align-items: start;
}

.nosotros-rail {
  display: grid;
  gap: 0.55rem;
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
}

.nosotros-rail-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.nosotros-rail-item:hover {
  border-color: color-mix(in srgb, var(--primario) 28%, var(--line));
}

.nosotros-rail-item.is-active {
  background: var(--primario);
  border-color: var(--primario);
  color: #fff;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--primario) 28%, transparent);
  transform: translateX(2px);
}

.nosotros-rail-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: top center;
  display: block;
  background: var(--paper-deep);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primario) 12%, transparent);
  transition: box-shadow 0.25s ease, transform 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
}

.nosotros-rail-avatar.is-fallback {
  display: grid;
  place-items: center;
  color: var(--primario);
  font-size: 1rem;
  background: color-mix(in srgb, var(--secundario) 12%, #fff);
}

.nosotros-rail-item.is-active .nosotros-rail-avatar {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 6px 16px color-mix(in srgb, var(--primario) 28%, transparent);
  transform: scale(1.04);
  filter: none;
  opacity: 1;
}

.nosotros-rail-item:not(.is-active) .nosotros-rail-avatar {
  filter: grayscale(0.15);
  opacity: 0.92;
}

.nosotros-rail-meta {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.nosotros-rail-role {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--secundario);
}

.nosotros-rail-item.is-active .nosotros-rail-role {
  color: color-mix(in srgb, #fff 82%, var(--acento));
}

.nosotros-rail-item:not(.is-active) .nosotros-rail-role {
  color: var(--muted);
}

.nosotros-rail-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nosotros-rail-item.is-active .nosotros-rail-name {
  color: #fff;
}

.nosotros-panels {
  min-width: 0;
}

.nosotros-panel {
  display: grid;
  gap: 1.35rem;
  padding: 1.5rem 1.55rem 1.65rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.nosotros-panel[hidden] {
  display: none !important;
}

.nosotros-panel.is-swap {
  animation: nosotros-panel-in 0.4s ease;
}

@keyframes nosotros-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.nosotros-panel-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.nosotros-panel-head .nosotros-num {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--secundario);
}

.nosotros-panel-titles {
  min-width: 0;
}

.nosotros-role {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--secundario);
}

.nosotros-panel-titles h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  color: var(--primario);
  line-height: 1.2;
}

.nosotros-panel-body {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 1.35rem 1.5rem;
  align-items: start;
}

.nosotros-media {
  width: 148px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper-deep);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--primario) 22%, transparent);
}

.nosotros-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.nosotros-media:empty {
  display: none;
}

.nosotros-copy {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.nosotros-copy p {
  margin: 0 0 0.75rem;
}

.nosotros-copy p:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .nosotros-panel.is-swap {
    animation: none;
  }
}

/* —— Director quote —— */
.section.director-quote,
.director-quote {
  background: #fff !important;
  background-image: none !important;
  width: 100%;
  max-width: none;
  padding-block: clamp(3.5rem, 6vw, 5rem);
  border-block: 1px solid color-mix(in srgb, var(--primario) 8%, transparent);
}

.director-quote-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  gap: 0 2rem;
  align-items: start;
  width: min(100% - 2.5rem, var(--container));
  max-width: var(--container);
  margin-inline: auto;
}

.director-quote-photo {
  grid-row: 1 / span 3;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--secundario) 14%, var(--paper));
  color: var(--secundario);
  font-size: 2.25rem;
  border: 3px solid var(--surface);
  box-shadow: var(--shadow-soft);
}

.director-quote-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.director-quote-mark {
  grid-column: 2;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.6;
  color: color-mix(in srgb, var(--secundario) 35%, transparent);
  margin-bottom: -0.25rem;
}

.director-quote-body {
  grid-column: 2;
  margin: 0;
}

.director-quote-body p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.45;
  color: var(--primario);
  font-weight: 500;
}

.director-quote-meta {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 1.25rem;
}

.director-quote-rule {
  display: inline-block;
  width: 2rem;
  height: 2px;
  background: color-mix(in srgb, var(--secundario) 45%, transparent);
}

.director-quote-meta strong {
  font-weight: 700;
  color: var(--primario);
}

.director-quote-meta span:not(.director-quote-rule) {
  color: var(--muted);
  font-size: 0.92rem;
}

/* —— Portfolio —— */
.portfolio-section {
  background: var(--paper);
}

.pf-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.pf-case {
  display: grid;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pf-case:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.pf-case-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-deep);
}

.pf-case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pf-case:hover .pf-case-media img {
  transform: scale(1.03);
}

.pf-case-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--secundario) 12%, var(--paper)),
    color-mix(in srgb, var(--primario) 8%, var(--paper))
  );
}

.pf-case-copy {
  padding: 1.35rem 1.25rem 1.5rem;
}

.pf-case-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secundario);
}

.pf-case-copy h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--primario);
}

.pf-case-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* —— Clientes carrusel —— */
.clients-section {
  padding-inline: 0;
  overflow: hidden;
  width: 100%;
  max-width: none;
}

section[data-cms-layout-module="titulos@clientes"].clients-head .section-head {
  margin-bottom: 0;
}

.logo-carousel {
  width: 100%;
  max-width: none;
  display: grid;
  gap: 3.5rem;
  padding-block: 0.5rem;
}

.logo-carousel-rail {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.logo-carousel-track {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  width: max-content;
  will-change: transform;
}

.logo-carousel-track.is-marquee-left {
  animation: logoMarqueeLeft 28s linear infinite;
}

.logo-carousel-track.is-marquee-right {
  animation: logoMarqueeRight 32s linear infinite;
}

.logo-carousel:hover .logo-carousel-track {
  animation-play-state: paused;
}

@keyframes logoMarqueeLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes logoMarqueeRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.carrusel-logo {
  height: 144px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
  flex: 0 0 auto;
  opacity: 0.72;
  transition: opacity 0.25s ease;
}

.carrusel-logo:hover {
  opacity: 1;
}

.logo-carousel.is-grayscale .carrusel-logo {
  filter: grayscale(1);
  opacity: 0.65;
}

.logo-carousel.is-negative .carrusel-logo {
  filter: grayscale(1) brightness(0);
  opacity: 0.7;
}

/* —— Contacto —— */
.contact-section {
  background: transparent;
  padding-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2.5rem;
  align-items: start;
  padding-bottom: var(--section-pad-y);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-list:empty {
  display: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--sl-green-band);
  color: var(--paper);
  font-size: 0.95rem;
}

.contact-list strong {
  display: block;
  color: var(--primario);
  font-size: 0.8rem;
  margin-bottom: 0.15rem;
}

.contact-list a,
.contact-list span:not(.contact-icon) {
  color: var(--ink);
  word-break: break-word;
}

.contact-list a:hover {
  color: var(--secundario);
}

.contact-aside {
  display: grid;
  gap: 0.85rem;
}

.contact-hours {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.contact-hours[hidden],
.contact-hours.is-cms-hidden {
  display: none !important;
}

.contact-hours strong {
  display: block;
  color: var(--primario);
  font-size: 0.8rem;
  margin-bottom: 0.15rem;
}

.contact-hours [data-horario-resumen] {
  color: var(--ink);
}

.contact-map {
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  background: var(--paper-deep);
  opacity: 1;
}

.contact-map.is-cms-loading {
  opacity: 1;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: min(48vh, 380px);
  border: 0;
  opacity: 1;
}

.contact-map.is-cms-hidden,
.contact-map[hidden] {
  display: none !important;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--primario);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, outline 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--secundario) 30%, transparent);
  border-color: var(--secundario);
}

.contact-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 0.85rem 1.4rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--sl-green-band);
  color: var(--paper);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--primario) 85%, black);
}

.btn-outline {
  background: transparent;
  color: var(--primario);
  border: 1px solid color-mix(in srgb, var(--primario) 35%, transparent);
}

.btn-outline:hover {
  background: var(--primario);
  color: var(--paper);
}

.contact-feedback {
  margin: 0;
  font-size: 0.88rem;
}

.contact-feedback.is-ok { color: #1f7a45; }
.contact-feedback.is-error { color: #a12828; }
.contact-feedback.is-pending { color: var(--muted); }

.contact-captcha {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.85rem;
  margin-top: 0.15rem;
  padding: 0.7rem 0.9rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--paper) 80%, #fff);
}

.contact-captcha-label {
  flex: 1 1 auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.contact-form .contact-captcha-sum {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0 0 0 auto;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primario);
}

.contact-captcha-eq {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.contact-form .contact-captcha input[name="cms_captcha"] {
  width: 2.75rem;
  padding: 0.2rem 0.15rem 0.28rem;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--primario) 22%, #fff);
  border-radius: 0;
  background: transparent;
  text-align: center;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  color: var(--primario);
}

.contact-form .contact-captcha input[name="cms_captcha"]:focus {
  outline: none;
  border-bottom-color: var(--secundario);
}

.contact-form .contact-captcha input[name="cms_captcha"][aria-invalid="true"] {
  border-bottom-color: #a12828;
}

.contact-captcha:has(input[aria-invalid="true"]) {
  border-color: color-mix(in srgb, #a12828 35%, var(--line));
  background: color-mix(in srgb, #a12828 4%, var(--paper));
}

@media (max-width: 520px) {
  .contact-captcha-label {
    flex: 1 1 100%;
  }

  .contact-form .contact-captcha-sum {
    margin-left: 0;
  }
}

/* —— Footer —— */
.site-footer-band {
  background: var(--sl-green-band);
  color: rgba(255, 247, 241, 0.88);
  padding-block: clamp(2.5rem, 8vw, 2.5rem);
}

.site-footer-band > .container.footer-grid,
.site-footer-band .footer-grid.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(10rem, auto) minmax(0, 1fr) minmax(3rem, auto);
  align-items: center;
  gap: 1.5rem 1.75rem;
  width: 100%;
  min-height: clamp(5.5rem, 10vw, 7.5rem);
  text-align: left;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-brand-col {
  align-items: flex-start;
  align-self: center;
  justify-self: start;
  text-align: left;
  gap: 0.75rem;
  min-width: 0;
}

.footer-brand-col .brand,
.footer-brand-col .brand-footer {
  height: auto;
  justify-content: flex-start;
  margin-inline: 0;
}

.brand-footer .brand-logo {
  filter: brightness(0) invert(1);
  opacity: 0.95;
  max-height: clamp(52px, 6vw, 72px);
  max-width: min(280px, 34vw);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.footer-brand-col .brand.has-cms-logo,
.footer-brand-col .brand-footer.has-cms-logo {
  max-width: min(280px, 34vw);
}

.brand-footer .brand-text strong {
  color: var(--paper);
}

.brand-footer .brand-text small {
  color: rgba(255, 247, 241, 0.65);
}

.footer-col-title {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 247, 241, 0.95);
}

.footer-nav-col {
  justify-self: center;
  align-items: center;
  align-self: center;
  min-width: 0;
  width: 100%;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 247, 241, 0.75);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.footer-links a:hover {
  color: #fff;
}

.footer-social-col {
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  align-self: center;
  justify-self: end;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 36px;
}

.footer-social li {
  display: flex;
  align-items: center;
}

.footer-social:empty {
  display: none;
}

.site-footer {
  background: var(--sl-green-band);
  padding-block: 0.65rem;
}

.footer-inner {
  display: flex;
  justify-content: center;
}

.footer-credit {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 247, 241, 0.72);
}

.footer-credit a {
  font-weight: 600;
  color: var(--paper);
}

.footer-by {
  width: 1.35rem;
  height: 1px;
  background: color-mix(in srgb, var(--paper) 35%, transparent);
}

/* —— Social float —— */
.social-float {
  position: fixed;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
}

.social-float-list {
  display: grid;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-float-list a {
  background: var(--surface);
  color: var(--secundario);
  box-shadow: var(--shadow-soft);
}

.social-float-list a:hover,
.social-float-list a:focus-visible {
  background: var(--sl-green-band);
  color: #fff;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--primario) 22%, transparent);
}

/* —— Reveal (main.js) —— */
.reveal-on-scroll {
  opacity: 1;
  transform: none;
}

.reveal-on-scroll.is-inview {
  opacity: 1;
  transform: none;
}

/* —— Responsive —— */
@media (max-width: 1024px) {
  .servicios-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pf-portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nosotros-stage {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .nosotros-rail {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .nosotros-rail-item {
    padding: 0.75rem 0.85rem;
  }

  .nosotros-rail-name {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .nosotros-panel-body {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .nosotros-media {
    width: 120px;
  }

  .normas-toolbar {
    overflow: visible;
  }

  .normas-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    width: 100%;
  }

  .normas-chip {
    width: 100%;
    max-width: none;
    flex: none;
    justify-content: flex-start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 136px;
    --topbar-h: 64px;
  }

  .nosotros-rail {
    grid-template-columns: 1fr;
  }

  .nosotros-panel-body {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .nosotros-panel-head {
    justify-items: center;
    text-align: center;
  }

  .nosotros-copy {
    text-align: left;
  }

  .topbar-inner {
    min-height: var(--topbar-h);
    padding: 0.75rem 0;
  }

  .header-inner {
    position: relative;
    justify-content: flex-start;
    height: var(--header-h);
    min-height: var(--header-h);
    max-height: var(--header-h);
    padding: 0.85rem 0;
  }

  .nav-toggle {
    display: inline-grid;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .site-header .brand,
  .site-header .brand.has-cms-logo {
    margin-inline: 0;
    margin-right: auto;
    justify-content: flex-start;
    max-width: min(320px, calc(100% - 4.5rem));
  }

  .site-header .brand-logo,
  .site-header .brand [data-brand-logo] {
    max-height: 104px;
    max-width: min(320px, calc(100% - 4.5rem));
    object-position: left center;
    margin-inline: 0;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 50%;
    top: 100%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--sl-green-band);
    border-bottom: 1px solid color-mix(in srgb, #fff 12%, transparent);
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 12px 32px color-mix(in srgb, var(--secundario) 45%, transparent);
  }

  .site-header.is-nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 0;
    color: #fff;
  }

  .site-nav a + a {
    border-top: 0;
  }

  .site-nav a[href="#contacto"] {
    margin-left: 0;
    border: 0;
    border-radius: 0;
  }

  .site-nav a[href="#contacto"]:hover,
  .site-nav a[href="#contacto"].is-active {
    background: color-mix(in srgb, #fff 14%, transparent);
    color: #fff;
  }

  .band.nosotros-band {
    --band-overlap: calc(3.25rem + 20px);
  }

  .band-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .band-copy-cols {
    column-count: 1;
  }

  .band-pair {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 0.35rem;
  }

  .band-pair::before {
    margin: 1.85rem 0 1.85rem;
  }

  .band-media {
    min-height: 280px;
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .band-panel,
  .band-panel--unified {
    padding: 2.25rem;
  }

  .nosotros-cards .cms-card:first-child {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .nosotros-cards .cms-cards-grid {
    grid-template-columns: 1fr;
  }

  .servicios-grid,
  .cms-cards-grid,
  .pf-portfolio-grid,
  .team-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.65rem;
    min-height: 0;
  }

  .footer-brand-col .brand.has-cms-logo,
  .footer-brand-col .brand-footer.has-cms-logo {
    max-width: min(240px, 72vw);
  }

  .site-footer-band .brand-footer .brand-logo {
    max-height: clamp(48px, 12vw, 64px);
    max-width: min(240px, 72vw);
  }

  .footer-brand-col {
    justify-self: center;
    align-items: center;
    text-align: center;
  }

  .footer-brand-col .brand,
  .footer-brand-col .brand-footer {
    justify-content: center;
    margin-inline: auto;
  }

  .footer-nav-col {
    justify-self: center;
    width: 100%;
  }

  .footer-links,
  .footer-social {
    justify-content: center;
  }

  .footer-social-col {
    justify-self: center;
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .director-quote-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .director-quote-photo {
    grid-row: auto;
    width: 96px;
    height: 96px;
  }

  .director-quote-mark,
  .director-quote-body,
  .director-quote-meta {
    grid-column: 1;
  }

  .director-quote-meta {
    justify-content: center;
  }

  .hero-frame,
  .hero-slides {
    min-height: 68vh;
    height: 68vh;
  }

  .hero-nav-btn.is-prev {
    left: 0.65rem;
  }

  .hero-nav-btn.is-next {
    right: 0.65rem;
  }

  .hero-dots {
    top: 1rem;
    right: 0.85rem;
  }

  .footer-by {
    width: 0.85rem;
  }

  .social-float {
    right: 0.45rem;
  }

  .logo-carousel-track.is-marquee-left,
  .logo-carousel-track.is-marquee-right {
    animation-duration: 22s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section {
    animation: none;
  }

  .hero-slide-media {
    animation: none;
  }

  .logo-carousel-track.is-marquee-left,
  .logo-carousel-track.is-marquee-right {
    animation: none;
  }
}


/* ===== INNSITE Audit (from ASSA) ===== */
.cms-audit-form-marker {
  display: none;
}

/* Anclas invisibles: no ocupan espacio ni bloquean clicks del form */
body.cms-audit .cms-audit-form-marker {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: visible;
  pointer-events: none;
  outline: none !important;
}

body.cms-audit .contact-form:hover > .cms-audit-form-marker > .cms-audit-cartel,
body.cms-audit .contact-form:focus-within > .cms-audit-form-marker > .cms-audit-cartel {
  opacity: 1;
  visibility: visible;
}

body.cms-audit
  .cms-audit-form-marker[data-cms-field="Contacto.formulario"]
  > .cms-audit-cartel {
  top: 6px;
  left: 6px;
}

body.cms-audit
  .cms-audit-form-marker[data-cms-field="Contacto.smtp"]
  > .cms-audit-cartel {
  top: 32px;
  left: 6px;
}

body.cms-audit
  .cms-audit-form-marker[data-cms-field="Contacto.envio"]
  > .cms-audit-cartel {
  top: 58px;
  left: 6px;
}

body.cms-audit .contact-form[data-cms-form-status="ok"] {
  outline: 1px solid #2f9e6a;
  outline-offset: 2px;
}

body.cms-audit .contact-form[data-cms-form-status="map"] {
  outline: 1px solid #d4a017;
  outline-offset: 2px;
}

body.cms-audit .contact-form[data-cms-form-status="gap"] {
  outline: 1px solid #cc2647;
  outline-offset: 2px;
}

/* INNSITE Audit — only with body.cms-audit (?cms-audit=1) */
body.cms-audit [data-cms-slot],
body.cms-audit [data-cms-field],
body.cms-audit .cms-audit-host {
  position: relative;
}

body.cms-audit .social-float[data-cms-slot] {
  position: fixed;
}

body.cms-audit span.cms-audit-host,
body.cms-audit strong.cms-audit-host,
body.cms-audit small.cms-audit-host,
body.cms-audit a.cms-audit-host {
  display: inline-block;
  max-width: 100%;
  vertical-align: baseline;
}

body.cms-audit [data-cms-slot][data-cms-status="ok"],
body.cms-audit [data-cms-field][data-cms-status="ok"] {
  outline: 1px solid #2f9e6a;
  outline-offset: 2px;
}

body.cms-audit [data-cms-slot][data-cms-status="map"],
body.cms-audit [data-cms-field][data-cms-status="map"] {
  outline: 1px solid #d4a017;
  outline-offset: 2px;
}

body.cms-audit [data-cms-slot][data-cms-status="gap"],
body.cms-audit [data-cms-field][data-cms-status="gap"] {
  outline: 1px solid #cc2647;
  outline-offset: 2px;
}

/* Carteles reales (JS): ::before fallaba en hero (overflow) y no existía en textos */
body.cms-audit [data-cms-slot]::before,
body.cms-audit [data-cms-field]::before {
  content: none !important;
  display: none !important;
}

body.cms-audit .cms-audit-cartel {
  position: absolute;
  z-index: 90;
  top: 4px;
  left: 4px;
  right: auto;
  bottom: auto;
  box-sizing: border-box;
  width: max-content;
  max-width: min(200px, calc(100% - 8px));
  margin: 0;
  padding: 4px 8px 4px 8px;
  border: 0;
  border-left: 2px solid #666;
  border-radius: 0;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: left;
  color: #f4f6f8;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  background: rgba(12, 16, 20, 0.98);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

body.cms-audit .cms-audit-host:hover > .cms-audit-cartel,
body.cms-audit .cms-audit-host:focus-within > .cms-audit-cartel {
  opacity: 1;
  visibility: visible;
}

/* Si hay un hijo con hover, no mostrar el cartel del padre */
body.cms-audit .cms-audit-host:has(.cms-audit-host:hover) > .cms-audit-cartel,
body.cms-audit .cms-audit-host:has(.cms-audit-host:focus-within) > .cms-audit-cartel {
  opacity: 0;
  visibility: hidden;
}

body.cms-audit .cms-audit-cartel[data-status="ok"] {
  border-left-color: #2f9e6a;
}

body.cms-audit .cms-audit-cartel[data-status="map"] {
  border-left-color: #d4a017;
}

body.cms-audit .cms-audit-cartel[data-status="gap"] {
  border-left-color: #cc2647;
}

body.cms-audit .cms-audit-cartel[data-kind="texto"] {
  top: 0;
  left: 0;
  font-size: 0.65rem;
  padding: 3px 6px;
}

body.cms-audit .hero > .cms-audit-cartel {
  top: 12px;
  left: auto;
  right: 12px;
  z-index: 95;
}

.cms-audit-launcher {
  position: fixed;
  z-index: 10001;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #2f9e6a;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease, opacity 0.15s ease;
}

.cms-audit-launcher:hover,
.cms-audit-launcher:focus-visible {
  background: #278a5c;
  outline: none;
}

.cms-audit-launcher.is-marks-off {
  background: #cc2647;
  opacity: 1;
}

.cms-audit-launcher.is-marks-off:hover,
.cms-audit-launcher.is-marks-off:focus-visible {
  background: #b01f3c;
}

.cms-audit-launcher i {
  font-size: 1.15rem;
  line-height: 1;
}

body.cms-audit-open .cms-audit-launcher {
  z-index: 9997;
  pointer-events: none;
}

.cms-audit-overlay {
  position: fixed;
  z-index: 9998;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.cms-audit-overlay[hidden] {
  display: none;
}

.cms-audit-panel {
  position: fixed;
  z-index: 9999;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(420px, 92vw);
  height: 100%;
  max-height: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 16, 20, 0.98);
  color: #f4f6f8;
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.35);
  font-family: Montserrat, system-ui, sans-serif;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  pointer-events: none;
}

.cms-audit-panel.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

.cms-audit-panel-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 18px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 68px;
  box-sizing: border-box;
}

.cms-audit-panel-bar h2 {
  flex: 0 1 auto;
  min-width: 0;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1.15;
  height: auto;
  text-align: center;
  width: 100%;
}

.cms-audit-panel-heading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
  max-width: calc(100% - 7.5rem);
  pointer-events: none;
}

.cms-audit-page-scope {
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  width: 100%;
}

.cms-audit-panel-bar .cms-audit-marks-toggle,
.cms-audit-panel-bar .cms-audit-panel-close {
  position: relative;
  z-index: 2;
  align-self: center;
  flex-shrink: 0;
}

.cms-audit-marks-toggle {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #f4f6f8;
  cursor: pointer;
  font: inherit;
}

.cms-audit-marks-toggle:hover,
.cms-audit-marks-toggle:focus-visible {
  outline: none;
}

.cms-audit-marks-toggle:focus-visible .cms-audit-marks-toggle-track {
  box-shadow: 0 0 0 2px rgba(244, 246, 248, 0.45);
}

.cms-audit-marks-toggle-track {
  position: relative;
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: #cc2647;
  transition: background 0.15s ease;
}

.cms-audit-marks-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f4f6f8;
  transition: transform 0.15s ease;
}

.cms-audit-marks-toggle.is-on .cms-audit-marks-toggle-track {
  background: #2f9e6a;
}

.cms-audit-marks-toggle.is-on .cms-audit-marks-toggle-thumb {
  transform: translateX(16px);
}

/* OFF: sitio limpio, panel y launcher siguen disponibles */
body.cms-audit:not(.cms-audit-marks) [data-cms-slot]:not(.cms-audit-locate),
body.cms-audit:not(.cms-audit-marks) [data-cms-field]:not(.cms-audit-locate),
body.cms-audit:not(.cms-audit-marks) .contact-form[data-cms-form-status]:not(.cms-audit-locate) {
  outline: none !important;
  box-shadow: none !important;
}

body.cms-audit:not(.cms-audit-marks) .cms-audit-cartel,
body.cms-audit:not(.cms-audit-marks) .cms-audit-form-marker {
  display: none !important;
}

body.cms-audit:not(.cms-audit-marks) .cms-audit-flash:not(.cms-audit-locate) {
  outline: none !important;
  box-shadow: none !important;
}

.cms-audit-panel h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
}

.cms-audit-panel-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #f4f6f8;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.cms-audit-panel-close:hover,
.cms-audit-panel-close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.cms-audit-panel-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 18px 20px;
  overflow-x: clip;
  overflow-y: auto;
  gap: 18px;
}

.cms-audit-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 0;
  background: rgba(12, 16, 20, 0.98);
}

.cms-audit-section:last-child {
  flex: 1 1 auto;
  min-height: 12rem;
  overflow: hidden;
  z-index: 1;
}

.cms-audit-section:last-child > .cms-audit-panel-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.cms-audit-section-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 28px 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(244, 246, 248, 0.62);
}

.cms-audit-section-title::before,
.cms-audit-section-title::after {
  content: "";
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.cms-audit-panel-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border-bottom: 0;
  flex-shrink: 0;
}

.cms-audit-summary-item {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 2px;
  align-items: center;
  justify-content: start;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #666;
}

.cms-audit-summary-item[data-status="ok"] {
  border-left-color: #2f9e6a;
}

.cms-audit-summary-item[data-status="map"] {
  border-left-color: #d4a017;
}

.cms-audit-summary-item[data-status="gap"] {
  border-left-color: #cc2647;
}

.cms-audit-summary-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #666;
  grid-column: 1;
  grid-row: 1 / span 2;
}

.cms-audit-summary-item[data-status="ok"] .cms-audit-summary-dot {
  background: #2f9e6a;
}

.cms-audit-summary-item[data-status="map"] .cms-audit-summary-dot {
  background: #d4a017;
}

.cms-audit-summary-item[data-status="gap"] .cms-audit-summary-dot {
  background: #cc2647;
}

.cms-audit-summary-count {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  letter-spacing: 0.02em;
}

.cms-audit-summary-label {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 246, 248, 0.7);
}

.cms-audit-panel-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-bottom: 0;
  flex-shrink: 0;
}

.cms-audit-panel-legend li {
  display: grid;
  grid-template-columns: 12px 2.75rem 1fr;
  gap: 10px;
  align-items: center;
  font-size: 0.78rem;
  line-height: 1.4;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cms-audit-panel-legend li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cms-audit-panel-legend li:first-child {
  padding-top: 0;
}

.cms-audit-swatch {
  width: 10px;
  height: 10px;
  margin: 0;
  border-radius: 50%;
  background: #666;
  flex-shrink: 0;
  justify-self: center;
}

.cms-audit-panel-legend li[data-status="ok"] .cms-audit-swatch {
  background: #2f9e6a;
}

.cms-audit-panel-legend li[data-status="map"] .cms-audit-swatch {
  background: #d4a017;
}

.cms-audit-panel-legend li[data-status="gap"] .cms-audit-swatch {
  background: #cc2647;
}

.cms-audit-legend-term {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  width: 2.75rem;
}

.cms-audit-legend-text {
  color: rgba(244, 246, 248, 0.78);
}

.cms-audit-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  display: grid;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  align-content: start;
  overscroll-behavior: contain;
}

.cms-audit-group {
  margin: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  z-index: 0;
}

.cms-audit-group:not([open]) {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cms-audit-group:not([open])[data-status="ok"] {
  border-left: 3px solid #2f9e6a;
}

.cms-audit-group:not([open])[data-status="map"] {
  border-left: 3px solid #d4a017;
}

.cms-audit-group:not([open])[data-status="gap"] {
  border-left: 3px solid #cc2647;
}

.cms-audit-group[open] {
  border: 0;
  border-left: 0;
  background: transparent;
}

.cms-audit-group-summary {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.cms-audit-group-summary::-webkit-details-marker {
  display: none;
}

.cms-audit-group-summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid rgba(244, 246, 248, 0.7);
  border-bottom: 2px solid rgba(244, 246, 248, 0.7);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  grid-column: 4;
  grid-row: 1;
  justify-self: end;
}

.cms-audit-group[open] > .cms-audit-group-summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.cms-audit-group-summary .cms-audit-summary-dot {
  margin-top: 0;
  grid-column: 1;
  grid-row: 1;
}

.cms-audit-group-title {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.cms-audit-group-count {
  grid-column: 3;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(244, 246, 248, 0.9);
}

.cms-audit-group[data-status="ok"] .cms-audit-summary-dot {
  background: #2f9e6a;
}

.cms-audit-group[data-status="map"] .cms-audit-summary-dot {
  background: #d4a017;
}

.cms-audit-group[data-status="gap"] .cms-audit-summary-dot {
  background: #cc2647;
}

.cms-audit-group-empty {
  margin: 0;
  padding: 8px 12px 12px;
  font-size: 0.72rem;
  color: rgba(244, 246, 248, 0.5);
}

.cms-audit-group-list {
  list-style: none;
  margin: 0;
  padding: 0 8px 8px;
  display: grid;
  gap: 8px;
}

.cms-audit-group-list li {
  padding: 10px;
  border-left: 0;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.cms-audit-group-list li:hover,
.cms-audit-group-list li:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.cms-audit-panel-head {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  font-size: 0.8rem;
}

.cms-audit-ref {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.cms-audit-panel-head code {
  font-size: 0.8rem;
  color: #fff;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cms-audit-panel-head > span:last-child {
  white-space: nowrap;
}

.cms-audit-status {
  display: inline-block;
  width: 10px;
  height: 10px;
  min-width: 10px;
  padding: 0;
  border-radius: 50%;
  background: #666;
  flex-shrink: 0;
  font-size: 0;
  line-height: 0;
  color: transparent;
  overflow: hidden;
}

.cms-audit-status[data-status="ok"] {
  background: #2f9e6a;
}

.cms-audit-status[data-status="map"] {
  background: #d4a017;
}

.cms-audit-status[data-status="gap"] {
  background: #cc2647;
}

.cms-audit-panel-src {
  margin: 4px 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(244, 246, 248, 0.88);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
}

.cms-audit-kind {
  display: inline-flex;
  padding: 1px 6px;
  border: 1px solid rgba(244, 246, 248, 0.28);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244, 246, 248, 0.78);
}

.cms-audit-panel-list li[data-kind="texto"] .cms-audit-kind,
.cms-audit-group-list li[data-kind="texto"] .cms-audit-kind {
  border-color: rgba(244, 246, 248, 0.4);
}

.cms-audit-panel-loc {
  color: rgba(244, 246, 248, 0.78);
}

.cms-audit-panel-preview {
  margin: 6px 0 0;
  padding: 6px 8px;
  border-left: 2px solid rgba(244, 246, 248, 0.22);
  font-size: 0.76rem;
  line-height: 1.35;
  color: rgba(244, 246, 248, 0.92);
  font-style: italic;
}

.cms-audit-panel-hint {
  margin: 4px 0 0;
  font-size: 0.68rem;
  line-height: 1.3;
  color: rgba(244, 246, 248, 0.55);
}

body.cms-audit .cms-audit-flash {
  outline: 2px solid #fff !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(204, 38, 71, 0.35);
}

body.cms-audit .cms-audit-locate {
  outline: 2px solid #fff !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px rgba(47, 158, 106, 0.45), 0 0 0 1px rgba(12, 16, 20, 0.8) !important;
  position: relative;
  z-index: 70;
}

body.cms-audit p.cms-audit-locate,
body.cms-audit h1.cms-audit-locate,
body.cms-audit h2.cms-audit-locate,
body.cms-audit h3.cms-audit-locate,
body.cms-audit h4.cms-audit-locate,
body.cms-audit .kicker.cms-audit-locate {
  display: inline-block;
  width: max-content;
  max-width: 100%;
}

.cms-audit-locate-ring {
  position: fixed;
  z-index: 99980;
  pointer-events: none;
  box-sizing: border-box;
  border: 2px solid #2f9e6a;
  box-shadow: 0 0 0 4px rgba(47, 158, 106, 0.4);
  border-radius: 2px;
}

.cms-audit-locate-ring[data-status="gap"] {
  border-color: #cc2647;
  box-shadow: 0 0 0 4px rgba(204, 38, 71, 0.45);
}

.cms-audit-locate-ring[data-status="map"] {
  border-color: #d4a017;
  box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.4);
}

.cms-audit-locate-ring[hidden] {
  display: none !important;
}

body.cms-audit [data-cms-status="gap"].cms-audit-locate,
body.cms-audit [data-cms-field][data-cms-status="gap"].cms-audit-locate,
body.cms-audit [data-cms-slot][data-cms-status="gap"].cms-audit-locate {
  outline: 2px solid #cc2647 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px rgba(204, 38, 71, 0.5), 0 0 0 1px rgba(12, 16, 20, 0.85) !important;
}

body.cms-audit #servicios,
body.cms-audit #equipo {
  overflow: visible;
}

body.cms-audit .cms-audit-locate > .cms-audit-cartel {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 95;
}

body.cms-audit
  .contact-form.cms-audit-locate
  > .cms-audit-form-marker
  > .cms-audit-cartel {
  opacity: 1 !important;
  visibility: visible !important;
}

body.cms-audit-open {
  overflow: hidden;
}

body.cms-audit .topbar,
body.cms-audit .topbar-inner,
body.cms-audit .topbar-actions,
body.cms-audit .site-header,
body.cms-audit .header-inner {
  overflow: visible;
}

body.cms-audit .social-float > .cms-audit-cartel {
  top: auto;
  bottom: calc(100% + 6px);
  left: auto;
  right: 0;
}

body.cms-audit .topbar .cms-audit-cartel,
body.cms-audit .site-header .cms-audit-cartel {
  top: auto;
  bottom: 4px;
  left: 4px;
}

body.cms-audit #servicios > .cms-audit-cartel {
  top: 12px;
  left: auto;
  right: 12px;
}




/* =========================================================
   Simply Law — visual system (paleta CMS: navy / oro / acento)
   ========================================================= */

.topbar {
  background: #2F6063;
  border-bottom: 1px solid color-mix(in srgb, #fff 10%, transparent);
  color: color-mix(in srgb, #fff 88%, var(--gold));
}

.topbar-menu a,
.topbar-social a {
  color: color-mix(in srgb, #fff 82%, var(--gold));
}

.topbar-menu a:hover {
  color: var(--gold);
}

.topbar-social a:hover,
.topbar-social a:focus-visible {
  background: color-mix(in srgb, #fff 24%, transparent);
  color: #fff;
  transform: translateY(-1px);
}

.site-header {
  background: var(--sl-green-band);
  backdrop-filter: none;
  border-bottom: 1px solid color-mix(in srgb, #fff 8%, transparent);
  box-shadow: none;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 28px color-mix(in srgb, var(--secundario) 40%, transparent);
  border-bottom-color: color-mix(in srgb, #fff 10%, transparent);
}

.site-header .brand-logo,
.site-header .brand [data-brand-logo] {
  filter: brightness(0) invert(1);
  max-height: 88px;
  max-width: min(438px, 48vw);
}

.site-header .brand.has-cms-logo {
  max-width: min(360px, 46vw);
}

.site-header .brand-text strong {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-header .brand-text small {
  color: color-mix(in srgb, #fff 78%, transparent);
}

.site-header .brand-mark {
  background: color-mix(in srgb, #fff 14%, transparent);
  color: #fff;
  border: 1px solid color-mix(in srgb, #fff 28%, transparent);
}

.site-nav a {
  color: color-mix(in srgb, #fff 92%, transparent);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.95rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0.55rem 0.35rem;
  margin: 0 0.75rem;
  position: relative;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
  background: transparent;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15rem;
  height: 2px;
  background: color-mix(in srgb, #fff 88%, var(--acento));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a[href="#contacto"] {
  margin-left: 0.85rem;
  padding: 0.55rem 1rem;
  border: 1px solid color-mix(in srgb, #fff 45%, transparent);
  color: #fff;
  background: transparent;
}

.site-nav a[href="#contacto"]::after {
  display: none;
}

.site-nav a[href="#contacto"]:hover,
.site-nav a[href="#contacto"].is-active {
  background: #fff;
  border-color: #fff;
  color: var(--secundario, #218187);
}

.nav-toggle {
  color: #fff;
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
    position: absolute;
    left: 50%;
    top: 100%;
    width: 100vw;
    max-width: 100vw;
    transform: translateX(-50%);
    background: var(--sl-green-band);
    border-bottom: 0;
    box-shadow: 0 12px 32px color-mix(in srgb, var(--secundario) 45%, transparent);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0.5rem 1rem 0.85rem;
  }

  .site-header.is-nav-open .site-nav {
    display: flex;
  }

  .site-nav a,
  .site-nav a + a,
  .site-nav a[href="#contacto"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.9rem 0.75rem;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    color: #fff !important;
    box-shadow: none;
    text-align: center;
  }

  .site-nav a::after,
  .site-nav a[href="#contacto"]::after {
    display: none !important;
  }

  .site-nav a:hover,
  .site-nav a.is-active,
  .site-nav a[href="#contacto"]:hover,
  .site-nav a[href="#contacto"].is-active {
    background: color-mix(in srgb, #fff 12%, transparent) !important;
    color: #fff !important;
  }

  .normas-toolbar {
    overflow: visible;
    margin-bottom: 1.15rem;
  }

  .normas-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    width: 100%;
  }

  .normas-chip {
    width: 100%;
    max-width: none;
    flex: none;
    justify-content: flex-start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.72rem;
    padding: 0.85rem 0.6rem;
  }

  .normas-section .cards-grid,
  .normas-section .cms-cards-grid {
    padding-top: 0.85rem;
  }

  .footer-grid,
  .site-footer-band .footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    width: 100%;
  }

  .footer-col,
  .footer-brand-col,
  .footer-nav-col,
  .footer-social-col {
    align-items: center;
    justify-content: center;
    justify-self: center;
    margin-left: 0;
    text-align: center;
    width: 100%;
  }

  .footer-brand-col .brand,
  .footer-brand-col .brand-footer {
    justify-content: center;
    margin-inline: auto;
  }

  .footer-links,
  .footer-social {
    justify-content: center;
  }
}

/* Hero — full-bleed, brand-first */
.hero {
  min-height: 0;
  background: transparent;
}

.hero-frame {
  min-height: min(82vh, 720px);
  border-bottom: 1px solid color-mix(in srgb, var(--primario) 12%, transparent);
}

.hero-overlay {
  background:
    linear-gradient(
      105deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.5) 48%,
      rgba(0, 0, 0, 0.72) 100%
    ),
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.35) 0%,
      transparent 18%
    );
  opacity: 1;
}

.hero-frame > .hero-overlay {
  display: none;
}

.hero-content {
  max-width: 40rem;
  padding-block: clamp(4.5rem, 12vh, 7.5rem);
  border-left: 1px solid color-mix(in srgb, #fff 20%, transparent);
  padding-left: clamp(1.25rem, 3vw, 2rem);
  animation: sl-hero-in 0.9s ease both;
}

.hero-eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-content h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.2vw, 3.85rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 14ch;
}

.hero-lead,
.hero-content .hero-lead,
.hero-content p:not(.hero-eyebrow) {
  margin-top: 1.15rem;
  color: color-mix(in srgb, #fff 78%, var(--gold));
  font-size: 1.05rem;
  max-width: 34ch;
}

.hero .btn-primary,
.hero-content .btn-primary {
  margin-top: 1.65rem;
  background: var(--gold);
  color: var(--primario);
  border: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.95rem 1.55rem;
}

.hero .btn-primary:hover,
.hero-content .btn-primary:hover {
  background: color-mix(in srgb, var(--gold) 82%, #fff);
}

@keyframes sl-hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Section heads — serif + gold rule */
.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--primario);
  line-height: 1.15;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 2px;
  margin-top: 0.85rem;
  background: var(--gold);
}

.section-head p {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

.section-head.light h2,
.servicios-band .section-head.light h2 {
  color: var(--primario);
}

.section-head.light h2::after,
.servicios-band .section-head.light h2::after {
  background: var(--gold);
}

.section-head.light p,
.servicios-band .section-head.light p {
  color: var(--muted);
}

.section-head-only.servicios-band,
.servicios-section.servicios-band {
  background-color: #ffffff;
  background-image: var(--section-paper);
  background-size: var(--sector-motif-size) var(--sector-motif-size), var(--grid-size) var(--grid-size);
  background-repeat: repeat;
}

/* Servicios — tiles pulidos (ícono + título → popup) */
.section-head-only.servicios-band,
.servicios-section.servicios-band,
.servicios-section {
  background-color: #ffffff;
  background-image: var(--section-paper);
  background-size: var(--sector-motif-size) var(--sector-motif-size), var(--grid-size) var(--grid-size);
  background-repeat: repeat;
}

.servicios-section {
  position: relative;
  padding-top: 0.25rem;
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.servicio-card.is-tile,
button.servicio-card.is-tile,
#servicios.servicios-band .servicio-card.is-tile,
#servicios.servicios-band button.servicio-card.is-tile {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center !important;
  gap: 1rem;
  width: 100%;
  height: 100%;
  min-height: 15.5rem;
  margin: 0;
  padding: 2rem 1.35rem;
  box-sizing: border-box;
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: #fff;
  background: #2f6063 !important;
  border: 1px solid color-mix(in srgb, #2f6063 80%, #000);
  border-radius: 0;
  box-shadow: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 0.55s ease,
    border-color 0.45s ease,
    box-shadow 0.55s ease,
    background 0.45s ease;
}

#servicios.servicios-band .servicio-card.is-tile::before,
#servicios.servicios-band button.servicio-card.is-tile::before,
.servicio-card.is-tile::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #218187 !important;
  opacity: 1;
  transform-origin: top center;
  transition: height 0.7s ease-in-out;
  pointer-events: none;
}

#servicios.servicios-band .servicio-card.is-tile::after,
#servicios.servicios-band button.servicio-card.is-tile::after,
.servicio-card.is-tile::after {
  content: "Ver detalle";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0.85rem;
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, #fff 88%, transparent);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.55s ease 0.12s,
    transform 0.55s ease 0.12s;
  pointer-events: none;
}

.servicio-card.is-tile:hover,
.servicio-card.is-tile:focus-visible,
#servicios.servicios-band .servicio-card.is-tile:hover,
#servicios.servicios-band .servicio-card.is-tile:focus-visible,
#servicios.servicios-band button.servicio-card.is-tile:hover,
#servicios.servicios-band button.servicio-card.is-tile:focus-visible {
  transform: translateY(-4px) !important;
  background: #2f6063 !important;
  border-color: color-mix(in srgb, #218187 55%, #2f6063) !important;
  box-shadow: 0 14px 32px color-mix(in srgb, #2f6063 22%, transparent) !important;
  outline: none;
  z-index: 2;
}

/* Misma especificidad que el ::before base (#servicios…) — si no, height:3px gana siempre */
#servicios.servicios-band .servicio-card.is-tile:hover::before,
#servicios.servicios-band .servicio-card.is-tile:focus-visible::before,
#servicios.servicios-band button.servicio-card.is-tile:hover::before,
#servicios.servicios-band button.servicio-card.is-tile:focus-visible::before,
.servicio-card.is-tile:hover::before,
.servicio-card.is-tile:focus-visible::before {
  height: 100% !important;
  background: #218187 !important;
}

#servicios.servicios-band .servicio-card.is-tile:hover::after,
#servicios.servicios-band .servicio-card.is-tile:focus-visible::after,
#servicios.servicios-band button.servicio-card.is-tile:hover::after,
#servicios.servicios-band button.servicio-card.is-tile:focus-visible::after,
.servicio-card.is-tile:hover::after,
.servicio-card.is-tile:focus-visible::after {
  opacity: 1;
  transform: none;
}

.servicio-card.is-tile .servicio-icon,
#servicios.servicios-band .servicio-card.is-tile .servicio-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin: 0;
  width: 5.75rem;
  height: 5.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, #fff 12%, transparent);
  color: #fff;
  border: 1px solid color-mix(in srgb, #fff 28%, transparent);
  font-size: 2.45rem;
  line-height: 1;
  transition:
    transform 0.55s ease,
    background 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}

.servicio-card.is-tile .servicio-icon i {
  display: block;
  line-height: 1;
  transition: transform 0.55s ease;
}

.servicio-card.is-tile:hover .servicio-icon,
.servicio-card.is-tile:focus-visible .servicio-icon {
  transform: scale(1.04);
  background: color-mix(in srgb, #fff 18%, transparent);
  border-color: color-mix(in srgb, #fff 42%, transparent);
  box-shadow: none;
  color: #fff;
}

.servicio-card.is-tile:hover .servicio-icon i,
.servicio-card.is-tile:focus-visible .servicio-icon i {
  transform: none;
}

.servicio-card.is-tile h3,
#servicios.servicios-band .servicio-card.is-tile h3,
#servicios.servicios-band .servicio-card h3 {
  position: relative;
  z-index: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  height: calc(1.35em * 4);
  min-height: calc(1.35em * 4);
  margin: 0;
  padding: 0 0.25rem;
  overflow: hidden;
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 400 !important;
  line-height: 1.35;
  letter-spacing: 0;
  color: #fff !important;
  text-transform: none;
  text-align: center;
  transition: transform 0.55s ease;
}

.servicio-card.is-tile:hover h3,
.servicio-card.is-tile:focus-visible h3 {
  transform: none;
}
@media (max-width: 900px) {
  .servicios-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 560px) {
  .servicios-grid {
    grid-template-columns: 1fr;
  }
  .servicio-card.is-tile,
  button.servicio-card.is-tile {
    min-height: 14rem;
  }
}
/* Popup — apertura suave */
html.innsite-cms-popup-open {
  overflow: hidden;
}

.innsite-cms-popup {
  background: color-mix(in srgb, var(--primario) 38%, transparent) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: sl-popup-backdrop 0.48s ease both !important;
}

.innsite-cms-popup-dialog {
  border-radius: 0 !important;
  border: 1px solid color-mix(in srgb, var(--primario) 12%, transparent) !important;
  border-top: 3px solid var(--secundario) !important;
  background: var(--surface) !important;
  box-shadow: 0 28px 64px color-mix(in srgb, var(--primario) 22%, transparent) !important;
  padding: 1.65rem 1.55rem 1.7rem !important;
  animation: sl-popup-dialog 0.55s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

.innsite-cms-popup-title {
  font-family: var(--font-display) !important;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem) !important;
  font-weight: 600 !important;
  color: var(--primario) !important;
  letter-spacing: -0.02em;
  line-height: 1.2 !important;
}

.innsite-cms-popup-close {
  color: var(--muted) !important;
  transition: color 0.2s ease, transform 0.2s ease;
}

.innsite-cms-popup-close:hover {
  color: var(--primario) !important;
  transform: scale(1.08);
}

.innsite-cms-popup-body {
  color: var(--ink) !important;
}

.innsite-cms-popup-body ul > li::before {
  background: var(--secundario) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primario) 10%, transparent) !important;
}

@media (prefers-reduced-motion: reduce) {
  .innsite-cms-popup,
  .innsite-cms-popup-dialog,
  .servicio-card.is-tile,
  .servicio-card.is-tile .servicio-icon {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes sl-popup-backdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sl-popup-dialog {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Normas — filing cards */
.normas-section {
  background-color: #2F6063;
  background-image: none;
  position: relative;
  overflow: visible;
}

section[data-cms-layout-module="titulos@normas"].normas-head,
section[data-cms-layout-module="titulos@normas"] {
  background-color: #2F6063;
  background-image: none;
  color: #ffffff;
}

section.normas-head[data-cms-layout-module="titulos@normas"] .section-head h2,
section.normas-head[data-cms-layout-module="titulos@normas"] .section-head h3,
section.normas-head[data-cms-layout-module="titulos@normas"] .section-head h4,
section.normas-head[data-cms-layout-module="titulos@normas"] .section-head h2[data-cms-field],
section.normas-head[data-cms-layout-module="titulos@normas"] [data-cms-field="Titulos.titulo"],
section[data-cms-layout-module="titulos@normas"] .section-head h2,
section[data-cms-layout-module="titulos@normas"] .section-head h3,
section[data-cms-layout-module="titulos@normas"] .section-head h4 {
  color: #ffffff !important;
}

section.normas-head[data-cms-layout-module="titulos@normas"] .section-head h2::after,
section.normas-head[data-cms-layout-module="titulos@normas"] .section-head h2::before,
section[data-cms-layout-module="titulos@normas"] .section-head h2::after,
section[data-cms-layout-module="titulos@normas"] .section-head h2::before {
  background: #ffffff;
}

section.normas-head[data-cms-layout-module="titulos@normas"] .section-head p,
section.normas-head[data-cms-layout-module="titulos@normas"] [data-cms-field="Titulos.intro"],
section[data-cms-layout-module="titulos@normas"] .section-head p {
  color: #ffffff !important;
}

.normas-head + .normas-section {
  padding-top: clamp(1.15rem, 2.2vw, 1.75rem);
}

section.normas-head .is-titulo-line-sides:not([hidden])::before,
section.normas-head .is-titulo-line-sides:not([hidden])::after,
section.normas-head .is-titulo-line-bottom:not([hidden])::after,
section.normas-head .section-head h2::after {
  background: #ffffff !important;
}

.normas-section .cards-grid,
.normas-section .cms-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
  max-width: none;
  margin: 0;
  align-items: stretch;
  background: transparent;
  padding: 0.45rem 0 0;
  overflow: visible;
}

.normas-section .cms-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  min-height: 100%;
  overflow: visible;
  background: #ffffff;
  border: 1px solid color-mix(in srgb, #fff 35%, transparent);
  border-radius: 0;
  padding: 1.65rem 3rem 1.45rem 1.5rem;
  box-shadow: 0 10px 28px color-mix(in srgb, #000 12%, transparent);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.normas-section .cms-card:last-child {
  border-bottom: 1px solid color-mix(in srgb, #fff 35%, transparent);
}

.normas-section .cms-card-actions {
  display: none !important;
}

.normas-section .cms-card-copy {
  flex: 1 1 auto;
  min-height: 0;
}

.normas-section .cms-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.normas-section .cms-card-index {
  position: absolute;
  top: 0;
  right: 1.15rem;
  z-index: 2;
  transform: translateY(-0.35rem);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  min-height: 2.55rem;
  padding: 0.45rem 0.15rem 0.55rem;
  background: var(--secundario);
  color: #ffffff;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.normas-section .cms-card-heading {
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}

.normas-section .cms-card-adjuntos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.85rem;
}

.normas-section .cms-card-adjunto.is-disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.25);
}

.normas-section .cms-card-adjunto.is-web {
  border-color: color-mix(in srgb, var(--secundario) 35%, var(--line));
  color: var(--secundario);
}

.normas-section .cms-card-adjunto.is-web:hover {
  background: color-mix(in srgb, var(--secundario) 10%, #fff);
  border-color: var(--secundario);
  color: var(--primario);
}

.normas-section .cms-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0;
  background: var(--paper-deep);
  display: grid;
  place-items: center;
}

.normas-section .cms-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.normas-section .cms-card-link {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}

.normas-section .cms-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px color-mix(in srgb, #000 16%, transparent);
}

.normas-section .cms-card-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secundario);
  text-align: left;
}

.normas-toolbar {
  margin: 0 0 1.35rem;
  overflow-x: auto;
}

.normas-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  align-items: stretch;
  width: 100%;
  justify-content: flex-start;
}

.normas-chip {
  appearance: none;
  flex: 0 1 auto;
  width: max-content;
  max-width: none;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primario);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  padding: 1.05rem 0.7rem;
  border-radius: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.normas-chip:hover {
  border-color: color-mix(in srgb, var(--secundario) 45%, var(--line));
  color: var(--secundario);
}

.normas-chip.is-active {
  background: #ffffff;
  border-color: #ffffff;
  color: #2F6063;
}

.normas-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.45rem;
  margin-left: 0;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--secundario);
  color: #ffffff;
  opacity: 1;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.normas-chip.is-active .normas-chip-count {
  background: var(--secundario);
  color: #ffffff;
  opacity: 1;
}

@media (max-width: 1024px) {
  .normas-toolbar {
    overflow: visible;
  }

  .normas-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    width: 100%;
    justify-content: stretch;
  }

  .normas-chip {
    width: 100%;
    max-width: none;
    flex: none;
    min-width: 0;
    justify-content: flex-start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
  }
}

.normas-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.normas-pager {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
}

.normas-page-ellipsis {
  min-width: 1.4rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.85;
  user-select: none;
}

.normas-page-btn {
  appearance: none;
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 0.55rem;
  border: 1px solid color-mix(in srgb, #fff 28%, transparent);
  background: transparent;
  color: #fff;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.normas-page-btn:hover:not(:disabled) {
  background: color-mix(in srgb, #fff 12%, transparent);
  border-color: #fff;
  color: #fff;
}

.normas-page-btn.is-active {
  background: #fff;
  border-color: #fff;
  color: #2f6063;
}

.normas-page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.normas-section .cms-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primario);
  letter-spacing: -0.02em;
  text-align: left;
  text-wrap: pretty;
  margin: 0;
}

.normas-section .cms-card-excerpt {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.7;
  text-align: left;
  max-width: 42rem;
}

.normas-section .cms-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.normas-section .cms-card-actions .btn-primary {
  background: var(--primario);
  color: #fff;
}

.normas-section .cms-card-actions .btn-outline {
  border-color: color-mix(in srgb, var(--gold) 70%, var(--line));
  color: var(--primario);
}

.normas-section .cms-card-actions .btn-outline:hover {
  background: var(--gold);
  color: var(--primario);
  border-color: var(--gold);
}

/* Contact */
.contact-section {
  background-color: #ffffff;
  background-image: var(--section-paper);
  background-size: var(--sector-motif-size) var(--sector-motif-size), var(--grid-size) var(--grid-size);
  background-repeat: repeat;
  border-top: none;
  box-shadow: none;
}

section[data-cms-layout-module="titulos@contacto"] {
  border-bottom: none;
  box-shadow: none;
}

section[data-cms-layout-module="titulos@contacto"] + .contact-section {
  border-top: none !important;
  margin-top: -1px;
  padding-top: 0.35rem;
}

.contact-form {
  border: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
  padding: 1.5rem;
}

.contact-form-head {
  margin: 0 0 1.15rem;
}

.contact-form-head h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--primario);
  line-height: 1.25;
}

.contact-form-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.contact-form .btn-primary {
  background: var(--sl-green-band);
  color: #ffffff;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

.contact-form .btn-primary span,
.contact-form .btn-primary [data-cms-field] {
  color: #ffffff;
}

.contact-form .btn-primary:hover {
  background: color-mix(in srgb, var(--gold) 85%, #fff);
  color: #ffffff;
}

.btn-primary {
  background: var(--sl-green-band);
  color: #fff;
  border-radius: 0;
}

.btn-primary:hover {
  background: var(--secundario);
}

.btn-outline {
  border-radius: 0;
}

/* Footer */
.site-footer-band {
  background: var(--sl-green-band);
  color: color-mix(in srgb, #fff 85%, var(--gold));
  border-top: 3px solid var(--gold);
}

.site-footer-band .brand-text strong,
.site-footer-band a {
  color: #fff;
}

.site-footer-band .footer-links a:hover {
  color: var(--gold);
}

.site-footer {
  background: var(--sl-green-band);
}

.site-footer .footer-credit {
  color: color-mix(in srgb, #fff 55%, transparent);
}

.site-footer .footer-by {
  background: color-mix(in srgb, var(--gold) 55%, transparent);
}

.site-footer [data-firma-link] {
  color: #ffffff;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .servicio-card,
  .normas-section .cms-card {
    animation: sl-rise 0.7s ease both;
  }
  .servicios-grid .servicio-card:nth-child(2),
  .normas-section .cms-card:nth-child(2) { animation-delay: 0.05s; }
  .servicios-grid .servicio-card:nth-child(3),
  .normas-section .cms-card:nth-child(3) { animation-delay: 0.1s; }
  .servicios-grid .servicio-card:nth-child(4),
  .normas-section .cms-card:nth-child(4) { animation-delay: 0.15s; }
}

@keyframes sl-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* —— Design debt (debt.html) —— */
.page-debt .debt-main > .section {
  padding-block: clamp(2.75rem, 5.5vw, 4.25rem);
}
.page-debt .debt-kicker,
.page-debt .section-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secundario, var(--primario));
}
.page-debt .debt-banner {
  background: var(--primario);
  color: rgba(255, 255, 255, 0.92);
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.5rem);
}
.page-debt .debt-banner-inner { max-width: 44rem; }
.page-debt .debt-banner .debt-kicker { color: rgba(255, 255, 255, 0.72); }
.page-debt .debt-banner-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.12;
}
.page-debt .debt-banner-lead {
  margin: 0;
  max-width: 38rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}
.page-debt .debt-banner-lead code {
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  background: rgba(255, 255, 255, 0.1);
}
.page-debt .debt-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.page-debt .btn-ghost.is-on-dark {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.page-debt .debt-section-head { margin-bottom: 2rem; }
.page-debt .debt-section-head p:last-child {
  margin: 0.65rem 0 0;
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.55;
}

.page-debt .debt-section-stats { background: #f4f7fb; }
.page-debt .cms-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.page-debt .cms-stat-card {
  background: #fff;
  padding: 1.35rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--primario) 8%, transparent);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--primario) 8%, transparent);
}
.page-debt .cms-stat-icon {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primario) 10%, white);
  color: var(--primario);
  margin-bottom: 0.65rem;
}
.page-debt .cms-stat-num {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primario);
}
.page-debt .cms-stat-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.page-debt .cms-stat-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.page-debt .debt-section-ctas { background: #fff; }
.page-debt .cms-ctas-stack { display: grid; gap: 1rem; }
.page-debt .cms-cta-band {
  background: var(--primario);
  color: rgba(255, 255, 255, 0.92);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 2rem;
  align-items: center;
}
.page-debt .cms-cta-band h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: #fff;
}
.page-debt .cms-cta-band p {
  margin: 0;
  grid-column: 1;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}
.page-debt .cms-cta-actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}
.page-debt .cms-cta-band .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--primario);
}

.page-debt .debt-section-blog-head,
.page-debt .debt-section-blog { background: #f4f7fb; }
.page-debt .cms-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.page-debt .cms-blog-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primario) 10%, transparent);
  border-radius: var(--radius-lg, 4px);
  background: #fff;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--primario) 8%, transparent);
}
.page-debt .cms-blog-media {
  display: block;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: color-mix(in srgb, var(--primario) 12%, #e8eef4);
}
.page-debt .cms-blog-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-debt .cms-blog-media.is-empty {
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--primario) 18%, #e8eef4) 0%,
      color-mix(in srgb, var(--primario) 8%, #f4f7fb) 100%
    );
}
.page-debt .cms-blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.2rem 1.35rem;
}
.page-debt .cms-blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.page-debt .cms-blog-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--primario);
}
.page-debt .cms-blog-title-link {
  color: inherit;
  text-decoration: none;
}
.page-debt .cms-blog-title-link:hover,
.page-debt .cms-blog-title-link:focus-visible {
  color: var(--secundario, var(--primario));
}
.page-debt .cms-blog-card p {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}
.page-debt .cms-blog-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primario);
  text-decoration: none;
}
.page-debt .cms-blog-more:hover,
.page-debt .cms-blog-more:focus-visible {
  color: var(--secundario, var(--primario));
}

/* Paginador blog — estándar INNSITE (chevrons + números + ellipsis) */
.cms-blog-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.75rem;
}

.cms-pager-btn {
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cms-pager-btn:hover:not(:disabled),
.cms-pager-btn:focus-visible:not(:disabled) {
  border-color: var(--primario);
  color: var(--primario);
}

.cms-pager-btn.is-active {
  background: var(--primario);
  border-color: var(--primario);
  color: #fff;
}

.cms-pager-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cms-pager-nav {
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.cms-pager-nav i {
  font-size: 0.75rem;
  line-height: 1;
}

.cms-pager-ellipsis {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 2.4rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  user-select: none;
}

.page-debt .debt-section-entradas {
  background-color: #ffffff;
  background-image: var(--section-paper);
  background-size: var(--sector-motif-size) var(--sector-motif-size), var(--grid-size) var(--grid-size);
  background-repeat: repeat;
}
.page-debt .debt-section-entradas [data-entradas-host] {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.page-debt .debt-section-bloques { background: #f4f7fb; }
.page-debt .debt-bloques-host { display: grid; gap: 1.25rem; }
.page-debt .debt-html-card {
  padding: 1.35rem 1.5rem;
  background: #fff;
  border-left: 3px solid var(--secundario, var(--primario));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primario) 6%, transparent);
}
.page-debt .debt-html-card h3 { margin: 0 0 0.55rem; color: var(--primario); }
.page-debt .debt-html-card p,
.page-debt .debt-html-card li {
  margin: 0 0 0.5rem;
  line-height: 1.55;
  color: var(--muted);
}
.page-debt .debt-html-quote {
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--primario);
  color: rgba(255, 255, 255, 0.9);
  border: 0;
}
.page-debt .debt-html-quote p {
  margin: 0 0 0.75rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.45;
  color: #fff;
}
.page-debt .debt-html-quote footer {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

.page-debt .debt-section-quotes { background: var(--primario); }
.page-debt .debt-section-portfolio { background: #f4f7fb; }
.page-debt .debt-section-carrusel {
  padding-bottom: clamp(2rem, 4vw, 3rem);
  background: #fff;
}
.page-debt .debt-section-carrusel .debt-section-head {
  margin-bottom: 1.25rem;
}

.page-debt .debt-section-areas,
.page-debt .debt-section-ecom-productos { background: #f4f7fb; }
.page-debt .debt-section-ecom-catalogo { background: #fff; }
.page-debt .debt-areas-grid,
.page-debt .cms-areas-grid,
.page-debt .debt-productos-grid,
.page-debt .cms-productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.page-debt .debt-area-card,
.page-debt .debt-producto-card {
  padding: 1.25rem 1.35rem;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--primario) 10%, transparent);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--primario) 6%, transparent);
}
.page-debt .debt-area-card h3,
.page-debt .debt-producto-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--primario);
}
.page-debt .debt-area-card p,
.page-debt .debt-producto-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}
.page-debt .debt-precio {
  margin-top: 0.75rem !important;
  font-weight: 700;
  color: var(--primario) !important;
}
.page-debt .debt-plp-ids {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.page-debt .debt-plp-ids li {
  padding: 0.35rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--primario) 15%, transparent);
  font-size: 0.85rem;
  background: #f4f7fb;
}

@media (max-width: 900px) {
  .page-debt .cms-stats-grid,
  .page-debt .cms-blog-grid {
    grid-template-columns: 1fr;
  }
  .page-debt .cms-cta-band {
    grid-template-columns: 1fr;
  }
  .page-debt .cms-cta-actions {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
  }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .page-debt .cms-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-debt .cms-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

