:root {
  --navy: #1b263b;
  --steel: #1e2e41;
  --reading-white: #f8f9fa;
  --cta: #e85d04;
  --cta-alt: #faa307;
  --gold-success: #faa307;
  --editorial-red: #9d0208;
  --mentor-green: #2d6a4f;
  --tech-cyan: #0077b6;
  --creative-purple: #5a189a;
  --transition: 380ms;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  min-width: 320px;
  background: var(--reading-white);
  color: var(--steel);
}

#scrollUp {
  right: calc(1.25rem + 3px);
  background-color: #ff3300;
  border: none;
  cursor: pointer;
}

#scrollUp:hover {
  filter: brightness(1.08);
}


.toolbar {
  background: #1e2e41;
  font-size: 0.74rem;
  overflow-x: auto;
}

.toolbar-inner {
  flex-wrap: wrap;
  row-gap: 0.45rem;
  column-gap: 0.75rem;
}

.toolbar-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1.1rem;
  row-gap: 0.35rem;
  flex: 1 1 auto;
  justify-content: flex-start;
  min-width: 0;
}

.toolbar-contact > span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.toolbar-cta {
  width: 100%;
  text-align: right;
  font-weight: 400;
}

.toolbar-cta-lead {
  font-weight: 600;
}

@media (min-width: 900px) {
  .toolbar-inner {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .toolbar-contact {
    flex: 0 1 auto;
    justify-content: flex-end;
  }

  .toolbar-cta {
    width: auto;
    margin-left: auto;
    white-space: nowrap;
  }
}

.header-row {
  min-height: 164px;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.75rem;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .header-row {
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  .header-row .brand-logo {
    flex: 0 0 auto;
  }

  .header-row .health-panel-wrap {
    flex: 1 1 100%;
    order: 3;
    min-width: 0;
  }

  .header-row > button {
    order: 2;
    margin-left: auto;
  }
}

.brand-logo {
  position: relative;
  padding-bottom: 16px;
  z-index: 2;
}

.brand-logo-img {
  height: 84px;
  position: relative;
  z-index: 2;
  transition: height var(--transition) ease;
}
.brand-logo-img.brand-logo-fallback {
  object-fit: contain;
  max-height: 4.5rem;
  max-width: 4.5rem;
  width: auto;
  height: auto;
}

.health-panel-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Evita que el panel de escritorio rompa el layout en móvil/tablet */
.header-row .health-panel-wrap {
  display: none;
}

@media (min-width: 1024px) {
  .header-row .health-panel-wrap {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
  }
}

.health-profile-note {
  margin: 0.4rem 0 0;
  padding: 0 0.15rem 0 0.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-left: auto;
  margin-right: 0;
  text-align: right;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.health-profile-note--mobile {
  margin-top: 0;
  margin-bottom: 0.15rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.health-panel {
  background: linear-gradient(125deg, #0f172a 0%, #1e293b 55%, #334155 100%);
  border: 1px solid rgba(242, 103, 34, 0.38);
  border-radius: 1rem;
  padding: 0.7rem 0.9rem;
  box-shadow: none;
}

.health-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.32);
  padding-bottom: 0.5rem;
}

.health-kpis {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.health-kpis span {
  font-size: 0.72rem;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.44);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 9999px;
  padding: 0.24rem 0.56rem;
}

.health-kpis .health-loc-menu__btn {
  font-size: 0.72rem;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.44);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 9999px;
  padding: 0.24rem 0.56rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  white-space: nowrap;
  max-width: min(100%, 11rem);
}

.health-kpis .health-loc-menu__btn:hover {
  background: rgba(15, 23, 42, 0.58);
  border-color: rgba(148, 163, 184, 0.5);
}

.health-kpis .health-loc-menu__btn:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}

.health-loc-menu__dim {
  font-weight: 600;
}

.health-loc-menu__sep {
  opacity: 0.75;
}

.health-loc-menu__value {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

.health-loc-menu__slot {
  position: relative;
}

.health-loc-menu__dropdown {
  position: absolute;
  z-index: 120;
  top: calc(100% + 0.28rem);
  left: 0;
  min-width: 11rem;
  max-width: min(18rem, 92vw);
  padding: 0.28rem;
  margin: 0;
  list-style: none;
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 0.55rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.35);
}

.health-loc-menu__opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.38rem 0.55rem;
  margin: 0;
  border: none;
  border-radius: 0.38rem;
  background: transparent;
  color: #e2e8f0;
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.3;
}

.health-loc-menu__opt:hover,
.health-loc-menu__opt:focus-visible {
  background: color-mix(in srgb, var(--cta) 18%, transparent);
  color: #fff;
  outline: none;
}

.health-kpis i {
  color: var(--cta);
  margin-right: 0.25rem;
}

.health-kpis .health-loc-menu__btn > i {
  margin-right: 0.12rem;
  flex-shrink: 0;
}

.health-panel-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin-top: 0.55rem;
  flex-wrap: nowrap;
}

.health-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(84px, 0.9fr)) minmax(330px, 2.6fr);
  gap: 0.35rem;
  flex: 1;
}

.health-field {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0.7rem;
  padding: 0.42rem 0.52rem;
  transition: border-color var(--transition) ease, box-shadow var(--transition) ease, transform var(--transition) ease;
}

.health-field:focus-within {
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(242, 103, 34, 0.22);
  transform: translateY(-1px);
}

.health-field i {
  color: var(--cta);
  font-size: 0.82rem;
}

.health-field input,
.health-field select {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.78rem;
  color: var(--navy);
  background: transparent;
}

.health-submit {
  font-size: 0.78rem;
  padding: 0.58rem 0.7rem;
  white-space: nowrap;
}

.health-submit-group {
  grid-column: span 1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.health-submit-group .health-submit {
  flex: 1 1 auto;
}

.btn-campus-virtual {
  text-decoration: none;
  min-height: 38px;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 0.72rem;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  border: 1px solid transparent;
  background: linear-gradient(100deg, #4c1d95, #6d28d9);
  box-shadow: 0 8px 18px rgba(76, 29, 149, 0.3);
  transition: transform var(--transition) ease, box-shadow var(--transition) ease, filter var(--transition) ease;
}

.btn-campus-virtual:hover,
.btn-campus-virtual:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(76, 29, 149, 0.36);
  filter: saturate(1.05);
  outline: none;
}

.health-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.health-actions .btn-primary,
.health-actions .btn-reserve {
  padding: 0.58rem 0.78rem;
  font-size: 0.78rem;
  white-space: nowrap;
}

.logo-arc {
  display: none;
  position: absolute;
  left: 50%;
  bottom: -26px;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  background: #ffffff;
  border: 6px solid #f26722;
  border-radius: 50%;
  clip-path: inset(50% 0 0 0);
  box-shadow: none;
  pointer-events: none;
  z-index: 1;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% -10%, #1e293b 0%, #0f172a 42%, #070b12 100%);
}

.preloader-aurora {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40% 45% at 20% 60%, rgba(242, 103, 34, 0.22) 0%, transparent 55%),
    radial-gradient(35% 40% at 80% 40%, rgba(255, 143, 58, 0.18) 0%, transparent 50%),
    radial-gradient(50% 50% at 50% 100%, rgba(30, 37, 45, 0.9) 0%, transparent 60%);
  animation: preloaderAurora 7s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes preloaderAurora {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.85;
  }
  100% {
    transform: translate3d(2%, -1%, 0) scale(1.06);
    opacity: 1;
  }
}

.preloader-grid {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 20%, transparent 70%);
  pointer-events: none;
}

.preloader-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 520px;
}

.preloader-brand {
  position: relative;
  display: inline-block;
  padding: 0.5rem 1.25rem 1.75rem;
}

.preloader-ring {
  position: absolute;
  inset: -8px -28px -20px;
  pointer-events: none;
}

.preloader-ring-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.preloader-ring-glow {
  position: absolute;
  inset: -40%;
  left: 50%;
  top: 50%;
  width: 180%;
  height: 180%;
  margin: -90% 0 0 -90%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(242, 103, 34, 0) 0deg,
    rgba(242, 103, 34, 0.55) 70deg,
    rgba(255, 143, 58, 0.35) 140deg,
    rgba(242, 103, 34, 0) 220deg,
    rgba(255, 143, 58, 0.45) 300deg,
    rgba(242, 103, 34, 0) 360deg
  );
  animation: preloaderRingSpin 2.8s linear infinite;
  filter: blur(18px);
  opacity: 0.75;
}

@keyframes preloaderRingSpin {
  to {
    transform: rotate(360deg);
  }
}

.loader-logo {
  position: relative;
  z-index: 2;
  font-size: clamp(1.35rem, 3.6vw, 2.05rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(
    110deg,
    #e2e8f0 0%,
    #ffffff 32%,
    #ffb389 48%,
    #ffffff 58%,
    #cbd5e1 100%
  );
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: preloaderShimmer 2.2s ease-in-out infinite;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45));
}

@keyframes preloaderShimmer {
  0% {
    background-position: 120% 50%;
  }
  100% {
    background-position: -120% 50%;
  }
}

.preloader-kicker {
  position: relative;
  z-index: 2;
  margin-top: 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.55);
  animation: preloaderKicker 1.6s ease-in-out infinite alternate;
}

@keyframes preloaderKicker {
  0% {
    opacity: 0.45;
    letter-spacing: 0.32em;
  }
  100% {
    opacity: 0.95;
    letter-spacing: 0.42em;
  }
}

.preloader-sub {
  margin-top: 1.35rem;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.72);
  letter-spacing: 0.02em;
  animation: preloaderSubFade 1.1s ease-out 0.15s both;
}

@keyframes preloaderSubFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.preloader-track {
  margin: 1.25rem auto 0;
  width: min(320px, 78vw);
  height: 3px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.preloader-progress {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f26722, #ff8f3a, #f26722);
  background-size: 200% 100%;
  animation: preloaderBarSlide 1.15s ease-in-out infinite, preloaderBarShine 1.8s linear infinite;
  box-shadow: 0 0 18px rgba(242, 103, 34, 0.55);
}

@keyframes preloaderBarSlide {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

@keyframes preloaderBarShine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.02);
  filter: blur(2px);
  transition:
    opacity 520ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 520ms step-end,
    transform 520ms cubic-bezier(0.4, 0, 0.2, 1),
    filter 520ms cubic-bezier(0.4, 0, 0.2, 1);
}

#preloader.hide .preloader-ring-glow,
#preloader.hide .preloader-progress {
  animation-play-state: paused;
}

.menu-link,
.footer-list a,
.btn-primary,
.btn-reserve,
.btn-outline,
.btn-outline-light,
.btn-campus-virtual {
  position: relative;
}

.menu-link::after,
.footer-list a::after,
.btn-primary::after,
.btn-reserve::after,
.btn-outline::after,
.btn-outline-light::after,
.btn-campus-virtual::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--cta-alt);
  transition: width var(--transition) ease;
}

.menu-link:hover::after,
.footer-list a:hover::after,
.btn-primary:hover::after,
.btn-reserve:hover::after,
.btn-outline:hover::after,
.btn-outline-light:hover::after,
.btn-campus-virtual:hover::after {
  width: 100%;
}

.btn-reserve::after {
  background: rgba(255, 255, 255, 0.55);
}

.btn-campus-virtual::after {
  background: #a855f7;
}

.menu-link {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.78rem;
  padding: 0.05rem 0;
  transition: color var(--transition) ease;
}

.menu-link:hover {
  color: var(--steel);
}

/* Contraste accesible dentro del panel oscuro del header */
.health-panel .menu-link {
  color: var(--reading-white);
}

.health-panel .menu-link:hover {
  color: var(--cta-alt);
}

.health-panel .menu-link[aria-current="page"],
.health-panel .menu-link[aria-current="page"]:hover {
  color: var(--cta-alt);
  font-weight: 800;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.mega-link {
  color: #334155;
  transition: color var(--transition) ease, transform var(--transition) ease, background-color var(--transition) ease, border-color var(--transition) ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  padding: 0.45rem 0.55rem;
}

.mega-link i {
  width: 1rem;
  color: #ff6600;
  text-align: center;
}

.mega-link:hover {
  color: #ff6600;
  background: #f8fafc;
  border-color: #e2e8f0;
  transform: translateX(4px);
}

.mega-menu {
  border: 1px solid #dbe2ea;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 24px 42px rgba(15, 23, 42, 0.2);
  transform: translateY(10px) scale(0.98);
  transform-origin: top center;
}

.mega-column-title {
  color: var(--navy);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.mega-column-subtitle {
  font-size: 0.73rem;
  color: var(--steel);
  margin-bottom: 0.5rem;
}

.mega-list {
  border-right: 1px solid #e2e8f0;
  padding-right: 0.8rem;
}

.mega-menu > .grid > div:last-child .mega-list,
.mega-menu .grid > div:last-child .mega-list {
  border-right: none;
  padding-right: 0;
}

.mega-preview {
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.mega-preview-content {
  padding: 0.65rem 0.75rem 0.8rem;
}

.mega-preview-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff6600;
}

.mega-preview-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #ff6600;
}

.mega-preview-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #ff6600;
  border: 1px solid #ff6600;
  border-radius: 0.5rem;
  padding: 0.35rem 0.6rem;
  transition: all var(--transition) ease;
}

