:root {
  --navy: #1e252d;
  --cta: #f26722;
  --cta-alt: #ff8f3a;
  --transition: 380ms;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  min-width: 320px;
}

#scrollUp {
  right: calc(1.25rem + 5px);
  background-color: #ff3300;
  border: none;
  cursor: pointer;
}

#scrollUp:hover {
  filter: brightness(1.08);
}

.music-tab-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.45rem;
}

.music-controls-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.music-player {
  width: 65%;
  min-width: 0;
  flex: 1 1 220px;
  height: 38px;
}

.music-track-strip {
  margin-top: 0.65rem;
  display: flex;
  align-items: stretch;
  gap: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  background: linear-gradient(155deg, #f8fafc 0%, #eef2f7 48%, #e8edf4 100%);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 28px rgba(15, 23, 42, 0.06);
  transition: border-color var(--transition) ease, box-shadow var(--transition) ease;
}

#musicDropdown.playing .music-track-strip {
  border-color: rgba(37, 211, 102, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 28px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(37, 211, 102, 0.12),
    0 0 20px rgba(37, 211, 102, 0.08);
}

.music-eq-shell {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 108px;
  padding: 0.55rem 0.75rem 0.5rem;
  border-radius: 12px;
  background: radial-gradient(120% 100% at 50% 100%, #152238 0%, #0a0f18 72%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 -12px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 6px 18px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.music-eq-rail {
  position: absolute;
  inset: auto 10% 6px;
  height: 2px;
  border-radius: 9999px;
  background: linear-gradient(90deg, transparent, rgba(37, 211, 102, 0.25), transparent);
  pointer-events: none;
}

.music-eq {
  position: relative;
  z-index: 1;
  margin-top: 0;
  display: inline-flex;
  align-items: flex-end;
  gap: 5px;
  height: 32px;
  flex-shrink: 0;
}

.music-eq-bar {
  width: 5px;
  height: 28%;
  border-radius: 9999px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
  animation: musicBeat 820ms cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  animation-play-state: paused;
  transform-origin: bottom center;
  transform: scaleY(0.3);
  opacity: 0.7;
  transition: transform 140ms linear, opacity 140ms linear, box-shadow 140ms linear;
}

.music-eq-bar.eq-low {
  background: linear-gradient(180deg, #ffb07a 0%, #f26722 42%, #c94d10 100%);
  box-shadow:
    0 0 10px rgba(242, 103, 34, 0.65),
    0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.music-eq-bar.eq-mid {
  background: linear-gradient(180deg, #ffca96 0%, #ff8f3a 38%, #f26722 100%);
  box-shadow:
    0 0 10px rgba(255, 143, 58, 0.55),
    0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.music-eq-bar.eq-high {
  background: linear-gradient(180deg, #8ea3be 0%, #334155 40%, #1e252d 100%);
  box-shadow:
    0 0 10px rgba(51, 65, 85, 0.6),
    0 0 1px rgba(255, 255, 255, 0.35) inset;
}

#musicDropdown.playing .music-eq-bar {
  animation-play-state: running;
}

#musicDropdown.eq-live .music-eq-bar {
  animation: none;
}

.music-eq-bar:nth-child(2) { animation-delay: 90ms; }
.music-eq-bar:nth-child(3) { animation-delay: 180ms; }
.music-eq-bar:nth-child(4) { animation-delay: 50ms; }
.music-eq-bar:nth-child(5) { animation-delay: 140ms; }
.music-eq-bar:nth-child(6) { animation-delay: 230ms; }

@keyframes musicBeat {
  0% {
    transform: scaleY(0.28);
    opacity: 0.55;
  }
  25% {
    transform: scaleY(0.95);
    opacity: 0.9;
  }
  50% {
    transform: scaleY(1.45);
    opacity: 1;
  }
  75% {
    transform: scaleY(0.7);
    opacity: 0.82;
  }
  100% {
    transform: scaleY(0.32);
    opacity: 0.6;
  }
}

.music-upload-btn {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid #ff6600;
  color: #ff6600;
  border-radius: 0.55rem;
  padding: 0.36rem 0.58rem;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition) ease;
}

.music-upload-btn:hover {
  background: #ff6600;
  color: #fff;
}

.music-file-input {
  display: none;
}

.music-playlist {
  margin-top: 0.5rem;
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #d9e2ee;
  border-radius: 10px;
  background: #f8fafc;
  padding: 0.3rem;
}

.music-playlist-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  border: none;
  background: transparent;
  color: #334155;
  font-size: 0.72rem;
  text-align: left;
  padding: 0.36rem 0.42rem;
  border-radius: 8px;
  cursor: pointer;
}

.music-playlist-item:hover {
  background: #eaf1fb;
}

.music-playlist-item.active {
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
}

.music-track-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.1rem 0;
}

.music-track-kicker {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}

.music-file-name {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.01em;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

@media (max-width: 720px) {
  .music-player {
    width: 100%;
    flex: 1 1 100%;
  }
}

@media (max-width: 520px) {
  .music-track-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .music-file-name {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .music-upload-btn {
    width: 100%;
    justify-content: center;
  }
}

.music-toggle-wrapper {
  position: relative;
}

.music-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.music-dropdown {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  width: min(760px, 96vw);
  background: #ffffff;
  border: 1px solid #d6deea;
  border-radius: 0.75rem;
  padding: 0.75rem;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
  transform-origin: right center;
  transform: scaleX(0);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition) ease, opacity var(--transition) ease;
  z-index: 55;
}

.music-dropdown.open {
  transform: scaleX(1);
  opacity: 1;
  pointer-events: auto;
}

.toolbar {
  font-size: 0.78rem;
  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: 168px;
  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;
}

.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 i {
  color: var(--cta);
  margin-right: 0.25rem;
}

.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(95px, 1fr)) minmax(250px, 1.9fr);
  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;
}

.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 {
  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 {
  position: relative;
}

.menu-link::after,
.footer-list a::after,
.btn-primary::after,
.btn-reserve::after,
.btn-outline::after,
.btn-outline-light::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 {
  width: 100%;
}

.btn-reserve::after {
  background: rgba(255, 255, 255, 0.55);
}

.menu-link {
  font-weight: 600;
  color: #ff6600;
  font-size: 0.78rem;
  padding: 0.05rem 0;
  transition: color var(--transition) ease;
}

.menu-link:hover {
  color: #ff9900;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.music-status-led {
  width: 9px;
  height: 9px;
  margin-left: 10px;
  border-radius: 9999px;
  background: rgba(255, 51, 0, 0.25);
  box-shadow: 0 0 0 1px rgba(255, 51, 0, 0.25);
  transition: background var(--transition) ease, box-shadow var(--transition) ease;
}

.music-status-led.on {
  background: #ff3300;
  box-shadow: 0 0 0 1px rgba(255, 51, 0, 0.6), 0 0 8px rgba(255, 51, 0, 0.8);
  animation: ledBlink 1.6s ease-in-out infinite;
}

@keyframes ledBlink {
  0%,
  100% {
    opacity: 0.78;
    box-shadow: 0 0 0 1px rgba(255, 51, 0, 0.45), 0 0 5px rgba(255, 51, 0, 0.35);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 0 1px rgba(255, 51, 0, 0.65), 0 0 9px rgba(255, 51, 0, 0.55);
  }
}

.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: #0f172a;
  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: #64748b;
  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;
}

.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);
}