.mega-preview-cta:hover {
  color: #ffffff;
  background: #ff6600;
}

.group:hover .mega-menu {
  transform: translateY(0) scale(1);
}

.btn-primary {
  background: linear-gradient(90deg, var(--cta), #ff8a3d);
  color: #fff;
  border-radius: 0.625rem;
  padding: 0.75rem 1.15rem;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition) ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn-reserve {
  background: linear-gradient(135deg, #2f3d4a 0%, var(--navy) 55%, #151a20 100%);
  color: #fff;
  border-radius: 0.625rem;
  padding: 0.75rem 1.15rem;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition) ease;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.btn-reserve:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.btn-outline,
.btn-outline-light {
  border: 1px solid var(--cta);
  color: var(--cta);
  border-radius: 0.625rem;
  padding: 0.72rem 1.1rem;
  font-weight: 600;
  transition: all var(--transition) ease;
}

.btn-outline:hover {
  background: var(--cta);
  color: #fff;
}

.btn-outline-light {
  border-color: #fff;
  color: #fff;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--navy);
}

.mobile-link {
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.2rem 0;
}

.mobile-link[aria-current="page"] {
  color: var(--cta);
  font-weight: 800;
}

.search-wrapper {
  position: relative;
  z-index: 30;
}

.search-toggle {
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  border: 1px solid #ff6600;
  color: #ff6600;
  transition: all var(--transition) ease;
}

.search-toggle:hover {
  border-color: #ff9900;
  color: #ff9900;
}

.search-box {
  position: absolute;
  right: 0;
  top: 115%;
  display: flex;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.6rem;
  padding: 0.45rem;
  width: min(560px, 92vw);
  transform-origin: right center;
  transform: scaleX(0);
  opacity: 0;
  pointer-events: none;
  z-index: 40;
  transition: transform var(--transition) ease, opacity var(--transition) ease;
}

.search-box.open {
  transform: scaleX(1);
  opacity: 1;
  pointer-events: auto;
}

.search-input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.55rem 0.8rem;
  min-width: 120px;
}

.search-btn {
  border: 1px solid var(--navy);
  color: var(--navy);
  border-radius: 0.5rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.85rem;
}

.search-filter {
  border-color: var(--cta);
  color: var(--cta);
}

/* Intro encima del mapa (dentro de .ad-map-wrap) */
.ad-map-wrap__intro {
  margin: 0 0 0.7rem;
  padding: 0 0.1rem;
}

.ad-map-wrap__intro--toolbar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem 1rem;
  align-items: start;
  max-width: 100%;
}

.ad-map-reset-proporcion-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-top: 0.12rem;
  padding: 0.42rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.ad-map-reset-proporcion-btn:hover {
  border-color: color-mix(in srgb, var(--cta) 55%, #cbd5e1 45%);
  color: var(--cta);
  background: #fffaf5;
  box-shadow: 0 2px 8px rgba(232, 93, 4, 0.12);
}

.ad-map-reset-proporcion-btn:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}

.ad-map-reset-proporcion-btn i {
  font-size: 0.9rem;
  line-height: 1;
}

.ad-map-wrap__intro--toolbar .ad-map-section__intro-copy {
  text-align: center;
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 640px) {
  .ad-map-wrap__intro--toolbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .ad-map-reset-proporcion-btn {
    width: 100%;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }

  .ad-map-wrap__intro--toolbar .ad-map-section__intro-copy {
    text-align: center;
  }
}

@media (min-width: 768px) {
  .ad-map-wrap__intro {
    margin-bottom: 0.85rem;
  }
}

.ad-map-wrap__intro .ad-map-section__intro-copy {
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .ad-map-wrap__intro .ad-map-section__intro-copy {
    font-size: 0.98rem;
  }
}

/* Lede sección Periódico Digital: ancho completo del contenedor, sin scroll */
.ad-map-section__intro-copy {
  margin-left: auto;
  margin-right: auto;
  max-width: none;
  line-height: 1.65;
}

.ad-map-section--tight-top {
  padding-top: calc(1.25rem + 30px);
  padding-bottom: calc(4rem + 30px - 50px);
}

@media (min-width: 768px) {
  .ad-map-section--tight-top {
    padding-top: calc(1.5rem + 30px);
    padding-bottom: calc(5rem + 30px - 50px);
  }
}

/* Fila: orejas 400×400 (o proporcional si el viewport es estrecho) + banner alineado */
.ad-map-banner-with-ads {
  --ad-banner-oreja: min(400px, 42vw);
  --ad-banner-img-h: var(--ad-banner-oreja);
  --ad-banner-foot-h: calc(0.42rem + 0.72rem * 1.25 * 2 + 0.12rem);
  --ad-banner-row-h: calc(var(--ad-banner-img-h) + var(--ad-banner-foot-h));
  /* Ancho del carril central: ratio ~3:1 respecto a la altura + 80px */
  --ad-banner-slide-w: calc(var(--ad-banner-img-h) * 3 + 80px);
  display: grid;
  grid-template-columns: min(400px, 42vw) minmax(0, 1fr) min(400px, 42vw);
  grid-template-rows: var(--ad-banner-row-h);
  grid-template-areas: "sideL banner sideR";
  gap: 0.5rem 0.55rem;
  align-items: stretch;
  margin-bottom: 0.75rem;
}

@media (min-width: 1280px) {
  .ad-map-banner-with-ads {
    --ad-banner-oreja: 400px;
    --ad-banner-img-h: 400px;
    grid-template-columns: 400px minmax(0, 1fr) 400px;
  }
}

.ad-map-banner-with-ads .ad-map-banner-slider {
  grid-area: banner;
  min-width: 0;
  min-height: 0;
  height: 100%;
  justify-self: center;
  width: 100%;
  max-width: min(100%, var(--ad-banner-slide-w, calc(var(--ad-banner-img-h) * 3 + 80px)));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.ad-map-banner-side {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ad-map-banner-side--left {
  grid-area: sideL;
}

.ad-map-banner-side--right {
  grid-area: sideR;
}

.ad-map-banner-side[hidden] {
  display: none !important;
}

.ad-map-banner-side__link {
  display: grid;
  grid-template-rows: 1fr auto 1fr var(--ad-banner-foot-h);
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  text-decoration: none;
  color: var(--navy, #1e2e41);
  border-radius: 0.75rem;
  transition:
    color var(--transition, 0.2s) ease,
    transform var(--transition, 0.2s) ease;
}

.ad-map-banner-side__frame {
  grid-row: 2;
  grid-column: 1;
  display: block;
  overflow: hidden;
  border-radius: 0.65rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
  line-height: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: min(400px, 100%);
  aspect-ratio: 1;
  height: auto;
  max-height: 400px;
}

.ad-map-banner-side__img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.ad-map-banner-side__label {
  grid-row: 4;
  grid-column: 1;
  align-self: stretch;
  width: 100%;
  height: var(--ad-banner-foot-h);
  box-sizing: border-box;
  padding: 0.15rem 0.2rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  letter-spacing: 0.01em;
}

.ad-map-banner-side__link:hover {
  color: var(--cta, #e85d04);
}

.ad-map-banner-side__link:focus-visible {
  outline: 2px solid var(--cta, #e85d04);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .ad-map-banner-with-ads {
    --ad-banner-img-h: min(28vh, 240px);
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "banner banner"
      "sideL sideR";
    gap: 0.45rem 0.5rem;
    margin-bottom: 0.55rem;
  }

  .ad-map-banner-with-ads .ad-map-banner-slider {
    max-width: 100%;
    height: auto;
  }

  .ad-map-banner-side {
    height: auto;
  }

  .ad-map-banner-side__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: none;
    height: auto;
  }

  .ad-map-banner-side__frame {
    grid-row: auto;
    grid-column: auto;
    width: min(100%, 10rem);
    aspect-ratio: 1;
    height: auto;
    max-height: min(36vw, 11rem);
    margin-inline: auto;
  }

  .ad-map-banner-side__label {
    grid-row: auto;
    grid-column: auto;
    align-self: stretch;
    height: auto;
    min-height: 0;
    max-height: none;
    margin-top: 0.35rem;
  }

  .ad-map-banner-slider__viewport {
    margin-bottom: 0;
  }

  .ad-map-banner-slider__chrome {
    flex: 0 0 auto;
    min-height: 2.1rem;
  }
}

/* Carrusel / slider encima del mapa de anunciantes */
.ad-map-banner-slider {
  position: relative;
}

.ad-map-banner-slider__viewport {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
  height: var(--ad-banner-img-h, 400px);
  width: min(100%, var(--ad-banner-slide-w, calc(var(--ad-banner-img-h, 400px) * 3 + 80px)));
  max-width: 100%;
  margin-inline: auto;
  flex-shrink: 0;
}

.ad-map-banner-slider__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.ad-map-banner-slider__slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  display: flex;
}

.ad-map-banner-slider__link {
  display: block;
  line-height: 0;
  width: 100%;
  height: 100%;
}

.ad-map-banner-slider__link:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 3px;
}

.ad-map-banner-slider__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ad-map-banner-slider__chrome {
  display: flex;
  flex: 0 0 var(--ad-banner-foot-h, 2.25rem);
  min-height: var(--ad-banner-foot-h, 2.25rem);
  max-height: var(--ad-banner-foot-h, 2.25rem);
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.15rem 0.35rem 0;
  position: static;
  pointer-events: auto;
}

.ad-map-banner-slider__chrome-hint {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  min-width: 4.5rem;
  text-align: center;
  user-select: none;
  line-height: 1.2;
}

.ad-map-banner-slider[data-ad-map-banner-multi="1"] .ad-map-banner-slider__chrome-hint {
  color: #334155;
}

.ad-map-banner-slider[data-ad-map-banner-multi="1"] .ad-map-banner-slider__chrome {
  pointer-events: auto;
}

.ad-map-banner-slider__btn {
  position: static;
  transform: none;
  flex-shrink: 0;
  z-index: 2;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  transition:
    background var(--transition) ease,
    color var(--transition) ease,
    transform var(--transition) ease;
}

.ad-map-banner-slider__btn:hover:not(:disabled) {
  background: #fff;
  color: var(--cta);
  transform: none;
}

.ad-map-banner-slider__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.ad-map-banner-slider__btn--prev,
.ad-map-banner-slider__btn--next {
  margin: 0;
}

.input-base {
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  color: #1e293b;
}

.feature-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem 1.2rem;
  box-shadow: 0 8px 24px rgba(30, 37, 45, 0.12);
  transition: transform var(--transition) ease, box-shadow var(--transition) ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(30, 37, 45, 0.22);
}

.feature-card h3 {
  margin-top: 0.6rem;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.12rem;
}

.feature-card p {
  margin-top: 0.45rem;
  font-size: 1rem;
}

.feature-icon {
  font-size: 48px;
  color: var(--cta);
}

.steady-start__card {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(130deg, #ffffff 0%, #f8fafc 55%, #eef2f7 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.steady-start__kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cta);
}

.wa-channel__kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1e293b;
  background: rgba(15, 23, 42, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 0.26rem 0.6rem;
}

.wa-channel__card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.72) 44%, rgba(241, 245, 249, 0.84) 100%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.06) 0%, rgba(242, 103, 34, 0.07) 100%);
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 14px 28px rgba(15, 23, 42, 0.08);
  transition: border-color var(--transition) ease, box-shadow var(--transition) ease, transform var(--transition) ease;
}

.wa-channel__card:hover {
  border-color: rgba(37, 211, 102, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 18px 38px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(37, 211, 102, 0.14);
  transform: translateY(-1px);
}

.wa-channel__inner {
  position: relative;
  z-index: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wa-channel__meta-row {
  display: flex;
  justify-content: center;
  margin-bottom: 0.35rem;
  width: 100%;
}

.wa-channel__inner > h2,
.wa-channel__inner > .wa-channel__lead {
  width: 100%;
  max-width: 100%;
}

.wa-channel__lead {
  color: #475569;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.wa-channel__chips {
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  padding-bottom: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 100%;
}

.wa-channel__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  min-height: 38px;
  padding: 0.35rem 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.42);
  background: rgba(255, 255, 255, 0.72);
  color: #1e293b;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all var(--transition) ease;
}

.wa-channel__chip:hover {
  border-color: rgba(37, 211, 102, 0.45);
  background: #ffffff;
  transform: translateY(-1px);
}

.wa-channel__chip i {
  color: var(--cta);
}

.wa-channel__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  max-width: min(22rem, 100%);
  margin-top: 1.75rem;
  margin-left: auto;
  margin-right: auto;
  flex-shrink: 0;
  min-height: 46px;
  padding: 0.78rem 1rem;
  border: none;
  border-radius: 0.78rem;
  text-decoration: none;
  background: linear-gradient(92deg, #128c7e 0%, #25d366 48%, #1ebe5d 100%);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    0 10px 22px rgba(18, 140, 126, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: transform var(--transition) ease, filter var(--transition) ease, box-shadow var(--transition) ease;
}

.wa-channel__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:
    0 14px 28px rgba(18, 140, 126, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.ad-map-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 0.65rem 0.75rem 0.75rem;
  background: #f8f9fa;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ad-map-canvas {
  width: 100%;
  height: var(--ad-map-canvas-h, min(calc(80vh - 132px), 828px));
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid #dbe2ea;
}

.leaflet-popup-content .ad-map-popup {
  margin: 0.15rem 0.25rem 0.35rem;
  min-width: 20rem;
  max-width: 28rem;
}

.ad-map-popup__head {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  color: var(--navy);
}

.ad-map-popup__lada {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: #475569;
}

.ad-map-popup__badge {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #c2410c;
}

.ad-map-popup__list-title {
  margin: 0.35rem 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.ad-map-popup-ads {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 18rem;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.ad-map-popup-ads__item {
  padding: 0.4rem 0;
  border-top: 1px solid #e2e8f0;
  font-size: 0.88rem;
  line-height: 1.35;
}

.ad-map-popup-ads__item:first-child {
  border-top: none;
  padding-top: 0.15rem;
}

.ad-map-popup-ads__biz {
  display: block;
  font-weight: 750;
  color: #0f172a;
}

.ad-map-popup-ads__loc {
  display: block;
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 0.12rem;
}

.ad-map-popup-ads__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.ad-map-popup-ads__site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0.32rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(37, 99, 235, 0.3);
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.ad-map-popup-ads__site-btn i {
  font-size: 0.85rem;
  line-height: 1;
}

.ad-map-popup-ads__site-btn:hover,
.ad-map-popup-ads__site-btn:focus-visible {
  border-color: #2563eb;
  background: #dbeafe;
  color: #1e40af;
  outline: none;
}

.ad-map-popup-ads__call-btn,
.ad-map-popup-ads__wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0.32rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(30, 41, 59, 0.2);
  background: #ffffff;
  color: #1e2e41;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.ad-map-popup-ads__call-btn i,
.ad-map-popup-ads__wa-btn i {
  font-size: 0.85rem;
  line-height: 1;
}

.ad-map-popup-ads__wa-btn {
  border-color: #86efac;
  background: #f0fdf4;
  color: #15803d;
}

.ad-map-popup-ads__call-btn:hover,
.ad-map-popup-ads__call-btn:focus-visible,
.ad-map-popup-ads__wa-btn:hover,
.ad-map-popup-ads__wa-btn:focus-visible {
  outline: none;
  filter: brightness(0.96);
}

.ad-map-popup-ads__btn--inactive {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.5;
  text-decoration: none;
  color: #94a3b8 !important;
  border-color: #e2e8f0 !important;
  background: #f1f5f9 !important;
  filter: none;
}

.ad-map-popup-ads__btn--inactive i {
  opacity: 0.75;
}

.ad-map-popup-ads__zoom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0.32rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(30, 41, 59, 0.2);
  background: #ffffff;
  color: #1e2e41;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.ad-map-popup-ads__zoom-btn i {
  font-size: 0.85rem;
  line-height: 1;
}

.ad-map-popup-ads__zoom-btn:hover,
.ad-map-popup-ads__zoom-btn:focus-visible {
  border-color: color-mix(in srgb, var(--cta) 60%, #1e293b);
  background: #fff8ec;
  color: #0f172a;
  outline: none;
}

.ad-map-popup-ads__empty {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

.ad-map-legend {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ad-map-layout {
  --ad-map-canvas-h: min(calc(80vh - 132px), 828px);
  /* margen superior de la leyenda + hasta ~2 filas de pastillas */
  --ad-map-legend-below: calc(0.75rem + 7.25rem);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.ad-map-mapcol {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ad-map-sidebar {
  flex: 0 0 320px;
  width: 320px;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  align-self: flex-start;
}

.ad-map-sidebar__card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 0.95rem 0.95rem 0.85rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  max-height: 100%;
  overflow: hidden;
}

.ad-map-sidebar__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.ad-map-sidebar__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--navy);
}

.ad-map-field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  min-width: 0;
}

.ad-map-field label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
}

.ad-map-select,
.ad-map-input {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #fff;
  padding: 0.6rem 0.75rem;
  font-size: 0.92rem;
  color: #0f172a;
  outline: none;
}

.ad-map-select:focus,
.ad-map-input:focus {
  border-color: color-mix(in srgb, var(--cta) 60%, #cbd5e1);
  box-shadow: 0 0 0 3px rgba(250, 163, 7, 0.2);
}

.ad-map-sidebar__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
  margin-bottom: 0.85rem;
}

.ad-map-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  font-size: 0.9rem;
  color: #334155;
  font-weight: 650;
}

.ad-map-switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--cta);
}

.ad-map-results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  min-width: 0;
  margin-bottom: 0.6rem;
}

.ad-map-results-meta #adMapViewGalleryBtn {
  max-width: 100%;
}

.ad-map-results-meta #adMapResultsCount {
  font-size: 0.82rem;
  color: #475569;
  font-weight: 700;
}

.ad-map-results {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
}

.ad-map-result-item {
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
  border-radius: 0.85rem;
  padding: 0.65rem 0.7rem;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: transform var(--transition) ease, border-color var(--transition) ease, box-shadow var(--transition) ease;
}

.ad-map-result-item--hint {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #64748b;
  background: #f8fafc;
  border-style: dashed;
  cursor: default;
}

.ad-map-result-item--hint:hover {
  transform: none;
  box-shadow: none;
}

.ad-map-result-item:hover {
  transform: translateY(-1px);
  border-color: rgba(250, 163, 7, 0.45);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.ad-map-result-item__biz {
  margin: 0 0 0.15rem;
  color: var(--navy);
  font-weight: 900;
  font-size: 0.98rem;
}

.ad-map-result-item__meta {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.35;
  min-width: 0;
}

.ad-map-result-item__row {
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
  min-width: 0;
}

.ad-map-result-item__row i {
  color: var(--cta);
  flex-shrink: 0;
  margin-top: 0.12em;
}

.ad-map-legend .ad-map-pill {
  cursor: pointer;
  border-radius: 9999px;
  border: 1px solid #d3dde9;
  appearance: none;
  -webkit-appearance: none;
}

.ad-map-legend .ad-map-pill:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}

@media (min-width: 1024px) {
  .ad-map-sidebar__card {
    max-height: calc(var(--ad-map-canvas-h) + var(--ad-map-legend-below));
  }
}

@media (max-width: 1023px) {
  .ad-map-layout {
    flex-direction: column;
  }

  .ad-map-sidebar {
    flex: 1 1 auto;
    width: 100%;
    display: block;
    max-height: none;
  }

  .ad-map-sidebar__card {
    flex: none;
    display: block;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .ad-map-results {
    flex: none;
    max-height: 260px;
    overflow: auto;
  }
}

.ad-map-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.62rem;
  border-radius: 9999px;
  background: #eef2f7;
  color: var(--steel);
  font-size: 0.74rem;
  border: 1px solid #d3dde9;
}

.ad-map-pill i {
  color: var(--cta);
}

.ad-map-pill--active {
  background: color-mix(in srgb, var(--cta) 16%, #ffffff 84%);
  border-color: color-mix(in srgb, var(--cta) 35%, #ffffff 65%);
  color: var(--navy);
  font-weight: 700;
}

.ad-map-pill--selected {
  background: color-mix(in srgb, var(--cta) 22%, #ffffff 78%);
  border-color: color-mix(in srgb, var(--cta) 50%, #ffffff 50%);
  color: var(--navy);
  font-weight: 800;
}

.ad-gallery-status {
  font-size: 0.9rem;
  color: var(--steel);
  margin: 0 0 0.425rem;
}

.ad-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.5vw, 0.9rem);
  align-items: stretch;
}

@media (min-width: 640px) {
  .ad-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .ad-gallery-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Paginación: al cambiar de página, scroll al inicio de la lista sin quedar bajo cabecera sticky */
#adGalleryGrid {
  scroll-margin-top: clamp(4.5rem, 12vw, 6.5rem);
}

.ad-gallery-pagination {
  margin-top: clamp(0.75rem, 2vw, 1.25rem);
  padding-top: clamp(0.65rem, 1.5vw, 1rem);
  border-top: 1px solid #dbe2ea;
}

.ad-gallery-pagination__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
}

.ad-gallery-pagination__cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1 1 220px;
}

.ad-gallery-pagination__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--steel);
  text-align: center;
  line-height: 1.35;
}

.ad-gallery-pagination__sep {
  opacity: 0.45;
}

.ad-gallery-pagination__pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  max-width: 100%;
}

.ad-gallery-pagination__page {
  min-width: 2.35rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--steel);
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.ad-gallery-pagination__page:hover:not(.is-active):not(:disabled) {
  border-color: var(--cta);
  color: var(--cta);
}

.ad-gallery-pagination__page.is-active {
  background: var(--cta);
  border-color: var(--cta);
  color: #fff;
  cursor: default;
}

.ad-gallery-pagination__nav {
  padding: 0.45rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.ad-gallery-pagination__nav:hover:not(:disabled) {
  border-color: var(--cta);
  box-shadow: 0 2px 8px rgba(232, 93, 4, 0.15);
}

.ad-gallery-pagination__nav:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.ad-gallery-card {
  --ad-gallery-inset: clamp(0.4rem, 1.5vw, 0.65rem);
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  min-height: 0;
  background: #ffffff;
  border: 1px solid #dbe2ea;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.09);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.ad-gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.15);
  border-color: #cdd8e6;
}

.ad-gallery-card__visual {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  background: #f4f6f9;
}

.ad-gallery-card__visual img {
  width: 100%;
  height: 100%;
  padding: var(--ad-gallery-inset);
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  background: #f4f6f9;
  display: block;
  cursor: zoom-in;
}

.ad-gallery-card__zoom {
  position: absolute;
  right: calc(var(--ad-gallery-inset) + 6px);
  bottom: calc(var(--ad-gallery-inset) + 6px);
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(27, 38, 59, 0.92);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.35);
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

.ad-gallery-card__zoom:hover {
  transform: scale(1.06);
  background: rgba(232, 93, 4, 0.95);
  border-color: rgba(255, 255, 255, 0.55);
}

.ad-gallery-card__zoom:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}

.ad-gallery-card__client {
  flex-shrink: 0;
  padding: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--navy);
  background: #f8fafc;
  border-top: 1px solid #eef2f7;
}

.ad-gallery-card__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.6rem 0.6rem 0.65rem;
  background: #f8fafc;
}

.ad-gallery-card__action {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.35rem 0.4rem;
  border-radius: 0.55rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.ad-gallery-card__action-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
}

.ad-gallery-card__action-inner i {
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.92;
}

.ad-gallery-card__action-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-gallery-card__action--site:hover,
.ad-gallery-card__action--site:focus-visible {
  border-color: #93c5fd;
  color: #1e40af;
  background: #eff6ff;
  box-shadow: 0 2px 6px rgba(30, 64, 175, 0.08);
}

.ad-gallery-card__action--call:hover,
.ad-gallery-card__action--call:focus-visible {
  border-color: #93c5fd;
  color: #1e40af;
  background: #eff6ff;
  box-shadow: 0 2px 6px rgba(30, 64, 175, 0.08);
}

.ad-gallery-card__action--wa {
  border-color: #bbf7d0;
  color: #166534;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.ad-gallery-card__action--wa .ad-gallery-card__action-inner i {
  color: #16a34a;
}

.ad-gallery-card__action--wa:hover,
.ad-gallery-card__action--wa:focus-visible {
  border-color: #4ade80;
  color: #14532d;
  background: linear-gradient(180deg, #ecfdf5 0%, #dcfce7 100%);
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.12);
}