.hero-section {
  overflow: hidden;
}

.hero-slider-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 25px;
  background: #ff3300;
  z-index: 15;
  pointer-events: none;
}

.hero-slider {
  perspective: 1000px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  /* Encuadre más bajo: prioriza la parte inferior de la imagen (cuerpos completos) */
  background-position: center 82%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 800ms ease, transform 1200ms ease;
  will-change: transform;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.layered {
  opacity: 0;
  transform: translateY(20px);
  animation: layeredIn 700ms forwards;
}

.layer-1 { animation-delay: 120ms; }
.layer-2 { animation-delay: 280ms; }
.layer-3 { animation-delay: 430ms; }

@keyframes layeredIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.glass-form {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 14px 34px rgba(20, 24, 30, 0.4);
}

.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);
}

.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 h3 {
  margin-top: 0.6rem;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 700;
}

.service-card p {
  margin-top: 0.4rem;
  font-size: 1rem;
}

.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);
}

/* Solo la foto: la máscara va en ::before para poder “bajar” la franja de oscurecido */
.parallax-strip {
  position: relative;
  background-image: url("assets/foto-011.png");
  background-size: cover;
  background-position: center 58%;
  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: #64748b;
}

.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: #d9e3f2;
  width: 100%;
  padding-left: 1.1rem;
  border-left: 2px solid rgba(217, 119, 6, 0.5);
}

.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: #e2e8f0;
  margin: 0 0 0.2rem;
  line-height: 1.2;
}

.footer-mega-sub {
  font-size: 0.65rem;
  line-height: 1.35;
  color: #94a3b8;
  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: #d9e3f2;
  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-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: #d9e3f2;
  transition: color var(--transition) ease;
}

.footer-list a:hover {
  color: #fff;
}

.social-gadget {
  position: fixed;
  right: 5px;
  left: auto;
  top: 50%;
  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: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;
}

#chatSend {
  background: #25d366;
  color: #ffffff;
}

#chatSend:hover {
  background: #1fa855;
}

#mainHeader.shrink {
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  background: #ffffff;
}

#mainHeader {
  position: relative;
  border-bottom: 5px solid #9ca3af;
}

#mainHeader::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -15px;
  height: 15px;
  background: #4b5563;
  z-index: 1;
  pointer-events: none;
}

#mainHeader.shrink .header-row {
  min-height: 130px;
}

#mainHeader.shrink .brand-logo-img {
  height: 126px;
}

#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.82rem;
    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: 136px;
  }

  .logo-arc {
    width: 198px;
    height: 198px;
    bottom: -24px;
  }

  .music-dropdown {
    width: min(680px, 98vw);
  }
}

/* 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;
}

.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;
}

.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;
}