.ad-gallery-card__action:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}

.ad-gallery-card__action--inactive,
.ad-gallery-card__action--inactive.ad-gallery-card__action--wa {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.48;
  color: #94a3b8;
  border-color: #e2e8f0;
  background: #f1f5f9;
  box-shadow: none;
}

.ad-gallery-card__action--inactive .ad-gallery-card__action-inner i {
  color: #94a3b8;
  opacity: 0.85;
}

@media (max-width: 420px) {
  .ad-gallery-card__actions {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .ad-gallery-card__action {
    min-height: 2.1rem;
    flex-direction: row;
  }

  .ad-gallery-card__action-inner {
    flex-direction: row;
    gap: 0.45rem;
  }

  .ad-gallery-card__action-label {
    white-space: normal;
    text-align: left;
    line-height: 1.25;
  }
}

.ad-gallery-card__content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 0.45rem;
}

.ad-gallery-card__footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 0.75rem 0.6rem 0.65rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid #e2e8f0;
}

.ad-gallery-card__map-wrap {
  margin: 0;
  padding: 10px 0.35rem 0;
  text-align: center;
}

.ad-gallery-card__map-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
}

.ad-gallery-card__map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.4rem 0.75rem;
  border: 1px solid #dbe2ea;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.ad-gallery-card__map-link:hover,
.ad-gallery-card__map-link:focus-visible {
  color: var(--cta);
  border-color: color-mix(in srgb, var(--cta) 45%, #dbe2ea 55%);
  background: #fffaf5;
  box-shadow: 0 2px 8px rgba(232, 93, 4, 0.12);
}

.ad-gallery-card__map-link--inactive {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.48;
  color: #94a3b8;
  border-color: #e2e8f0;
  background: #f1f5f9;
  box-shadow: none;
}

.ad-gallery-card__map-line {
  display: block;
  width: calc(100% - 1.1rem);
  max-width: 11rem;
  height: 0;
  margin: 0.5rem auto 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
}

.ad-gallery-card__meta {
  flex-shrink: 0;
  margin: 0;
  padding: 0.5rem 0.65rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--steel);
  border: 1px solid #eef2f7;
  border-radius: 0.55rem;
  background: #fafbfc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-gallery-card__copy-wa {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid #86efac;
  border-radius: 0.7rem;
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  color: #047857;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.1);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}

.ad-gallery-card__copy-wa:hover {
  background: linear-gradient(180deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border-color: #4ade80;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.16);
  transform: translateY(-1px);
}

.ad-gallery-card__copy-wa:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
}

.ad-gallery-card__copy-wa.is-copied {
  background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1d4ed8;
  border-color: #93c5fd;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.12);
}

/* Modal zoom galería de anuncios */
.ad-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2.5vw, 1.25rem);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.24s ease,
    visibility 0.24s ease;
}

.ad-gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.ad-gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.ad-gallery-lightbox__panel {
  position: relative;
  z-index: 1;
  max-width: min(97vw, 980px);
  max-height: min(94vh, 920px);
  width: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 1.15rem;
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.42);
  overflow: hidden;
  border: 1px solid #cfd8e3;
}

/** Área imagen + flechas; las flechas no deben posicionarse sobre el pie (caption). */
.ad-gallery-lightbox__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ad-gallery-lightbox__close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: none;
  background: rgba(30, 41, 59, 0.9);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.ad-gallery-lightbox__close:hover {
  background: var(--cta);
  transform: scale(1.06);
}

.ad-gallery-lightbox__figure {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #eef3f8 0%, #f8fafc 100%);
  padding: 3.4rem 1.25rem 0.95rem;
}

.ad-gallery-lightbox__nav {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.75rem;
  pointer-events: none;
}

.ad-gallery-lightbox__nav-meta {
  pointer-events: none;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  margin: 0 0.5rem;
}

.ad-gallery-lightbox__nav-btn {
  pointer-events: auto;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.ad-gallery-lightbox__nav-btn:hover {
  background: var(--cta);
  border-color: var(--cta);
  color: #fff;
  transform: translateY(-1px);
}

.ad-gallery-lightbox__nav-btn:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}

.ad-gallery-lightbox__figure img {
  max-width: 100%;
  max-height: min(62vh, 620px);
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: pointer;
  border-radius: 0.55rem;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(203, 213, 225, 0.75);
}

.ad-gallery-lightbox__placeholder {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--steel);
  font-size: 0.95rem;
  max-width: 28rem;
}

.ad-gallery-lightbox__caption {
  flex-shrink: 0;
  margin: 0 0.8rem 0.8rem;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid #dbe5f0;
  border-radius: 0.9rem;
  background: #ffffff;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ad-gallery-lightbox__caption strong {
  display: block;
  font-size: 1.12rem;
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
}

.ad-gallery-lightbox__caption > span:not(.ad-gallery-lightbox__actions) {
  display: block;
  color: var(--steel);
  font-size: 0.86rem;
  margin-top: 0.22rem;
}

.ad-gallery-lightbox__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-top: 0.65rem;
  border-top: 1px dashed #dbe5f0;
  padding-top: 0.55rem;
}

.ad-gallery-lightbox__site,
.ad-gallery-lightbox__call,
.ad-gallery-lightbox__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-sizing: border-box;
  min-height: 2.35rem;
  padding: 0.32rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
}

.ad-gallery-lightbox__site {
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
}

.ad-gallery-lightbox__site i {
  font-size: 0.88rem;
  line-height: 1;
  opacity: 0.92;
  flex-shrink: 0;
}

.ad-gallery-lightbox__site:hover,
.ad-gallery-lightbox__site:focus-visible {
  color: #1e40af;
  text-decoration: underline;
}

.ad-gallery-lightbox__call,
.ad-gallery-lightbox__wa {
  color: #1d4ed8;
  border: 1px solid rgba(30, 41, 59, 0.18);
  background: #f8fafc;
}

.ad-gallery-lightbox__call i,
.ad-gallery-lightbox__wa i {
  font-size: 0.88rem;
  line-height: 1;
  opacity: 0.92;
  flex-shrink: 0;
}

.ad-gallery-lightbox__wa {
  color: #15803d;
  border-color: #86efac;
  background: #f0fdf4;
}

.ad-gallery-lightbox__call:hover,
.ad-gallery-lightbox__call:focus-visible,
.ad-gallery-lightbox__wa:hover,
.ad-gallery-lightbox__wa:focus-visible {
  text-decoration: underline;
}

.ad-gallery-lightbox__action--inactive {
  pointer-events: none;
  cursor: not-allowed;
  text-decoration: none !important;
  color: #94a3b8 !important;
  border-color: #e2e8f0 !important;
  background: #f1f5f9 !important;
}

.ad-gallery-lightbox__action--inactive.ad-gallery-lightbox__wa {
  color: #94a3b8 !important;
  border-color: #e2e8f0 !important;
  background: #f1f5f9 !important;
}

.ad-gallery-lightbox__action--inactive i {
  opacity: 0.72;
}

@media (max-width: 639px) {
  .ad-gallery-lightbox {
    padding: 0.45rem;
  }

  .ad-gallery-lightbox__panel {
    border-radius: 0.9rem;
    max-height: 96vh;
  }

  .ad-gallery-lightbox__figure {
    padding: 2.8rem 0.6rem 0.55rem;
  }

  .ad-gallery-lightbox__nav {
    padding: 0 0.35rem;
  }

  .ad-gallery-lightbox__nav-btn {
    width: 2.55rem;
    height: 2.55rem;
    font-size: 1.55rem;
  }

  .ad-gallery-lightbox__caption {
    margin: 0 0.45rem 0.45rem;
    padding: 0.75rem 0.72rem 0.82rem;
  }

  .ad-gallery-lightbox__caption strong {
    font-size: 0.98rem;
  }

  .ad-gallery-lightbox__caption > span:not(.ad-gallery-lightbox__actions) {
    font-size: 0.8rem;
  }

  .ad-gallery-lightbox__actions {
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    white-space: normal;
  }
}

@media (min-width: 768px) {
  .wa-channel__inner {
    padding: 1.35rem 1.5rem;
  }
}

.steady-start__title {
  margin: 0.3rem 0 0.5rem;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.2;
  font-size: clamp(1.35rem, 3.4vw, 2rem);
}

.steady-start__text {
  margin: 0;
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.7;
}

.steady-start__copy {
  display: grid;
  gap: 0.75rem;
}

.steady-start__audio {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.72) 44%, rgba(241, 245, 249, 0.84) 100%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.06) 0%, rgba(242, 103, 34, 0.07) 100%);
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 14px 28px rgba(15, 23, 42, 0.08);
  transition: border-color var(--transition) ease, box-shadow var(--transition) ease, transform var(--transition) ease;
}

.steady-start__audio.is-playing {
  border-color: rgba(242, 103, 34, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 18px 38px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(242, 103, 34, 0.16);
  transform: translateY(-1px);
}

.steady-start__audio-head {
  display: flex;
  justify-content: flex-start;
}

.steady-start__audio-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1e293b;
  background: rgba(15, 23, 42, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 0.26rem 0.6rem;
}

.steady-start__audio-meta i {
  color: var(--cta);
}

.steady-start__audio-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: none;
  border-radius: 0.78rem;
  background: linear-gradient(92deg, #f26722 0%, #ff8f3a 45%, #ff6a00 100%);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.01em;
  min-height: 46px;
  width: 100%;
  padding: 0.78rem 1rem;
  box-shadow:
    0 10px 22px rgba(242, 103, 34, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: transform var(--transition) ease, filter var(--transition) ease, box-shadow var(--transition) ease;
}

.steady-start__audio-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow:
    0 14px 28px rgba(242, 103, 34, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.steady-start__audio-btn.is-playing {
  background: linear-gradient(92deg, #0f172a 0%, #1e293b 58%, #334155 100%);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.steady-start__audio-btn.is-disabled {
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
}

.steady-start__eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.26rem;
  height: 20px;
}

.steady-start__controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.steady-start__ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  text-decoration: none;
  min-height: 38px;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.42);
  background: rgba(255, 255, 255, 0.72);
  color: #1e293b;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition) ease;
}

.steady-start__ctrl-btn i {
  color: var(--cta);
}

.steady-start__ctrl-btn:hover {
  border-color: rgba(242, 103, 34, 0.45);
  background: #ffffff;
  transform: translateY(-1px);
}

.steady-start__ctrl-btn.is-active {
  border-color: rgba(242, 103, 34, 0.5);
  background: rgba(242, 103, 34, 0.12);
}

.steady-start__ctrl-btn--download {
  border-color: rgba(30, 41, 59, 0.32);
  color: #0f172a;
}

@media (min-width: 900px) {
  .steady-start__controls {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.steady-start__eq span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8f3a 0%, #f26722 100%);
  opacity: 0.36;
  transform-origin: bottom center;
}

.steady-start__audio.is-playing .steady-start__eq span {
  animation: steadyEq 760ms ease-in-out infinite;
  opacity: 0.95;
}

.steady-start__audio.is-playing .steady-start__eq span:nth-child(2) { animation-delay: 80ms; }
.steady-start__audio.is-playing .steady-start__eq span:nth-child(3) { animation-delay: 160ms; }
.steady-start__audio.is-playing .steady-start__eq span:nth-child(4) { animation-delay: 60ms; }
.steady-start__audio.is-playing .steady-start__eq span:nth-child(5) { animation-delay: 140ms; }
.steady-start__audio.is-playing .steady-start__eq span:nth-child(6) { animation-delay: 220ms; }

@keyframes steadyEq {
  0%, 100% { transform: scaleY(0.55); }
  40% { transform: scaleY(1.65); }
  70% { transform: scaleY(0.95); }
}

.steady-start__audio-status {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
  color: #475569;
}

.steady-start__timeline {
  display: grid;
  gap: 0.35rem;
}

.steady-start__seek {
  width: 100%;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f26722 var(--seek, 0%), #dbe2ea var(--seek, 0%));
  outline: none;
  cursor: pointer;
}

.steady-start__seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #f26722;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
}

.steady-start__seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #f26722;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
}

.steady-start__times {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #64748b;
}

@media (min-width: 900px) {
  .steady-start__card {
    grid-template-columns: 1.5fr 0.9fr;
    align-items: center;
    padding: 1.55rem;
  }
}

.service-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform var(--transition) ease, box-shadow var(--transition) ease;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.service-card:hover {
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.24);
}

.service-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.service-card .p-5 {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.service-card__top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
}

.service-card__top .service-icon {
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.12rem;
}

.service-card h3 {
  margin-top: 0.45rem;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .service-card h3 {
    font-size: 1rem;
  }
}

.service-card__copy {
  font-size: 0.75rem;
  line-height: 1.45;
}

.service-card__copy p {
  margin-top: 0.3rem;
}

@media (min-width: 768px) {
  .service-card__copy {
    font-size: 0.8125rem;
  }
}

.service-icon {
  font-size: 24px;
  color: var(--cta);
  transition: transform var(--transition) ease, color var(--transition) ease;
}

.service-card:hover .service-icon {
  color: var(--cta-alt);
  transform: translateY(-5px);
}

/* Viñetas visibles dentro de tarjetas (overflow:hidden recorta outside; Tailwind list-* puede no estar en build) */
.service-card__bullet-list {
  margin: 0.35rem 0 0;
  padding: 0 0 0 1rem;
  list-style-type: disc;
  list-style-position: inside;
}

.service-card__bullet-list li {
  margin-top: 0.3rem;
  line-height: 1.45;
}

.service-card__bullet-list li::marker {
  color: var(--cta);
}

.service-card__actions {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.service-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  text-align: right;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  transition:
    background var(--transition) ease,
    color var(--transition) ease,
    border-color var(--transition) ease,
    transform var(--transition) ease,
    box-shadow var(--transition) ease;
}

.service-card__btn--wa {
  background: #25d366;
  border-color: #1ebe5d;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.service-card__btn--wa:hover {
  background: #1fa855;
  border-color: #178a47;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45);
}

.service-card__btn--wa:focus-visible {
  outline: 2px solid #25d366;
  outline-offset: 2px;
}

.service-card__btn-note {
  font-weight: 600;
  font-size: 0.72em;
  opacity: 0.95;
}

.service-card__btn--academy {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: right;
  background: #fff;
  border-color: rgba(30, 46, 65, 0.2);
  color: var(--navy);
}

.service-card__btn--academy > i {
  flex-shrink: 0;
  margin-top: 0.08em;
  font-size: 1.05em;
  color: var(--cta);
}

.service-card__btn--academy:hover {
  border-color: var(--cta);
  color: var(--cta);
  background: #fffaf5;
}

.service-card__btn--academy:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}

/* Canales de ventas (#servicios): misma altura por fila en la cuadrícula */
@media (min-width: 640px) {
  #servicios .services-grid {
    align-items: stretch;
  }

  #servicios .services-grid > .service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }

  #servicios .service-card > img {
    flex-shrink: 0;
  }

  #servicios .service-card .p-5 {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  #servicios .service-card__copy {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
}

.parallax-strip {
  position: relative;
  background-image: url("assets/foto-011.png");
  background-size: cover;
  background-position: center 84%;
  background-attachment: fixed;
}

.parallax-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Degradado con máximo más abajo: la “máscara” acompaña al encuadre bajado */
  background: linear-gradient(
    to bottom,
    rgba(10, 29, 55, 0.32) 0%,
    rgba(10, 29, 55, 0.4) 22%,
    rgba(10, 29, 55, 0.5) 42%,
    rgba(10, 29, 55, 0.7) 58%,
    rgba(10, 29, 55, 0.78) 78%,
    rgba(10, 29, 55, 0.72) 100%
  );
}

.parallax-strip > * {
  position: relative;
  z-index: 1;
}

/* Sección Planes: calendario + acordeones */
.section-planes .plan-basico-title {
  margin: 0;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .section-planes .plan-basico-title {
    font-size: 1.5rem;
  }
}

.section-planes .plan-basico-sub {
  margin: 0.4rem 0 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--steel);
}

.plan-basico-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .plan-basico-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 1.75rem 2rem;
  }
}

.plan-cal-card {
  position: relative;
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 1.1rem;
  background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  overflow: hidden;
}

.plan-cal-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--cta) 100%);
  border-radius: 0 0.5rem 0 0.35rem;
  pointer-events: none;
}

.plan-cal-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-bottom: 0.4rem;
}

.plan-cal-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.plan-cal-card__meta {
  margin: 0;
  font-size: 0.78rem;
  text-transform: capitalize;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.plan-cal-card__lead {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #64748b;
}

.plan-cal-weekname-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.4rem;
  text-align: center;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.plan-cal-weeks {
  margin-bottom: 0.85rem;
}

.plan-cal-weeks--grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  gap: 0.45rem 0.4rem;
  align-content: start;
}

button.plan-day {
  min-height: 4.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.2rem 0.28rem;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  cursor: pointer;
  text-align: center;
  color: #0f172a;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 400px) {
  button.plan-day {
    min-height: 4.8rem;
    padding: 0.4rem 0.25rem 0.3rem;
  }
}

button.plan-day:hover,
button.plan-day:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(242, 103, 34, 0.55);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
  outline: none;
}

button.plan-day:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}

button.plan-day[aria-selected="true"] {
  background: linear-gradient(145deg, var(--navy) 0%, #0f1620 100%);
  border-color: var(--navy);
  color: #f8fafc;
  box-shadow: 0 8px 22px rgba(10, 29, 55, 0.35);
}

button.plan-day[aria-selected="true"] .plan-day__tag,
button.plan-day[aria-selected="true"] .plan-day__sub {
  color: rgba(248, 250, 252, 0.9);
}

.plan-day__n {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 0.1rem;
}

button.plan-day[aria-selected="true"] .plan-day__n {
  color: #fff;
}

.plan-day__time {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--cta);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0 0 0.15rem;
}

button.plan-day[aria-selected="true"] .plan-day__time {
  color: #fbbf7a;
}

.plan-day__tag {
  display: -webkit-box;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.1;
  color: #64748b;
  max-width: 100%;
  padding: 0 0.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  hyphens: auto;
}

.plan-day__sub {
  display: block;
  font-size: 0.52rem;
  line-height: 1.1;
  color: #94a3b8;
  margin-top: 0.12rem;
}

button.plan-day[aria-selected="true"] .plan-day__sub {
  color: rgba(255, 255, 255, 0.65);
}

.plan-cal-focus {
  margin: 0 0 0.5rem;
  min-height: 2.4rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #334155;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.55rem;
}

@media (min-width: 480px) {
  .plan-cal-focus {
    font-size: 0.85rem;
  }
}

.plan-cal-legend {
  margin: 0;
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.plan-cal-legend__dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy), var(--cta));
  flex-shrink: 0;
}

.plan-basico-phases {
  min-width: 0;
  padding: 0.25rem 0.15rem 0.15rem;
}

@media (min-width: 1024px) {
  .plan-basico-phases {
    max-height: min(78vh, 52rem);
    overflow: auto;
    padding-right: 0.2rem;
    scroll-behavior: smooth;
  }
}

.plan-basico-phases__kicker {
  margin: 0 0 0.6rem 0.2rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.plan-basico-acc {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

details.plan-basico-acc__item {
  position: relative;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.2s ease;
}

details.plan-basico-acc__item:hover {
  border-color: rgba(242, 103, 34, 0.2);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.09);
}

details.plan-basico-acc__item[open] {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
  border-color: rgba(10, 29, 55, 0.18);
}

details.plan-basico-acc__item > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.95rem 0.7rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  user-select: none;
  background: linear-gradient(90deg, #f8fafc 0%, #fff 100%);
}

details.plan-basico-acc__item[open] > summary {
  border-bottom: 1px solid #f1f5f9;
}

details.plan-basico-acc__item > summary::-webkit-details-marker {
  display: none;
}

details.plan-basico-acc__item > summary::after {
  content: "›";
  font-size: 1.15rem;
  line-height: 0;
  color: #94a3b8;
  margin-left: 0.1rem;
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.2s ease;
}

details.plan-basico-acc__item[open] > summary::after {
  transform: rotate(90deg);
  color: var(--cta);
}

.plan-basico-acc__body {
  padding: 0.6rem 1rem 0.9rem 1.05rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #334155;
}

@media (min-width: 640px) {
  details.plan-basico-acc__item > summary {
    font-size: 0.9rem;
    padding: 0.75rem 1rem 0.75rem 0.95rem;
  }
  .plan-basico-acc__body {
    font-size: 0.9rem;
  }
}

.plan-basico-acc__body p {
  margin: 0 0 0.55rem;
}

.plan-basico-acc__body p:last-child {
  margin-bottom: 0;
}

.plan-basico-lead--card {
  margin-bottom: 0.6rem;
  padding: 0.45rem 0.55rem;
  background: #fff7ed;
  border-radius: 0.4rem;
  border-left: 3px solid var(--cta);
  color: #431407;
  font-size: 0.88em;
  line-height: 1.5;
}

.plan-basico-exercise--card {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed #e2e8f0;
}

.plan-basico-exercise--card:first-of-type {
  margin-top: 0.25rem;
  border-top: none;
  padding-top: 0;
}

.plan-basico-h4 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

@media (min-width: 640px) {
  .plan-basico-h4 {
    font-size: 1rem;
  }
}

/* Vídeo + columna derecha con persiana (beneficios por edad) */
.age-benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .age-benefits__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 2rem 2.25rem;
    align-items: start;
  }

  .age-benefits__media {
    position: sticky;
    top: 5.5rem;
    align-self: start;
  }
}

.age-benefits__video-wrap {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.age-benefits__video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 480px);
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.age-benefits__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.age-benefits__header {
  margin-bottom: 1rem;
}

.age-persiana {
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  box-shadow: 0 4px 22px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.age-persiana__item + .age-persiana__item {
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.age-persiana__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
  text-align: left;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  font: inherit;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}

@media (min-width: 768px) {
  .age-persiana__trigger {
    padding: 0.8rem 1.1rem;
    font-size: 0.95rem;
  }
}

.age-persiana__trigger:hover {
  background: #e2e8f0;
}

.age-persiana__item.is-open .age-persiana__trigger {
  background: var(--navy);
  color: #fff;
}

.age-persiana__item.is-open .age-persiana__n {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.age-persiana__trigger:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: -2px;
  z-index: 1;
  position: relative;
}

.age-persiana__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.35rem;
  background: rgba(15, 23, 42, 0.1);
  font-size: 0.72rem;
  font-weight: 800;
  color: #0f172a;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.age-persiana__label {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.age-persiana__chev {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  color: currentColor;
  opacity: 0.85;
  transition: transform 0.3s ease;
  font-size: 0.75rem;
}

.age-persiana__item.is-open .age-persiana__chev {
  transform: rotate(180deg);
}

.age-persiana__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.age-persiana__item.is-open .age-persiana__body {
  grid-template-rows: 1fr;
}

.age-persiana__body-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 1rem 0;
}

.age-persiana__item.is-open .age-persiana__body-inner {
  padding: 0.9rem 1.1rem 1.1rem;
  background: #fff;
}

@media (min-width: 768px) {
  .age-persiana__item.is-open .age-persiana__body-inner {
    padding: 1rem 1.2rem 1.2rem;
  }
}

.age-panel__h {
  margin: 0 0 0.65rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

@media (min-width: 768px) {
  .age-panel__h {
    font-size: 1.1rem;
  }
}

.age-panel__p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #334155;
}

.panel-placeholder {
  margin: 0.75rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  background: rgba(255, 255, 255, 0.6);
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

.counter {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
}

.testimonial-wrap {
  width: 100%;
}

.testimonial-track {
  display: flex;
  transition: transform 420ms ease;
}

.testimonial-card {
  min-width: 100%;
  background: #f8fafc;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.testimonial-card p {
  font-size: 1rem;
}

.stars {
  margin-top: 0.8rem;
  color: #f59e0b;
}

.testimonial-card h4 {
  margin-top: 0.7rem;
  font-weight: 700;
  color: var(--navy);
}

.footer-main {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  column-gap: 1.75rem;
  row-gap: 1.25rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  flex: 1 1 200px;
  min-width: min(100%, 10rem);
  max-width: 22rem;
}

.footer-logo {
  max-height: 72px;
  width: auto;
  max-width: min(240px, 100%);
  height: auto;
  object-fit: contain;
  margin: 0;
  display: block;
  flex: 0 0 auto;
}

.footer-lede {
  margin: 0;
  line-height: 1.5;
  color: var(--reading-white);
  width: 100%;
  padding-left: 1.1rem;
  border-left: 2px solid rgba(65, 90, 119, 0.7);
}

.footer-segment {
  flex: 1 1 180px;
  min-width: 0;
}

.footer-segment--subscribe {
  flex: 1.2 1 220px;
}

.footer-segment--main {
  flex: 0 1 150px;
  min-width: min(100%, 8.5rem);
  max-width: 12rem;
}

.footer-segment--contact {
  flex: 0 1 200px;
  min-width: min(100%, 11rem);
  max-width: 16rem;
}

.footer-segment--nav {
  flex: 2 1 300px;
  min-width: min(100%, 240px);
}

.footer-nav-cols {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem 0;
}

.footer-mega-col {
  flex: 1 1 150px;
  min-width: 0;
}

.footer-nav-divider {
  display: none;
  width: 1px;
  flex: 0 0 1px;
  margin: 0 0.5rem;
  min-height: 5.5rem;
  background: rgba(148, 163, 184, 0.35);
  align-self: stretch;
}

@media (min-width: 640px) {
  .footer-nav-cols {
    flex-wrap: nowrap;
    gap: 0 0.25rem;
  }

  .footer-nav-divider {
    display: block;
  }
}

@media (max-width: 639px) {
  .footer-mega-col:first-of-type {
    width: 100%;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  }
}

.footer-mega-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--reading-white);
  margin: 0 0 0.2rem;
  line-height: 1.2;
}

.footer-mega-sub {
  font-size: 0.65rem;
  line-height: 1.35;
  color: var(--steel);
  margin: 0 0 0.6rem;
}

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

.footer-mega-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--reading-white);
  line-height: 1.35;
  font-size: 0.72rem;
  transition: color var(--transition) ease;
}

.footer-mega-link i {
  width: 1.15rem;
  text-align: center;
  color: var(--cta);
  flex-shrink: 0;
  font-size: 0.8rem;
}

.footer-mega-link:hover {
  color: #fff;
}

.footer-mega-link:hover i {
  color: var(--cta-alt);
}

.footer-mega-link[aria-current="page"] {
  color: #fff;
  font-weight: 700;
}

.footer-mega-link[aria-current="page"] i {
  color: var(--cta-alt);
}

.footer-title {
  color: #ffb389;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin: 0 0 0.4rem;
  white-space: nowrap;
}

.subscription-email-input {
  outline: 1px solid #ff3300;
  outline-offset: 0;
}

.subscription-email-input:focus,
.subscription-email-input:focus-visible {
  outline: 2px solid #ff3300;
  outline-offset: 0;
}

.footer-list {
  list-style: disc;
  list-style-position: outside;
  padding-left: 1.1rem;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-list li::marker {
  color: #ffb389;
}

.footer-subscribe-form {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
}

.footer-subscribe-form .subscription-email-input {
  flex: 1 1 120px;
  min-width: 0;
  width: auto;
}

.footer-subscribe-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding-left: 1rem;
  padding-right: 1rem;
}

.footer-list a {
  color: var(--reading-white);
  transition: color var(--transition) ease;
}

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

.social-gadget {
  position: fixed;
  right: 5px;
  left: auto;
  top: 46%;
  z-index: 50;
  display: flex;
  align-items: center;
  transform: translateX(77%);
  translate: 0 -50%;
  transition: transform var(--transition) ease;
}

.social-gadget.open {
  transform: translateX(0);
}

#socialToggle.gadget-trigger {
  background-color: #ff3300;
  border: none;
  cursor: pointer;
  transition:
    background-color var(--transition) ease,
    filter var(--transition) ease;
}

#socialToggle.gadget-trigger i {
  color: #fff !important;
}

#socialToggle.gadget-trigger:hover {
  filter: brightness(1.08);
}

.gadget-panel .social-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  color: var(--cta);
  border: 1px solid #ffd9c8;
  transition: all var(--transition) ease;
}

.gadget-panel {
  margin-right: -5px;
  padding-right: calc(0.75rem + 5px);
}

.gadget-panel .social-link:hover {
  background: var(--cta);
  color: #fff;
}

.msg {
  max-width: 85%;
  font-size: 0.86rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid #e6d8c3;
}

.bot-msg {
  background: #ffffff;
  color: #1f2937;
}

.user-msg {
  margin-left: auto;
  background: #dcf8c6;
  border-color: #bfe8a8;
  color: #0f2a1f;
}

.quick-reply {
  font-size: 0.73rem;
  background: #f2e8d8;
  border: 1px solid #ddccb3;
  color: #4b5563;
  border-radius: 9999px;
  padding: 0.28rem 0.6rem;
  transition: background var(--transition) ease, color var(--transition) ease;
}

.quick-reply:hover {
  background: #25d366;
  color: #ffffff;
}

/* WhatsApp widget palette (independent from Tailwind arbitrary classes) */
#botToggle {
  background: #25d366;
  color: #ffffff;
  border-color: #efe4d2;
}

#botToggle:hover {
  background: #1fa855;
}

#botPanel {
  background: #fffaf2;
  border-color: #e9dcc8;
}

#botPanel > div:first-child {
  background: #128c7e;
  color: #ffffff;
}

#chatWindow {
  background: #f6eee0;
}

/* FAQ en el panel del gadget WhatsApp */
.wa-faq {
  padding: 0.55rem 0.75rem 0.65rem;
  background: linear-gradient(180deg, #fffaf2 0%, #f6eee0 100%);
  border-bottom: 1px solid #e3d4be;
  max-height: 11.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.wa-faq__kicker {
  margin: 0 0 0.4rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0f6b62;
}

.wa-faq__item {
  border: 1px solid #e3d4be;
  border-radius: 0.5rem;
  background: #fff;
  margin-bottom: 0.35rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.wa-faq__item:last-child {
  margin-bottom: 0;
}

.wa-faq__q {
  list-style: none;
  cursor: pointer;
  padding: 0.4rem 0.5rem 0.4rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
  color: #0f172a;
  user-select: none;
  position: relative;
  padding-right: 1.15rem;
}

.wa-faq__q::-webkit-details-marker {
  display: none;
}

.wa-faq__q::after {
  content: "›";
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 0.85rem;
  color: #128c7e;
  line-height: 0;
  transition: transform 0.2s ease;
}

.wa-faq__item[open] .wa-faq__q::after {
  transform: translateY(-50%) rotate(90deg);
}

.wa-faq__a {
  margin: 0;
  padding: 0 0.5rem 0.5rem 0.45rem;
  font-size: 0.65rem;
  line-height: 1.45;
  color: #475569;
  border-top: 1px dashed #e3d4be;
  padding-top: 0.4rem;
}

#chatInput {
  background: #ffffff;
  border-color: #ddceb7;
  min-width: 0;
  width: 100%;
}

#chatSend {
  background: #25d366;
  color: #ffffff;
  white-space: nowrap;
  flex: 0 0 auto;
}

#chatSend:hover {
  background: #1fa855;
}

.wa-human-link {
  display: flex;
  width: 100%;
  justify-content: center;
  text-align: center;
  line-height: 1.35;
}

.chat-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
}

@media (max-width: 639px) {
  .chat-input-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  #chatSend {
    width: 100%;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .chat-quick-row {
    flex-wrap: wrap;
  }
}

#mainHeader.shrink {
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  background: var(--reading-white);
}

#mainHeader {
  position: relative;
  background: var(--reading-white) !important;
  border-bottom: 5px solid var(--steel);
}

#mainHeader::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -15px;
  height: 15px;
  background: var(--steel);
  z-index: 1;
  pointer-events: none;
}

footer#contacto {
  background: var(--navy);
  color: var(--reading-white);
}

#mainHeader.shrink .header-row {
  min-height: 130px;
}

#mainHeader.shrink .brand-logo-img {
  height: 63px;
}

#mainHeader.shrink .logo-arc {
  width: 192px;
  height: 192px;
  bottom: -22px;
}

/* Mobile First size rules */
@media (max-width: 639px) {
  p,
  li,
  a,
  input,
  button {
    font-size: 16px;
  }

  .toolbar,
  .toolbar p,
  .toolbar span {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .btn-primary,
  .btn-reserve,
  .btn-outline,
  .btn-outline-light {
    min-height: 44px;
  }

  .toolbar p {
    width: auto;
  }

  .search-box {
    top: 110%;
    right: 0;
    left: auto;
    max-width: min(560px, calc(100vw - 1.25rem));
    width: min(560px, calc(100vw - 1.25rem));
  }

  .parallax-strip {
    background-attachment: scroll;
  }

  .header-row {
    min-height: 138px;
  }

  .brand-logo-img {
    height: 68px;
  }

  .logo-arc {
    width: 198px;
    height: 198px;
    bottom: -24px;
  }
}

/* Responsive hardening: prevent horizontal overflow and rigid blocks */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

main,
section,
header,
footer {
  width: 100%;
  max-width: 100%;
}

.health-form,
.health-actions,
.search-box,
.gadget-panel,
#botPanel,
.footer-main,
.footer-nav-cols {
  min-width: 0;
}

@media (max-width: 1023px) {
  .header-row {
    min-height: auto;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .brand-logo {
    padding-bottom: 10px;
  }

  .brand-logo-img {
    height: clamp(43px, 8.5vw, 65px);
    max-width: 100%;
    object-fit: contain;
  }

  .logo-arc {
    width: clamp(130px, 34vw, 188px);
    height: clamp(130px, 34vw, 188px);
    bottom: -18px;
  }

  #mainHeader.shrink .header-row {
    min-height: auto;
  }

  #mainHeader.shrink .brand-logo-img {
    height: clamp(39px, 7.5vw, 56px);
  }

  #mainHeader.shrink .logo-arc {
    width: clamp(122px, 32vw, 170px);
    height: clamp(122px, 32vw, 170px);
    bottom: -16px;
  }

  .health-profile-note,
  .health-profile-note--mobile {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .health-panel-bottom {
    flex-wrap: wrap;
  }

  .health-form {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .health-submit-group {
    grid-column: span 2;
    width: 100%;
  }

  .health-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .search-box {
    flex-wrap: wrap;
    width: min(560px, calc(100vw - 1rem));
  }

  .search-input {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 767px) {
  #mainHeader {
    border-bottom-width: 3px;
  }

  #mainHeader::after {
    bottom: -9px;
    height: 9px;
  }

  .header-row {
    min-height: auto;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.6rem;
  }

  .brand-logo {
    padding-bottom: 0;
  }

  .brand-logo-img {
    height: clamp(32px, 10vw, 43px);
  }

  .logo-arc {
    display: none;
  }

  #mobileMenuBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #dbe2ea;
    background: #ffffff;
    color: #1e252d;
  }

  #mobileMenu {
    margin-top: 0.35rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 0.8rem;
  }

  .toolbar {
    overflow-x: hidden;
  }

  .toolbar-inner {
    width: 94%;
  }

  .toolbar-contact > span {
    flex-shrink: 1;
    min-width: 0;
  }

  .toolbar-cta {
    text-align: left;
  }

  .health-actions .btn-primary,
  .health-actions .btn-reserve {
    width: 100%;
  }

  .health-panel-top {
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }

  .footer-main {
    row-gap: 1rem;
  }

  .footer-segment--main,
  .footer-segment--contact,
  .footer-segment--nav,
  .footer-segment--subscribe {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .footer-nav-cols {
    flex-wrap: wrap;
    gap: 0.85rem;
  }

  .footer-nav-divider {
    display: none;
  }

  .footer-title {
    white-space: normal;
  }
}

@media (max-width: 639px) {
  #socialGadget.social-gadget {
    top: auto;
    bottom: calc(14.5rem + 125px);
    right: 0;
    translate: 0 0;
    transform: translateX(79%);
  }

  #socialGadget.social-gadget.open {
    transform: translateX(0);
  }

  #scrollUp {
    bottom: 5.6rem;
    right: 0.85rem;
  }

  #whatsappBot {
    right: 0.8rem;
    bottom: 0.8rem;
  }

  #botPanel {
    width: min(320px, calc(100vw - 1rem));
  }
}

/* Tablet: 2 columns for service grid */
@media (min-width: 641px) and (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1025px) and (max-width: 1390px) {
  .health-kpis {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1380px) {
  .health-panel {
    padding: 0.55rem 0.65rem;
  }

  .health-panel-top {
    border-bottom: none;
    padding-bottom: 0.2rem;
  }

  .health-kpis {
    display: none;
  }

  .health-panel-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    margin-top: 0.2rem;
  }

  .health-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .health-submit {
    grid-column: span 3;
  }

  .health-submit-group {
    grid-column: span 3;
  }

  .health-actions {
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }
}

/* Desktop megamenu behavior */
@media (min-width: 1025px) {
  .mega-menu {
    width: min(78vw, 980px);
    max-height: min(72vh, 680px);
    overflow-y: auto;
    z-index: 9999;
  }
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #dde4ef;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--cta), #ff8f3a);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--cta-alt), var(--cta));
}

/* —— Páginas internas (categorías y programas) —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 200;
  padding: 0.5rem 0.75rem;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  border-radius: 0.35rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}
.skip-link:focus {
  left: 0.5rem;
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}
.page-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.page-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.75rem 0;
}

.page-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
}

.page-topbar__brand img {
  height: 2.2rem;
  width: auto;
  object-fit: contain;
}

.page-topbar__logo--mark {
  height: 2rem;
  width: 2rem;
  flex-shrink: 0;
}

.page-topbar__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.88rem;
}

.page-topbar__nav a {
  color: #475569;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-topbar__nav a:hover,
.page-topbar__nav a[aria-current="page"] {
  color: var(--cta);
}

.page-main {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .page-main {
    padding: 2rem 1.25rem 4rem;
  }
}

.page-hero {
  position: relative;
  border-radius: 1.1rem;
  overflow: hidden;
  min-height: 11rem;
  margin-bottom: 1.75rem;
  background: var(--navy);
}

@media (min-width: 640px) {
  .page-hero {
    min-height: 14rem;
  }
}

.page-hero__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Visible pero sin tapar título: si la imagen falla, se ve el fondo navy */
  opacity: 0.72;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.25rem 1.6rem;
  color: #fff;
  max-width: 40rem;
}

.page-hero__kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.9;
  margin: 0 0 0.4rem;
}

.page-hero__title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

@media (min-width: 640px) {
  .page-hero__title {
    font-size: 2rem;
  }
}

.page-hero__lead {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.95;
}

.page-block {
  margin-bottom: 2rem;
}

.page-block__h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
}

.page-prose {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #334155;
}

.page-prose p {
  margin: 0 0 0.75rem;
}

.page-prose p:last-child {
  margin-bottom: 0;
}

.page-split {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 900px) {
  .page-split--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.page-figure {
  margin: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.page-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 15rem;
  object-fit: cover;
}

.page-figure figcaption {
  font-size: 0.75rem;
  color: #64748b;
  padding: 0.4rem 0.2rem 0;
}

.pg-barchart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 10.5rem;
  padding: 0.5rem 0.25rem 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #f8fafc, #fff);
}

.pg-barchart__col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  height: 10rem;
  justify-content: flex-end;
}

.pg-barchart__bar {
  width: 100%;
  max-width: 2.5rem;
  border-radius: 0.35rem 0.35rem 0.1rem 0.1rem;
  background: linear-gradient(180deg, var(--cta) 0%, #c2410c 100%);
  min-height: 0.5rem;
  height: var(--h, 40%);
  box-shadow: 0 2px 8px rgba(242, 103, 34, 0.3);
  transition: transform 0.25s ease;
}

.pg-barchart__bar:hover {
  transform: scaleY(1.03);
  transform-origin: bottom;
}

.pg-barchart__lab {
  font-size: 0.6rem;
  font-weight: 700;
  color: #64748b;
  text-align: center;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pg-linechart {
  width: 100%;
  max-width: 28rem;
  display: block;
  margin: 0 auto;
}

.pg-linechart__cap {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0.4rem 0 0;
  text-align: center;
}

.pg-data-table-wrap {
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.pg-data-table {
  width: 100%;
  min-width: 16rem;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.pg-data-table th,
.pg-data-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.pg-data-table th {
  background: var(--navy);
  color: #f8fafc;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.pg-data-table tr:last-child td {
  border-bottom: none;
}

.pg-data-table tbody tr:hover td {
  background: #f8fafc;
}

.pricing-table-wrap {
  border-radius: 0.85rem;
}

.pg-data-table--pricing {
  min-width: 72rem;
  font-size: 0.78rem;
}

.pg-data-table--pricing th,
.pg-data-table--pricing td {
  vertical-align: top;
  padding: 0.72rem 0.88rem;
  line-height: 1.58;
}

.pg-data-table--pricing thead th {
  line-height: 1.38;
  padding: 0.78rem 0.88rem;
}

.pg-data-table--pricing td strong {
  color: var(--navy);
}

@media (min-width: 1280px) {
  .pg-data-table--pricing {
    font-size: 0.82rem;
  }
}

/* Interior: página de precios */
body.page-pricing main {
  --pricing-px: clamp(1.15rem, 4.2vw, 2.75rem);
  --pricing-y: clamp(2.4rem, 5vw, 3.65rem);
  --pricing-y-hero: clamp(2.85rem, 6vw, 4.35rem);
  --pricing-y-cta: clamp(2.65rem, 5.5vw, 4rem);
  --pricing-max: 76rem;
}

body.page-pricing .pricing-section {
  padding-inline: var(--pricing-px);
  padding-block: var(--pricing-y);
}

body.page-pricing .pricing-section--hero.pricing-page-hero {
  padding-inline: 0;
  padding-block: var(--pricing-y-hero);
}

body.page-pricing .pricing-section--hero .pricing-section__inner {
  padding-inline: var(--pricing-px);
}

body.page-pricing .pricing-section--cta {
  padding-block: var(--pricing-y-cta);
}

body.page-pricing .pricing-section__inner {
  width: 100%;
  max-width: var(--pricing-max);
  margin-left: auto;
  margin-right: auto;
}

body.page-pricing .pricing-section--slate {
  background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 48%, #f1f5f9 100%);
}

body.page-pricing .pricing-section--table {
  padding-bottom: calc(var(--pricing-y) + 0.35rem);
}

body.page-pricing .pricing-stat-band {
  padding: clamp(1.15rem, 2.5vw, 1.65rem);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

body.page-pricing .pricing-addons-grid {
  display: grid;
  gap: clamp(1.15rem, 2.8vw, 1.85rem);
  margin-top: 1.35rem;
}

@media (min-width: 768px) {
  body.page-pricing .pricing-addons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.page-pricing .pricing-table-shell {
  margin-top: 0.15rem;
}

body.page-pricing .pricing-stat-grid {
  gap: clamp(1rem, 2.2vw, 1.35rem);
}

.pricing-page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, var(--navy) 0%, #1e2e41 42%, #243652 100%);
}

.pricing-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse 80% 60% at 15% 20%, rgba(232, 93, 4, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 75%, rgba(250, 163, 7, 0.08), transparent 50%);
  pointer-events: none;
}

.pricing-page-hero__inner {
  position: relative;
  z-index: 1;
}

body.page-pricing #pricing-page-title {
  line-height: 1.15;
}

body.page-pricing #pricing-guide-title,
body.page-pricing #tabla-precios-title {
  line-height: 1.28;
}

body.page-pricing #tabla-precios-title {
  margin-bottom: 0.85rem;
}

@media (min-width: 768px) {
  body.page-pricing #tabla-precios-title {
    margin-bottom: 1.05rem;
  }
}

body.page-pricing #tabla-precios-title + .pricing-prose {
  margin-bottom: 2rem;
}

body.page-pricing #addons-title {
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  body.page-pricing #pricing-page-title {
    line-height: 1.12;
  }
}

.pricing-breadcrumb {
  font-size: 0.8rem;
  color: rgba(248, 250, 252, 0.88);
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  line-height: 1.45;
}

.pricing-breadcrumb a {
  color: rgba(248, 250, 252, 0.98);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.pricing-breadcrumb a:hover {
  color: var(--cta-alt);
}

.pricing-breadcrumb-sep {
  opacity: 0.55;
}

.pricing-hero-lede {
  line-height: 1.65;
}

.pricing-prose {
  line-height: 1.65;
}

.pricing-scope-head {
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .pricing-scope-head {
    margin-bottom: 2.5rem;
  }
}

.pricing-guide-list {
  gap: 1rem 1.5rem;
}

.pricing-guide-panel {
  padding: 1.35rem 1.35rem;
  line-height: 1.62;
}

@media (min-width: 768px) {
  .pricing-guide-panel {
    padding: 1.65rem 1.85rem;
  }
}

.pricing-guide-list > li > span:last-child {
  line-height: 1.6;
}

/* Galería de portada — fichas orientadas al cliente (precios.html) */
.pricing-galeria-intro {
  margin-bottom: 2rem;
}

.pricing-galeria-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 900px) {
  .pricing-galeria-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
    align-items: stretch;
  }
}

.pricing-galeria-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.35rem 1.35rem 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
}

.pricing-galeria-card--highlight {
  border-color: #cbd5e1;
  box-shadow:
    0 0 0 1px rgba(251, 146, 60, 0.35),
    0 12px 36px rgba(15, 23, 42, 0.08);
}

.pricing-galeria-card__badge {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.45rem;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fdba74;
  padding: 0.2rem 0.5rem;
  border-radius: 0.35rem;
}

.pricing-galeria-card__ref {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
}

.pricing-galeria-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.pricing-galeria-card__pitch {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 1rem;
  line-height: 1.55;
}

/* Bloque de precio (lista / promo) — aspecto tarifa corporativa */
.pricing-galeria-card__pricebox {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid #e2e8f0;
  background: linear-gradient(165deg, #f8fafc 0%, #ffffff 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.pricing-galeria-card__pricebox--dual {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pricing-galeria-card__price-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.pricing-galeria-card__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}

.pricing-galeria-card__was {
  font-size: 0.82rem !important;
  font-weight: 600;
  color: #94a3b8 !important;
}

.pricing-galeria-card__now-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.55rem;
}

.pricing-galeria-card__pill {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f172a;
  background: #fff;
  border: 1px solid #cbd5e1;
  padding: 0.12rem 0.38rem;
  border-radius: 0.3rem;
  line-height: 1.2;
  vertical-align: middle;
}

.pricing-galeria-card__price-foot {
  margin: 0.55rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid #e8edf3;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

.pricing-galeria-card__price-foot--row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  border-top: 1px solid #e8edf3;
  padding-top: 0.5rem;
}

.pricing-galeria-card__price-foot-note {
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.01em;
}

.pricing-galeria-card__price-tier {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #eef2f7;
}

.pricing-galeria-card__price-tier:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.pricing-galeria-card__tier-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  min-width: 7.5rem;
}

.pricing-galeria-card__tier-nums {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.6rem;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
}

.pricing-galeria-card__amount--dual {
  font-size: 1.28rem !important;
}

.pricing-galeria-card__amount {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  text-decoration: none !important;
}

.pricing-galeria-card__period {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}

.pricing-galeria-card__price-sep {
  opacity: 0.45;
  font-weight: 300;
}

.pricing-galeria-card__save {
  font-size: 0.78rem;
  font-weight: 600;
  color: #0f766e;
  margin: 0 0 0.75rem;
  padding: 0.4rem 0.55rem;
  border-radius: 0.4rem;
  background: rgba(15, 118, 110, 0.06);
  border: 1px solid rgba(15, 118, 110, 0.18);
  line-height: 1.45;
}

.pricing-galeria-card__list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  flex: 1 1 auto;
}

.pricing-galeria-card__list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.52;
  margin-bottom: 0.5rem;
  text-align: left;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
}

.pricing-galeria-card__li-txt {
  flex: 1 1 auto;
  min-width: 0;
}

.pricing-galeria-card__check {
  flex-shrink: 0;
  width: 1rem;
  margin-top: 0.18rem;
  text-align: center;
  color: var(--cta);
  font-size: 0.72rem;
}

.pricing-galeria-card__list li:last-child {
  margin-bottom: 0;
}

.pricing-galeria-card__note {
  font-size: 0.78rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0 0 1rem;
}

.pricing-galeria-card__cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: auto;
  padding: 0.62rem 1rem;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: var(--navy);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.pricing-galeria-card__cta:hover {
  background: color-mix(in srgb, var(--navy) 85%, var(--cta));
  color: #fff;
}

.pricing-galeria-card__cta:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}

.pricing-galeria-details {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: rgba(248, 250, 252, 0.95);
  padding: 0 1rem;
}

.pricing-galeria-details__summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0.85rem 0;
  list-style: none;
}

.pricing-galeria-details__summary::-webkit-details-marker {
  display: none;
}

.pricing-galeria-details__body {
  padding-bottom: 1rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.85rem;
}

.pricing-addons-list li {
  line-height: 1.62;
}

.pricing-addons-list > li + li {
  margin-top: 0.85rem;
}

.pricing-cta-lede {
  line-height: 1.65;
}

body.page-pricing .pricing-addon-card {
  box-sizing: border-box;
  padding: 2rem 1.75rem 2.25rem;
}

@media (min-width: 768px) {
  body.page-pricing .pricing-addon-card {
    padding: 2.5rem 2.35rem 2.65rem;
  }
}

@media (min-width: 1024px) {
  body.page-pricing .pricing-addon-card {
    padding: 2.65rem 2.75rem 2.85rem;
  }
}

body.page-pricing .pricing-addon-card > h3 {
  margin-bottom: 1.35rem;
  line-height: 1.45;
}

body.page-pricing .pricing-addon-card .pricing-addons-list {
  margin: 0;
  padding-left: 1.5rem;
  list-style-type: disc;
  list-style-position: outside;
}

.pricing-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.2rem;
}

.pricing-stat-card {
  border-radius: 0.9rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 1.2rem 1.35rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.pricing-stat-card__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--steel);
}

.pricing-stat-card__value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  margin-top: 0.4rem;
  line-height: 1.3;
}

.pricing-stat-card__hint {
  margin: 0;
  margin-top: 0.45rem;
  line-height: 1.62;
}

.pricing-guide-num {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  background: color-mix(in srgb, var(--cta) 18%, #fff 82%);
  color: var(--navy);
}

/* Tarifario: presentación tipo documento */
.pricing-table-shell {
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 4px 22px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.pricing-doc-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.35rem;
  align-items: center;
  padding: 0.8rem 1.15rem;
  font-size: 0.74rem;
  line-height: 1.5;
  color: #475569;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
}

.pricing-doc-strip strong {
  color: var(--navy);
  font-weight: 700;
}

.pricing-table-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.65rem 1rem 0.75rem;
  background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 55%);
  border-bottom: 1px solid #e2e8f0;
  align-items: stretch;
}

.pricing-table-tabs.is-search-dimmed {
  opacity: 0.52;
  pointer-events: none;
  filter: grayscale(0.15);
}

.pricing-tab {
  flex: 1 1 auto;
  min-width: min(100%, 7.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  padding: 0.5rem 0.72rem 0.55rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.65rem;
  background: #fff;
  color: var(--steel);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    transform 0.15s ease;
}

.pricing-tab:hover {
  border-color: rgba(232, 93, 4, 0.55);
  box-shadow: 0 4px 14px rgba(232, 93, 4, 0.12);
}

.pricing-tab:active {
  transform: scale(0.98);
}

.pricing-tab:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}

.pricing-tab--active {
  border-color: var(--cta);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 75%);
  box-shadow: 0 3px 14px rgba(232, 93, 4, 0.2);
  color: var(--navy);
}

.pricing-tab__n {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
}

.pricing-tab--active .pricing-tab__n {
  color: var(--cta);
}

.pricing-tab__hint {
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.28;
}

.pricing-table-toolbar {
  padding: 0.85rem 1.15rem 0.95rem;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.pricing-table-toolbar__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.pricing-table-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.pricing-table-toolbar__input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--steel);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.pricing-table-toolbar__input:hover {
  border-color: #94a3b8;
}

.pricing-table-toolbar__input:focus {
  outline: none;
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.2);
}

.pricing-table-toolbar__btn {
  padding: 0.5rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.pricing-table-toolbar__btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.pricing-table-toolbar__status {
  margin: 0.55rem 0 0;
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.45;
}

body.page-pricing .pg-data-table--pricing tbody tr.is-filtered-out {
  display: none;
}

body.page-pricing .pg-data-table--pricing tbody tr:not(.pricing-row-section) td {
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
  cursor: pointer;
}

body.page-pricing .pg-data-table--pricing tbody tr:not(.pricing-row-section):hover td {
  background: #eef6ff;
  box-shadow: inset 0 0 0 1px rgba(232, 93, 4, 0.28);
}

body.page-pricing .pg-data-table--pricing tbody tr:not(.pricing-row-section).is-row-active td {
  background: rgba(232, 93, 4, 0.1);
  box-shadow: inset 4px 0 0 var(--cta);
}

.pricing-table-shell .pricing-table-scroll.pg-data-table-wrap {
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.pricing-table-caption {
  caption-side: bottom;
  padding: 0.85rem 1rem 0.5rem;
  font-size: 0.74rem;
  color: #64748b;
  text-align: left;
  line-height: 1.5;
}

.pricing-row-section th {
  background: #1e293b;
  color: #f8fafc;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.62rem 0.88rem;
  line-height: 1.42;
  border-bottom: 1px solid #0f172a;
}

.pricing-row-section:hover th {
  background: #1e293b;
}

.pricing-cell-price {
  font-variant-numeric: tabular-nums;
}

.pricing-cell-price .pricing-inline-note {
  display: block;
  margin-top: 0.28rem;
}

.pricing-amount {
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.pricing-amount--addon {
  color: #c2410c;
}

.pricing-amount--from {
  font-weight: 700;
}

.pricing-inline-note {
  font-size: 0.68rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.45;
}

/* Lista tachada + precio promo lanzamiento (−70 %) */
.pricing-price-promo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
}

.pricing-price-promo__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.pricing-amount--strike {
  font-size: 0.74rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: line-through;
  text-decoration-color: rgba(100, 116, 139, 0.85);
}

.pricing-cell-price .pricing-amount--strike {
  font-size: 0.7rem;
}

.pricing-amount--deal {
  font-weight: 800;
  color: #0f766e;
  text-decoration: none;
}

.pricing-cell-price ins.pricing-amount--deal.pricing-amount--addon {
  color: #c2410c;
}

.pricing-galeria-card__pricebox ins.pricing-amount--deal {
  color: #0f766e;
}

.pricing-discount-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(118deg, #c2410c 0%, #ea580c 55%, #f97316 100%);
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  line-height: 1.2;
}

.pricing-discount-badge--compact {
  font-size: 0.56rem;
  padding: 0.12rem 0.3rem;
}

.pricing-inline-strike {
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
  margin-right: 0.2rem;
}

.pricing-inline-badge {
  display: inline-block;
  margin-left: 0.15rem;
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
  background: #ea580c;
  padding: 0.06rem 0.28rem;
  border-radius: 0.28rem;
  vertical-align: middle;
}

body.page-pricing ins {
  text-decoration: none;
}

.pricing-price-sep {
  opacity: 0.45;
  font-weight: 600;
  margin: 0 0.12rem;
}

.pricing-legal-note {
  margin-top: 1.35rem;
  padding: 1.25rem 1.35rem;
  font-size: 0.8rem;
  line-height: 1.65;
  color: #475569;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 0.65rem;
}

.pricing-legal-note strong {
  color: var(--navy);
}

@media (min-width: 768px) {
  .pricing-table-scroll {
    max-height: min(70vh, 680px);
    overflow: auto;
  }

  .pg-data-table--pricing thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    box-shadow: 0 2px 0 rgba(15, 23, 42, 0.22);
  }
}

.pg-acc {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pg-acc details {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease;
}

.pg-acc details:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.pg-acc details[open] {
  border-color: rgba(10, 29, 55, 0.15);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.09);
}

.pg-acc summary {
  list-style: none;
  cursor: pointer;
  padding: 0.65rem 0.9rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  background: linear-gradient(90deg, #f8fafc, #fff);
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.pg-acc summary::-webkit-details-marker {
  display: none;
}

.pg-acc summary::after {
  content: "›";
  font-size: 1.1rem;
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.2s ease;
}

.pg-acc details[open] summary::after {
  transform: rotate(90deg);
  color: var(--cta);
}

.pg-acc__body {
  padding: 0.55rem 0.9rem 0.85rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #334155;
  border-top: 1px solid #f1f5f9;
}

.pg-acc__body p {
  margin: 0 0 0.5rem;
}

.pg-acc__body p:last-child {
  margin-bottom: 0;
}

.page-cta {
  margin-top: 2.25rem;
  padding: 1.1rem 1.15rem;
  border-radius: 0.85rem;
  background: linear-gradient(120deg, #0f1620, var(--navy));
  color: #e2e8f0;
  text-align: center;
}

.page-cta p {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
}

.page-cta__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  justify-content: center;
}

.page-cta a {
  color: #fed7aa;
  font-weight: 700;
  text-decoration: none;
}

.page-cta a:hover {
  text-decoration: underline;
}

/* Acentos editoriales y comerciales reutilizables */
.badge-premium,
.badge-buenas-practicas {
  background: var(--gold-success);
  color: #1b263b;
  border: 1px solid color-mix(in srgb, var(--gold-success) 65%, #1b263b 35%);
}

.alert-editorial,
.badge-ultima-hora {
  background: var(--editorial-red);
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--editorial-red) 70%, #ffffff 30%);
}

/* Categorizacion educativa para modulos de aprendizaje */
.modulo-mentor {
  background: color-mix(in srgb, var(--mentor-green) 16%, #ffffff 84%);
  color: var(--mentor-green);
  border: 1px solid color-mix(in srgb, var(--mentor-green) 55%, #ffffff 45%);
}

.modulo-tecnologico {
  background: color-mix(in srgb, var(--tech-cyan) 14%, #ffffff 86%);
  color: var(--tech-cyan);
  border: 1px solid color-mix(in srgb, var(--tech-cyan) 58%, #ffffff 42%);
}

.modulo-creativo {
  background: color-mix(in srgb, var(--creative-purple) 14%, #ffffff 86%);
  color: var(--creative-purple);
  border: 1px solid color-mix(in srgb, var(--creative-purple) 58%, #ffffff 42%);
}

.page-min-footer {
  text-align: center;
  padding: 1.5rem 0.5rem 2.5rem;
  font-size: 0.7rem;
  color: #94a3b8;
}

.page-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c2410c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.4rem;
}

/* Centrado general en responsive (mobile/tablet) */
@media (max-width: 1023px) {
  main section,
  main section h1,
  main section h2,
  main section h3,
  main section p {
    text-align: center;
  }

  .toolbar-inner,
  .toolbar-contact,
  .toolbar-cta,
  .steady-start__copy,
  .steady-start__audio,
  .steady-start__audio-head,
  .steady-start__controls,
  .plan-cal-card__head,
  .plan-cal-focus,
  .plan-cal-legend,
  .age-benefits__header,
  .age-persiana__trigger,
  .footer-main,
  .footer-brand,
  .footer-segment,
  .footer-nav-cols,
  .footer-mega-list,
  .footer-subscribe-form {
    justify-content: center;
    text-align: center;
  }

  .health-actions,
  .page-cta__row {
    justify-content: center;
  }

  .feature-card,
  .testimonial-card,
  .footer-segment,
  .footer-brand {
    align-items: center;
  }

  .service-card .p-5 {
    align-items: stretch;
  }

  .service-card .service-card__top {
    align-self: stretch;
    width: 100%;
  }

  #servicios .service-card h3,
  #servicios .service-card p,
  #servicios .service-card .service-card__bullet-list li {
    text-align: left;
  }

  .footer-lede {
    border-left: 0;
    padding-left: 0;
  }
}

/* Página precios.html: evita centrado global de main en tablet/móvil (tabla y textos legibles) */
@media (max-width: 1023px) {
  body.page-pricing main section:not(.pricing-cta-section),
  body.page-pricing main section:not(.pricing-cta-section) h1,
  body.page-pricing main section:not(.pricing-cta-section) h2:not(.pricing-heading-keep-center),
  body.page-pricing main section:not(.pricing-cta-section) h3,
  body.page-pricing main section:not(.pricing-cta-section) p,
  body.page-pricing main section:not(.pricing-cta-section) ul {
    text-align: left;
  }

  body.page-pricing main section h2.pricing-heading-keep-center {
    text-align: center;
  }

  body.page-pricing .pricing-doc-strip,
  body.page-pricing .pricing-table-caption,
  body.page-pricing .pricing-legal-note {
    text-align: left;
  }

  body.page-pricing .pricing-table-shell .pg-data-table--pricing th,
  body.page-pricing .pricing-table-shell .pg-data-table--pricing td {
    text-align: left;
  }

  body.page-pricing .pricing-page-hero .mt-8.flex {
    justify-content: flex-start;
  }

  body.page-pricing .pricing-guide-num {
    align-self: flex-start;
  }
}

/* index: cinco anuncios de muestra encima del footer (sustituye la franja de pills YouPro Digital) */
.yp-footer-ads-strip__inner {
  width: 90%;
  max-width: none;
  margin-inline: auto;
  padding-inline: clamp(0.625rem, 1.8vw, 1.35rem);
  padding-top: 30px;
  padding-bottom: 50px;
  box-sizing: border-box;
}

.yp-footer-ads-strip__title {
  margin: 0 0 50px;
  font-size: clamp(1.05rem, 3.2vw, 1.55rem);
  line-height: 1.35;
}

.yp-footer-ads-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.5rem, 2vw, 0.85rem);
  align-items: stretch;
}

@media (min-width: 640px) {
  .yp-footer-ads-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .yp-footer-ads-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.yp-footer-ad-card {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: 1rem;
  border: 1px solid #dbe2ea;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.yp-footer-ad-card:hover {
  transform: translateY(-3px);
  border-color: #cdd8e6;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.yp-footer-ad-card:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 3px;
}

.yp-footer-ad-card__visual {
  display: block;
  aspect-ratio: 1 / 1;
  background: #f4f6f9;
  padding: clamp(0.35rem, 1.2vw, 0.55rem);
  box-sizing: border-box;
}

.yp-footer-ad-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
