/* MGS Personal Trainer — portal estático */
:root {
  --color-bg: #f5f7fb;
  --color-text: #12141a;
  --color-muted: #5c6570;
  --color-emerald: #1fa97a;
  --color-emerald-dark: #0d6b4c;
  --color-teal: #2bb8d9;
  --color-amber: #d97706;
  --mint-50: #f0fdf7;
  --mint-100: #d9ebe4;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --cream: #f7f6f2;
  --font: "Manrope", system-ui, sans-serif;
  --font-display: "Syne", "Manrope", sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(18, 20, 26, 0.08);
  --shadow-colored: 0 16px 40px rgba(31, 169, 122, 0.14);
  /* Ritmo vertical compartido (textos largos) */
  --prose-line-height: 1.62;
  --stack-gap-sm: 0.65rem;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-family: var(--font);
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: clip;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: var(--prose-line-height, 1.62);
}

/* Una sola familia tipográfica en toda la página (incl. navegadores que fuerzan fuentes en UI nativa) */
button,
input,
select,
textarea {
  font: inherit;
}

optgroup,
option {
  font: inherit;
}

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

/* Fondo tipo “video”: capas fijas al viewport + paneles dispersos animados (Ken Burns) */
body.page-home {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(165deg, var(--cream) 0%, var(--mint-50) 38%, #f0f7ff 100%);
}

.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-scatter {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
}

.bg-float {
  position: absolute;
  z-index: 1;
  border-radius: clamp(10px, 2vmin, 18px);
  overflow: hidden;
  /* Fondo ambiental: baja opacidad para no competir con el texto */
  opacity: 0.38;
  box-shadow:
    0 8px 28px rgba(15, 23, 42, 0.07),
    0 1px 4px rgba(15, 23, 42, 0.04);
}

.bg-float.bg-soft {
  opacity: 0.24;
}

.bg-float-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform-origin: center center;
  will-change: transform;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.bg-float-inner--contain {
  background-size: contain;
  background-color: rgba(239, 246, 255, 0.55);
}

.bg-float--avatar {
  box-shadow:
    0 6px 18px rgba(37, 99, 235, 0.1),
    0 1px 4px rgba(15, 23, 42, 0.05);
}

@keyframes kb-a {
  0% {
    transform: scale(1.08) translate(-2%, -2%);
  }
  100% {
    transform: scale(1.14) translate(2%, 2%);
  }
}

@keyframes kb-b {
  0% {
    transform: scale(1.12) translate(2%, 2%);
  }
  100% {
    transform: scale(1.08) translate(-2%, -2%);
  }
}

@keyframes kb-c {
  0% {
    transform: scale(1.1) translate(-2%, 3%);
  }
  100% {
    transform: scale(1.15) translate(2%, -2%);
  }
}

.anim-kb-a .bg-float-inner {
  animation-name: kb-a;
}

.anim-kb-b .bg-float-inner {
  animation-name: kb-b;
}

.anim-kb-c .bg-float-inner {
  animation-name: kb-c;
}

.anim-d1 .bg-float-inner {
  animation-duration: 26s;
  animation-delay: 0s;
}

.anim-d2 .bg-float-inner {
  animation-duration: 34s;
  animation-delay: -4s;
}

.anim-d3 .bg-float-inner {
  animation-duration: 30s;
  animation-delay: -9s;
}

.anim-d4 .bg-float-inner {
  animation-duration: 38s;
  animation-delay: -2s;
}

.anim-d5 .bg-float-inner {
  animation-duration: 28s;
  animation-delay: -14s;
}

.anim-d6 .bg-float-inner {
  animation-duration: 32s;
  animation-delay: -7s;
}

.anim-d7 .bg-float-inner {
  animation-duration: 24s;
  animation-delay: -11s;
}

.anim-d8 .bg-float-inner {
  animation-duration: 36s;
  animation-delay: -5s;
}

.anim-d9 .bg-float-inner {
  animation-duration: 29s;
  animation-delay: -18s;
}

.anim-d10 .bg-float-inner {
  animation-duration: 31s;
  animation-delay: -3s;
}

.anim-d11 .bg-float-inner {
  animation-duration: 33s;
  animation-delay: -13s;
}

.anim-d12 .bg-float-inner {
  animation-duration: 27s;
  animation-delay: -20s;
}

.anim-d13 .bg-float-inner {
  animation-duration: 35s;
  animation-delay: -8s;
}

.anim-d14 .bg-float-inner {
  animation-duration: 25s;
  animation-delay: -16s;
}

@media (prefers-reduced-motion: reduce) {
  .bg-float-inner {
    animation: none !important;
    transform: scale(1.1) translate(-1%, -1%);
  }

  .btn-primary:hover,
  .btn-outline:hover,
  .btn-instagram:hover,
  .btn-wa:hover {
    transform: none;
  }

  .card:hover {
    transform: none;
  }

  .service-card:hover {
    transform: none;
  }

  .footer-chip:hover,
  .footer-cta:hover {
    transform: none;
  }
}

/* Velada cálida + ligero tinte azul: fotos visibles, página con color */
.page-backdrop-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    165deg,
    rgba(254, 253, 251, 0.82) 0%,
    rgba(239, 246, 255, 0.78) 35%,
    rgba(255, 251, 235, 0.72) 70%,
    rgba(240, 249, 255, 0.88) 100%
  );
}

/* Móvil: las fotos/logo dispersos detrás competían con la UI (parecían overlay rotos). Solo velo suave. */
@media (max-width: 767.98px) {
  body.page-home .page-backdrop .bg-scatter {
    display: none;
  }

  body.page-home .page-backdrop .page-backdrop-scrim {
    background: linear-gradient(
      165deg,
      rgba(254, 253, 251, 0.97) 0%,
      rgba(239, 246, 255, 0.95) 38%,
      rgba(255, 251, 235, 0.92) 72%,
      rgba(240, 249, 255, 0.96) 100%
    );
  }
}

.page-shell {
  position: relative;
  z-index: 1;
  overflow-x: clip;
  max-width: 100%;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* Región principal de contenido; en móvil con data-app-tab actúa como pantalla de app */
.app-main-scroll {
  display: block;
  min-width: 0;
}

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

a {
  color: var(--color-emerald-dark);
}

.site-footer a {
  color: inherit;
}

.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.site-header {
  position: relative;
  z-index: 112;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
  padding-top: max(0.65rem, env(safe-area-inset-top, 0px));
  padding-bottom: 0.65rem;
  padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(239, 246, 255, 0.65) 100%);
  border-bottom: none;
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.site-header-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-emerald), var(--color-teal), #0ea5e9);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}

@media (min-width: 768px) {
  .brand {
    flex: 0 1 auto;
  }
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--color-emerald), var(--color-teal), #0ea5e9) border-box;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.brand-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 500;
}

/* Menú móvil: barra compacta + panel lateral */
.site-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}

.site-header-wrap.is-nav-open .site-nav-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(145deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.98));
  box-shadow:
    0 2px 10px rgba(37, 99, 235, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--color-emerald-dark);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.nav-toggle:hover {
  background: rgba(91, 143, 212, 0.12);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-emerald);
  outline-offset: 3px;
}

.nav-toggle-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 1.25rem;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-emerald-dark), var(--color-teal));
  transition:
    transform 0.28s ease,
    opacity 0.2s ease;
  transform-origin: center;
}

.site-header-wrap.is-nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header-wrap.is-nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-header-wrap.is-nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .site-nav-backdrop,
  .site-nav-shell {
    transition: none !important;
  }
}

.site-nav-shell {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (max-width: 767.98px) {
  .site-nav-shell {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(19.5rem, 90vw);
    max-width: 100%;
    z-index: 111;
    padding: calc(max(1rem, env(safe-area-inset-top, 0px)) + 4rem) max(1rem, env(safe-area-inset-right, 0px))
      max(1rem, env(safe-area-inset-bottom, 0px)) max(1.15rem, env(safe-area-inset-left, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    color: var(--color-text);
    background: #ffffff;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    border-left: 1px solid rgba(71, 85, 105, 0.18);
    box-shadow:
      -12px 0 40px rgba(15, 23, 42, 0.18),
      inset 1px 0 0 rgba(255, 255, 255, 0.95);
    transform: translate3d(105%, 0, 0);
    visibility: hidden;
    transition:
      transform 0.32s cubic-bezier(0.32, 0.72, 0, 1),
      visibility 0.32s ease;
  }

  .site-header-wrap.is-nav-open .site-nav-shell {
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }

  .site-nav-shell .nav-main {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .site-nav-shell .nav-main a {
    padding: 0.72rem 0.85rem;
    border-radius: 11px;
    font-size: 0.92rem;
    color: #1e293b;
  }

  .site-nav-shell .nav-main a:not(.nav-ig):hover {
    background: rgba(91, 143, 212, 0.14);
    color: #0f172a;
  }

  .site-nav-shell .nav-main a.nav-ig {
    margin-top: 0.35rem;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .site-header-wrap {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(0.45rem, 1.5vw, 1rem);
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
    padding-top: max(0.65rem, env(safe-area-inset-top, 0px));
    padding-bottom: 0.65rem;
  }

  .site-header {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
    flex: 0 0 auto;
  }

  .nav-toggle {
    display: none !important;
  }

  .site-nav-backdrop {
    display: none !important;
    pointer-events: none !important;
  }

  .site-nav-shell {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(0.45rem, 1.5vw, 0.85rem);
    flex: 1;
    min-width: 0;
    padding: 0;
    overflow: visible;
    color: inherit;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    visibility: visible !important;
    width: auto;
    max-width: none;
    transition: none;
  }

  .site-header-wrap.is-nav-open .site-nav-shell {
    transform: none !important;
  }
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

@media (max-width: 767.98px) {
  .nav-main {
    flex-direction: column;
    flex-wrap: nowrap;
  }
}

.nav-main a {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 600;
}

.nav-main a:hover {
  background: rgba(91, 143, 212, 0.1);
  color: var(--color-text);
}

.nav-main a.nav-ig {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.14), rgba(251, 191, 36, 0.14));
  color: #9d174d;
}

.nav-main a.nav-ig:hover {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.24), rgba(251, 191, 36, 0.22));
  color: #831843;
}

/* Menú principal: enlaces con estado activo (scroll) + panel móvil */
.site-nav-heading {
  display: none;
  margin: 0 0 0.75rem;
  padding: 0 0.85rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a3b8;
}

@media (max-width: 767.98px) {
  .site-nav-heading {
    display: block;
  }
}

.nav-main--enhanced .nav-main__link {
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-main__link--active {
  color: var(--color-emerald-dark);
}

@media (max-width: 767.98px) {
  .site-nav-shell .nav-main__link--active:not(.nav-main__link--ig) {
    background: rgba(91, 143, 212, 0.16);
    color: #0f172a;
    box-shadow: inset 3px 0 0 var(--color-emerald);
  }

  .site-nav-shell .nav-main__link:focus-visible {
    outline: 2px solid var(--color-emerald);
    outline-offset: 2px;
  }
}

@media (min-width: 768px) {
  .nav-main.nav-main--enhanced {
    gap: 0.12rem;
    padding: 0.22rem 0.35rem;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  }

  .nav-main.nav-main--enhanced .nav-main__link:not(.nav-main__link--ig) {
    padding: 0.45rem 0.82rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
  }

  .nav-main.nav-main--enhanced .nav-main__link:not(.nav-main__link--ig):hover {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
  }

  .nav-main.nav-main--enhanced .nav-main__link--active:not(.nav-main__link--ig) {
    background: #ffffff;
    color: var(--color-emerald-dark) !important;
    box-shadow:
      0 2px 10px rgba(37, 99, 235, 0.12),
      0 1px 0 rgba(255, 255, 255, 1) inset;
  }

  .nav-main.nav-main--enhanced .nav-main__link--ig {
    margin-left: 0.15rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
  }
}

@media (max-width: 360px) {
  .brand-title {
    font-size: 0.92rem;
  }

  .brand-sub {
    font-size: 0.7rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem clamp(0.75rem, 3vw, 1rem);
  border-radius: 999px;
  font-size: clamp(0.8125rem, 2vw, 0.875rem);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
}

.btn-primary {
  background: linear-gradient(135deg, #1fa97a 0%, #17a37a 55%, #0d6b4c 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(31, 169, 122, 0.32);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0d6b4c 0%, #0a5a40 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(13, 107, 76, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(18, 20, 26, 0.14);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
  background: var(--mint-50);
  border-color: rgba(31, 169, 122, 0.4);
  color: var(--color-emerald-dark);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  border: 2px solid rgba(37, 99, 235, 0.35);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--color-teal);
  color: var(--color-emerald-dark);
  background: var(--mint-50);
  transform: translateY(-2px);
}

/* Botón estilo Instagram (gradiente reconocible; enlaza al perfil oficial) */
.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
  box-shadow: 0 6px 22px rgba(220, 39, 67, 0.38);
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-instagram:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(190, 24, 136, 0.4);
}

.contact-float {
  position: fixed;
  z-index: 95;
  right: max(0.65rem, env(safe-area-inset-right, 0px));
  bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
  left: auto;
  width: auto;
  pointer-events: none;
}

.contact-float-wa {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  padding: 0;
  border-radius: 50%;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.2),
    0 4px 12px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.contact-float-booking {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #5ec4a8 0%, #4f8bd9 100%);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.2),
    0 4px 12px rgba(79, 139, 217, 0.4);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.contact-float-booking:hover {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.contact-float-booking:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px rgba(79, 139, 217, 0.55),
    0 10px 28px rgba(15, 23, 42, 0.22);
}

.contact-float-booking__icon {
  display: block;
  flex-shrink: 0;
}

.contact-float .contact-float-booking.btn {
  min-height: 0;
}

.contact-float-wa:hover {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.contact-float-wa:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px rgba(37, 211, 102, 0.55),
    0 10px 28px rgba(15, 23, 42, 0.22);
}

.contact-float-wa__icon {
  display: block;
  flex-shrink: 0;
}

/* Anula el min-height del .btn genérico: el FAB es solo icono. */
.contact-float .contact-float-wa.btn {
  min-height: 0;
}

@media print {
  .contact-float {
    display: none !important;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 380px) {
  .hero-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

a.ig-link {
  text-decoration: none;
  border-bottom: 2px solid rgba(219, 39, 119, 0.45);
  color: inherit;
}

a.ig-link:hover {
  border-bottom-color: #db2777;
}

a.ig-link strong {
  color: #be185d;
}

/* ——— Bienvenida al cargar (overlay; misma foto de perfil que Feed / galería) ——— */
html.welcome-pre-dismissed #welcome-splash {
  display: none !important;
}

body.welcome-splash-active {
  overflow: hidden;
}

.welcome-splash {
  position: fixed;
  inset: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  z-index: 1100;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  margin: 0;
  box-sizing: border-box;
  overflow: hidden;
  background-color: #f7fafc;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(14, 165, 233, 0.2) 0%, transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(59, 130, 246, 0.14) 0%, transparent 30%),
    linear-gradient(160deg, #f8fbff 0%, #edf5ff 52%, #e6f1fb 100%);
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.welcome-splash::before,
.welcome-splash::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.welcome-splash::before {
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.34) 34%, transparent 54%),
    repeating-linear-gradient(
      115deg,
      rgba(15, 23, 42, 0.02) 0 10px,
      rgba(14, 165, 233, 0.06) 10px 20px,
      transparent 20px 34px
    );
  transform: translateX(-18%);
  animation: welcomeSplashSweep 7s linear infinite;
  opacity: 0.85;
}

.welcome-splash::after {
  inset: auto -12% -22% auto;
  width: min(58vw, 520px);
  height: min(58vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, rgba(14, 165, 233, 0.08) 35%, transparent 72%);
  filter: blur(10px);
  animation: welcomeSplashOrb 5.5s ease-in-out infinite;
}

.welcome-splash[hidden] {
  display: none !important;
}

.welcome-splash-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.78rem;
  width: min(100%, 29rem);
  max-width: 29rem;
  padding: clamp(1.4rem, 4vw, 2rem) clamp(1.15rem, 4vw, 1.8rem);
  border-radius: 30px;
  border: 1px solid rgba(91, 143, 212, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.84) 100%);
  box-shadow:
    0 30px 60px rgba(15, 23, 42, 0.12),
    0 8px 18px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: welcomePanelRise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.welcome-splash-inner::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  border-radius: 30px 30px 0 0;
  background: linear-gradient(90deg, #0ea5e9 0%, #2563eb 45%, #0f172a 100%);
}

.welcome-splash-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.6);
}

.welcome-splash-avatar-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(46vmin, 188px);
  height: min(46vmin, 188px);
}

.welcome-splash-avatar-ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.18);
  box-shadow:
    0 0 0 10px rgba(14, 165, 233, 0.07),
    0 0 0 18px rgba(37, 99, 235, 0.03);
  animation: welcomeRingPulse 2.4s ease-in-out infinite;
}

.welcome-splash-avatar {
  display: block;
  position: relative;
  z-index: 1;
  width: min(42vmin, 164px);
  height: min(42vmin, 164px);
  max-width: min(42vmin, 164px);
  max-height: min(42vmin, 164px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 4px solid #fff;
  box-shadow:
    0 18px 48px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(91, 143, 212, 0.22);
  transform: translateZ(0);
  backface-visibility: hidden;
  image-rendering: auto;
}

.welcome-splash-brand {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--color-text);
}

.welcome-splash-tagline {
  margin: 0;
  max-width: 24rem;
  font-size: clamp(0.9rem, 2.8vw, 1rem);
  line-height: 1.5;
  color: #334155;
}

.welcome-splash-note {
  margin: -0.05rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #64748b;
}

.welcome-splash-cta {
  margin-top: 0.4rem;
  padding: 0.95rem 2rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  font-size: clamp(0.95rem, 3vw, 1.05rem);
  letter-spacing: 0.03em;
  color: #eff6ff;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 52%, #0f172a 100%);
  box-shadow:
    0 16px 34px rgba(37, 99, 235, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.welcome-splash-cta:hover {
  filter: brightness(1.05) saturate(1.06);
  transform: translateY(-2px);
  box-shadow:
    0 20px 42px rgba(37, 99, 235, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.welcome-splash-cta:focus-visible {
  outline: 3px solid rgba(15, 23, 42, 0.85);
  outline-offset: 3px;
}

.welcome-splash--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .welcome-splash {
    transition: none;
  }

  .welcome-splash::before,
  .welcome-splash::after,
  .welcome-splash-inner,
  .welcome-splash-avatar-ring,
  .hero-welcome-head,
  .hero-welcome-head::before,
  .hero-welcome-avatar-wrap {
    animation: none;
  }

  .welcome-splash-cta {
    transition: none;
  }

  .welcome-splash-cta:hover {
    transform: none;
  }
}

/* Móvil: la bienvenida no debe dejar ver el backdrop animado por encima / a través */
@media (max-width: 767.98px) {
  .welcome-splash {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  .welcome-splash-inner {
    max-width: min(22rem, 100%);
    border-radius: 24px;
    padding: 1.35rem 1rem 1.45rem;
  }
}

@media print {
  .welcome-splash {
    display: none !important;
  }
}

.hero-wrap {
  position: relative;
  overflow: visible;
  padding: 0 0 0.5rem;
}

.hero-wrap::before {
  content: "";
  position: absolute;
  pointer-events: none;
  top: -18%;
  right: -8%;
  width: min(52vw, 400px);
  height: min(52vw, 400px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 169, 122, 0.16) 0%, transparent 70%);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  min-width: 0;
  box-sizing: border-box;
  padding: clamp(0.85rem, 2.8vw, 1.35rem) clamp(0.65rem, 3vw, 1rem) clamp(1.35rem, 4vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(240, 253, 247, 0.9) 48%,
    rgba(247, 246, 242, 0.88) 100%
  );
  border: 1px solid rgba(31, 169, 122, 0.16);
  box-shadow:
    var(--shadow-colored),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.hero-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  align-items: stretch;
  min-width: 0;
}

.hero-stage__visual {
  position: relative;
  overflow: hidden;
  min-height: min(42vw, 220px);
  border-radius: 18px;
  isolation: isolate;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  animation:
    heroStageReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) both,
    heroStageGlow 5.5s ease-in-out infinite;
}

.hero-stage__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 42%;
  transform: scale(1.06);
  animation: heroStageKen 18s ease-in-out infinite alternate;
}

.hero-stage__photo-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(15, 23, 42, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.28) 100%);
  pointer-events: none;
}

.hero-stage__sheen {
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(
    115deg,
    transparent 32%,
    rgba(255, 255, 255, 0.22) 48%,
    transparent 64%
  );
  transform: translateX(-45%);
  animation: heroStageSheen 7.5s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.hero-brand-lockup {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 6vw, 2.65rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--color-text);
  animation: heroCopyRise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy-block h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 3.4vw, 1.55rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  max-width: 22ch;
  animation: heroCopyRise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.hero-copy-block .lead {
  animation: heroCopyRise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.15rem;
  align-items: center;
  animation: heroCopyRise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.hero-cta-row .btn {
  width: auto;
  min-width: min(100%, 12rem);
}

.hero-cta-primary {
  position: relative;
  overflow: hidden;
  animation: heroCtaPulse 2.8s ease-in-out infinite;
}

.hero-cta-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.28) 48%,
    transparent 72%
  );
  transform: translateX(-120%);
  animation: heroCtaSheen 3.4s ease-in-out infinite;
  pointer-events: none;
}

.hero-cta-secondary {
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hero-cta-secondary:hover {
  transform: translateY(-2px);
}

@keyframes heroStageReveal {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroStageKen {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes heroStageSheen {
  0%,
  55%,
  100% {
    transform: translateX(-45%);
    opacity: 0;
  }
  65% {
    opacity: 1;
  }
  78% {
    transform: translateX(45%);
    opacity: 0;
  }
}

@keyframes heroStageGlow {
  0%,
  100% {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  }
  50% {
    box-shadow:
      0 22px 48px rgba(15, 23, 42, 0.16),
      0 0 0 1px rgba(31, 169, 122, 0.12);
  }
}

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

@keyframes heroCtaPulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 10px 24px rgba(31, 169, 122, 0.22);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(31, 169, 122, 0.3);
  }
}

@keyframes heroCtaSheen {
  0%,
  60%,
  100% {
    transform: translateX(-120%);
  }
  78% {
    transform: translateX(120%);
  }
}

.booking-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.35rem;
}

.booking-cta-actions .btn {
  width: auto;
}

.services-portal-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--color-emerald-dark);
}

.section-title,
.brand-title,
.gallery-showcase-title,
.welcome-splash-brand,
.footer-logo {
  font-family: var(--font-display);
}

.hero-copy-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  justify-content: center;
}

.hero-welcome-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  margin-top: 0.35rem;
  padding: 0.55rem 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: none;
  animation: heroWelcomeFloat 6s ease-in-out infinite;
}

.hero-welcome-head::before {
  display: none;
}

.hero-welcome-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(145deg, rgba(31, 169, 122, 0.9), rgba(43, 184, 217, 0.55));
  box-shadow: 0 8px 18px rgba(13, 107, 76, 0.16);
}

.hero-welcome-avatar-wrap::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(31, 169, 122, 0.35);
  animation: heroAvatarRing 2.8s ease-out infinite;
  pointer-events: none;
}

.hero-welcome-avatar {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.hero-welcome-copy {
  min-width: 0;
}

.hero-welcome-kicker {
  margin: 0 0 0.38rem;
  font-size: clamp(1rem, 2.8vw + 0.55rem, 1.15rem);
  font-weight: 800;
  letter-spacing: -0.022em;
  color: #0f172a;
  line-height: 1.2;
}

.hero-welcome-sub {
  margin: 0;
  font-size: clamp(0.82rem, 1.5vw + 0.65rem, 0.92rem);
  line-height: 1.48;
  color: #475569;
}

html.welcome-intro-live .hero-welcome-head {
  box-shadow:
    0 16px 36px rgba(37, 99, 235, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

html.welcome-intro-live .hero-welcome-avatar-wrap {
  animation: heroWelcomeBadgePulse 1.15s ease-in-out 4;
}

@keyframes welcomeSplashSweep {
  0% {
    transform: translateX(-18%);
  }
  100% {
    transform: translateX(18%);
  }
}

@keyframes welcomeSplashOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-10px, -16px, 0) scale(1.06);
  }
}

@keyframes welcomePanelRise {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes welcomeRingPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes heroWelcomeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes heroWelcomeSheen {
  0%,
  62%,
  100% {
    transform: translateX(-140%);
  }
  80% {
    transform: translateX(140%);
  }
}

@keyframes heroWelcomeBadgePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes heroAvatarRing {
  0% {
    transform: scale(0.92);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.18);
    opacity: 0;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

/* Revelado al scroll (portada + asesoría) */
[data-motion] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-motion="scale"] {
  transform: translateY(16px) scale(0.96);
}

[data-motion].is-inview {
  opacity: 1;
  transform: none;
}

[data-motion-delay="1"].is-inview {
  transition-delay: 0.08s;
}

[data-motion-delay="2"].is-inview {
  transition-delay: 0.16s;
}

[data-motion-delay="3"].is-inview {
  transition-delay: 0.24s;
}

[data-motion-delay="4"].is-inview {
  transition-delay: 0.32s;
}

[data-motion-delay="1"]:not(.is-inview),
[data-motion-delay="2"]:not(.is-inview),
[data-motion-delay="3"]:not(.is-inview),
[data-motion-delay="4"]:not(.is-inview) {
  transition-delay: 0s;
}

.hero-atmosphere {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 0.55rem;
  margin-top: 0.1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.hero-atmosphere__mosaic {
  display: none;
}

.hero-atmosphere__tile {
  display: none;
}

.hero-atmosphere__tagline {
  margin: 0;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.hero-quick-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.hero-quick-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1e40af;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.28);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.08);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.hero-quick-nav__link:hover {
  background: rgba(239, 246, 255, 0.98);
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateY(-1px);
}

.hero-quick-nav__link:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.65);
  outline-offset: 2px;
}

.hero-featured {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.hero-featured.is-inview .hero-featured-card {
  animation: heroCopyRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-featured.is-inview .hero-featured-card:nth-child(2) {
  animation-delay: 0.12s;
}

.hero-featured__head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.hero-featured__kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0369a1;
}

.hero-featured__title {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw + 0.65rem, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.hero-featured__intro {
  margin: 0;
  max-width: 42rem;
  font-size: 0.96rem;
  line-height: 1.58;
  color: #475569;
}

.hero-featured__grid {
  display: grid;
  gap: 0.95rem;
}

.hero-featured-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.9));
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.hero-featured-card--premium {
  border-top: 4px solid rgba(14, 165, 233, 0.88);
}

.hero-featured-card--session {
  border-top: 4px solid rgba(37, 99, 235, 0.88);
}

.hero-featured-card__copy {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hero-featured-card__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0369a1;
}

.hero-featured-card__title {
  margin: 0;
  font-size: clamp(1.12rem, 1.5vw + 0.85rem, 1.28rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.hero-featured-card__lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.56;
  color: #475569;
}

.hero-featured-card__media-shell {
  width: min(100%, 280px);
  margin: 0 auto;
  padding: 0.72rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.96) 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow:
    0 24px 55px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-featured-card__media-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 25%, rgba(245, 133, 41, 0.18), transparent 55%),
    radial-gradient(circle at 75% 78%, rgba(220, 39, 67, 0.18), transparent 58%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 27, 75, 0.92));
}

.hero-featured-card__badge {
  position: absolute;
  top: 0.82rem;
  left: 0.82rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f8fafc;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-featured-card__video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #020617;
  object-fit: cover;
}

.hero-featured-card__note {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  margin: 0;
  padding: 0.82rem 0.95rem;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(248, 250, 252, 0.92);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.76) 100%);
  pointer-events: none;
}

.hero-featured-card__bullets {
  margin: 0;
  padding-left: 1.05rem;
  font-size: 0.88rem;
  line-height: 1.56;
  color: #475569;
}

.hero-featured-card__bullets li {
  margin-bottom: 0.38rem;
}

.hero-featured-card__bullets li:last-child {
  margin-bottom: 0;
}

.hero-featured-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hero-featured-card__cta {
  width: 100%;
  text-align: center;
}

.hero-featured-card__support {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #64748b;
}

.hero-accent {
  background: linear-gradient(105deg, #0d6b4c 0%, #1fa97a 45%, #2bb8d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not (background-clip: text) {
  .hero-accent {
    color: var(--color-emerald-dark);
  }
}

@media (min-width: 768px) {
  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: clamp(1.15rem, 2.5vw, 1.85rem);
    padding: clamp(1.15rem, 2.6vw, 1.75rem) clamp(1rem, 2.8vw, 1.35rem) clamp(1.75rem, 3.5vw, 2.5rem);
  }

  .hero-stage {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2.25rem);
    min-height: min(62vh, 520px);
    align-items: center;
  }

  .hero-stage__visual {
    min-height: 100%;
    height: 100%;
    border-radius: 22px;
  }

  .hero-copy-block {
    padding: 0.35rem 0.15rem 0.35rem 0;
    gap: 0.85rem;
  }

  .hero-copy-block h1 {
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
    max-width: 18ch;
  }

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

  .hero-inner > * {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stage__visual,
  .hero-stage__photo,
  .hero-stage__sheen,
  .hero-brand-lockup,
  .hero-copy-block h1,
  .hero-copy-block .lead,
  .hero-cta-row,
  .hero-cta-primary,
  .hero-cta-primary::after,
  .hero-welcome-avatar-wrap::after,
  .hero-welcome-head,
  .asesoria-reel {
    animation: none !important;
  }

  [data-motion] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.badge {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.95), rgba(186, 230, 253, 0.72));
  color: var(--color-emerald-dark);
  margin-bottom: 1rem;
  border: 1px solid rgba(91, 143, 212, 0.25);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.1);
}

.badge--sport {
  background: linear-gradient(135deg, #1e293b 0%, #1e40af 55%, #0f172a 100%);
  color: #f8fafc;
  border-color: rgba(56, 189, 248, 0.35);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.68rem;
  box-shadow:
    0 4px 18px rgba(15, 23, 42, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-home h1 {
  margin-bottom: clamp(0.35rem, 1.5vw, 0.85rem);
}

.lead {
  font-size: clamp(0.95rem, 2vw + 0.75rem, 1.05rem);
  color: var(--color-muted);
  margin: 0 0 1.5rem;
}

.page-home .lead {
  margin-bottom: clamp(0.65rem, 2.2vw, 1.25rem);
  line-height: 1.52;
}

.section {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(0.85rem, 4vw, 1.5rem);
  transition: background 0.3s ease;
}

.section-tone-promo {
  background: linear-gradient(125deg, rgba(239, 246, 255, 0.95) 0%, rgba(254, 243, 199, 0.55) 55%, rgba(186, 230, 253, 0.45) 100%);
}

.section-tone-mint {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.65) 0%, rgba(255, 255, 255, 0.55) 100%);
}

.section-tone-warm {
  background: linear-gradient(185deg, rgba(255, 251, 235, 0.85) 0%, rgba(254, 243, 199, 0.35) 50%, rgba(240, 249, 255, 0.5) 100%);
}

.section-tone-teal {
  background: linear-gradient(175deg, rgba(224, 242, 254, 0.35) 0%, rgba(239, 246, 255, 0.55) 100%);
}

.section-tone-faq {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(239, 246, 255, 0.45) 100%);
}

@media (min-width: 768px) {
  .section {
    padding: clamp(3rem, 5vw, 3.75rem) clamp(1.25rem, 4vw, 1.75rem);
  }
}

/* Portada: secciones con más aire (lectura menos densa) */
.page-home .section {
  padding: clamp(1.35rem, 3.8vw, 2.35rem) clamp(0.75rem, 3.8vw, 1.35rem);
}

@media (min-width: 768px) {
  .page-home .section {
    padding: clamp(1.75rem, 4vw, 2.85rem) clamp(1rem, 3.5vw, 1.6rem);
  }
}

@media (min-width: 1024px) {
  .page-home .section {
    padding: clamp(2rem, 4.5vw, 3.15rem) clamp(1.1rem, 3.2vw, 1.75rem);
  }
}

.section-inner {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  min-width: 0;
  box-sizing: border-box;
}

.section-title {
  font-size: clamp(1.25rem, 2.5vw + 0.65rem, 1.5rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
  position: relative;
  padding-bottom: 0.55rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3.25rem;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color-emerald), var(--color-teal), #0ea5e9);
}

.section-intro {
  color: var(--color-muted);
  margin: 0 0 2rem;
  max-width: 42rem;
  line-height: var(--prose-line-height, 1.62);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.page-home .section-intro {
  margin-bottom: clamp(0.85rem, 2.4vw, 1.45rem);
  line-height: var(--prose-line-height, 1.62);
}

.page-home .section-title {
  margin-bottom: clamp(0.45rem, 1.5vw, 0.75rem);
  padding-bottom: clamp(0.35rem, 1.1vw, 0.5rem);
}

.grid-cards {
  display: grid;
  gap: 1rem;
}

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

.card {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(91, 143, 212, 0.15);
  background: linear-gradient(165deg, #ffffff 0%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow:
    0 4px 20px rgba(15, 23, 42, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-colored);
  border-color: rgba(91, 143, 212, 0.35);
}

.card--accent-emerald {
  border-top: 4px solid var(--color-emerald);
}

.card--accent-amber {
  border-top: 4px solid #f59e0b;
}

.card--accent-teal {
  border-top: 4px solid var(--color-teal);
}

.hero-inner > .card {
  background: linear-gradient(160deg, #ffffff 0%, rgba(239, 246, 255, 0.65) 100%);
  border-top: 4px solid var(--color-teal);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #0f172a;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.card-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-teal);
}

.card-lead {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #334155;
}

.card-bullets {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.card-bullets li {
  margin-bottom: 0.45rem;
}

.card-bullets li:last-child {
  margin-bottom: 0;
}

/* Servicios — bloques detallados */
.services-kicker {
  margin: 0 0 0.5rem;
  max-width: 42rem;
  font-size: clamp(0.72rem, 1.65vw + 0.5rem, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-emerald-dark);
  line-height: 1.35;
}

.services-intro {
  margin: 0 0 1.15rem;
  max-width: 40rem;
  font-size: clamp(0.94rem, 2vw + 0.75rem, 1rem);
  line-height: var(--prose-line-height, 1.62);
  color: #334155;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.service-list--compact {
  font-size: 0.9rem;
}

.service-list--compact li {
  margin-bottom: 0.35rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Suscríbete — contacto inmediato WhatsApp */
.subscribe-section {
  padding-top: clamp(1.75rem, 5vw, 2.25rem);
  padding-bottom: clamp(1.75rem, 5vw, 2.25rem);
}

.page-home .subscribe-section {
  padding-top: clamp(0.55rem, 2vw, 1rem);
  padding-bottom: clamp(0.55rem, 2vw, 1rem);
}

.subscribe-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.page-home .subscribe-inner {
  gap: clamp(0.55rem, 2vw, 1rem);
}

.page-home .section-app-panel {
  padding: clamp(0.85rem, 2.8vw, 1.65rem) clamp(0.55rem, 2.8vw, 1.15rem);
}

.page-home .section-gallery-showcase {
  padding: clamp(0.65rem, 2.5vw, 1.35rem) clamp(0.5rem, 3vw, 1.1rem);
}

.page-home .services-carousel-track {
  gap: clamp(0.45rem, 2vw, 0.85rem);
}

.page-home .app-highlight-grid {
  gap: clamp(0.45rem, 2vw, 0.95rem);
  margin-top: clamp(0.45rem, 2vw, 1rem);
}

.page-home .app-highlight-card {
  padding: clamp(0.65rem, 2vw, 1rem) clamp(0.7rem, 2vw, 1.1rem);
}

.page-home .app-panel-links {
  margin-top: clamp(0.55rem, 2vw, 1.1rem);
  gap: clamp(0.45rem, 1.5vw, 0.65rem);
}

.page-home .instagram-box {
  padding: clamp(0.75rem, 2.5vw, 1.65rem) clamp(0.65rem, 3vw, 1.35rem);
  gap: clamp(0.55rem, 2vw, 1.15rem);
}

@media (min-width: 768px) {
  .subscribe-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .subscribe-copy {
    flex: 1 1 14rem;
    min-width: 12rem;
  }

  .subscribe-form {
    flex: 2 1 22rem;
  }
}

.subscribe-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.subscribe-tagline {
  margin: 0;
  font-size: 0.95rem;
  color: #475569;
  font-weight: 600;
}

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.subscribe-form input {
  flex: 1 1 140px;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 2px solid rgba(91, 143, 212, 0.35);
  font-family: inherit;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.95);
}

.subscribe-form input:focus {
  outline: none;
  border-color: var(--color-emerald);
  box-shadow: 0 0 0 3px rgba(91, 143, 212, 0.2);
}

.subscribe-form .btn-wa {
  flex: 1 1 auto;
  white-space: nowrap;
  min-height: 2.75rem;
}

@media (max-width: 639px) {
  .subscribe-form {
    flex-direction: column;
    align-items: stretch;
  }

  .subscribe-form input {
    flex: 1 1 auto;
    width: 100%;
    min-height: 2.75rem;
  }

  .subscribe-form .btn-wa {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}

.subscribe-microcopy {
  margin: 0;
  width: 100%;
  font-size: 0.78rem;
  color: #64748b;
}

.btn-wa {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

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

.card-bullets--tight li {
  margin-bottom: 0.3rem;
}

.card-mini-cta {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-emerald-dark);
  text-decoration: none;
  border-bottom: 2px solid rgba(37, 99, 235, 0.35);
}

.card-mini-cta:hover {
  border-bottom-color: var(--color-emerald);
}

.instagram-lead a {
  font-weight: 700;
  color: var(--color-emerald-dark);
}

/* Carrusel horizontal — Servicios */
.services-carousel {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.services-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: manipulation;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  scrollbar-width: thin;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.15rem max(0.25rem, env(safe-area-inset-left, 0px)) 0.35rem max(0.25rem, env(safe-area-inset-right, 0px));
}

.services-carousel-viewport::-webkit-scrollbar {
  height: 5px;
}

.services-carousel-viewport::-webkit-scrollbar-thumb {
  background: rgba(91, 143, 212, 0.4);
  border-radius: 999px;
}

.services-carousel-viewport:focus-visible {
  outline: 2px solid var(--color-emerald);
  outline-offset: 4px;
}

.services-carousel-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.85rem;
  width: max-content;
  min-height: 100%;
}

.services-carousel .service-card {
  flex: 0 0 min(
    22rem,
    calc(
      100vw - var(--services-carousel-card-gutter, 2.85rem) - env(safe-area-inset-left, 0px) -
        env(safe-area-inset-right, 0px)
    )
  );
  max-width: min(
    22rem,
    calc(
      100vw - var(--services-carousel-card-gutter, 2.85rem) - env(safe-area-inset-left, 0px) -
        env(safe-area-inset-right, 0px)
    )
  );
  flex-shrink: 0;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  margin: 0;
}

@media (max-width: 767.98px) {
  .page-home #servicios .services-carousel {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .page-home #servicios .services-carousel-viewport {
    padding: 0.15rem max(0.25rem, env(safe-area-inset-left, 0px)) 0.35rem
      max(0.25rem, env(safe-area-inset-right, 0px));
  }

  /* Carrusel vertical: lista de tarjetas con snap; alto limitado si no hay shell flex */
  .services-carousel-viewport {
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-snap-stop: normal;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y pinch-zoom;
    overscroll-behavior-y: contain;
    overscroll-behavior-x: none;
    scrollbar-width: thin;
    max-height: min(56vh, 480px);
    min-height: 13rem;
  }

  .services-carousel-viewport::-webkit-scrollbar {
    width: 5px;
    height: auto;
  }

  .services-carousel-viewport::-webkit-scrollbar-thumb {
    background: rgba(91, 143, 212, 0.35);
    border-radius: 999px;
  }

  .services-carousel-track {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: min-content;
    gap: 0.65rem;
  }

  .services-carousel .service-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    box-sizing: border-box;
  }

  /* En móvil las flechas son redundantes con el gesto vertical */
  .services-carousel-prev,
  .services-carousel-next {
    display: none !important;
  }

  .services-carousel-toolbar {
    margin-top: 0.5rem;
    justify-content: center;
    gap: 0.35rem;
  }

  .services-carousel-dots {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
  }
}

@media (min-width: 768px) {
  .services-carousel .service-card {
    flex: 0 0 clamp(16rem, 42vw, 21rem);
    max-width: 21rem;
    min-width: 0;
  }
}

@media (min-width: 1024px) {
  .services-carousel .service-card {
    flex: 0 0 clamp(15rem, 26vw, 19rem);
    max-width: 19rem;
    min-width: 0;
  }
}

.services-carousel-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.45rem;
  flex-wrap: wrap;
}

.services-carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid rgba(91, 143, 212, 0.35);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.9));
  color: var(--color-emerald-dark);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
  flex-shrink: 0;
}

.services-carousel-btn:hover {
  background: rgba(91, 143, 212, 0.12);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.12);
}

.services-carousel-btn:focus-visible {
  outline: 2px solid var(--color-emerald);
  outline-offset: 2px;
}

.services-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 1;
  min-width: min(100%, 12rem);
}

.services-carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(91, 143, 212, 0.35);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.services-carousel-dot.is-active {
  background: var(--color-emerald);
  transform: scale(1.25);
}

.services-carousel-dot:focus-visible {
  outline: 2px solid var(--color-emerald);
  outline-offset: 2px;
}

.service-card {
  padding: 1.35rem 1.35rem 1.35rem 1.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #ffffff 0%, rgba(248, 250, 252, 0.96) 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-left-width: 5px;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.service-card:hover {
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.09);
  transform: translateY(-2px);
}

.service-card--emerald {
  border-left-color: var(--color-emerald);
}

.service-card--amber {
  border-left-color: #0ea5e9;
}

.service-card--teal {
  border-left-color: var(--color-teal);
}

.service-card--outline {
  border-left-color: #94a3b8;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(241, 245, 249, 0.5));
}

.service-title {
  margin: 0 0 0.65rem;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.25;
}

.service-hook {
  margin: 0 0 0.85rem;
  font-size: 0.93rem;
  line-height: 1.65;
  color: #475569;
}

.service-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--color-muted);
}

.service-list li {
  margin-bottom: 0.45rem;
}

.service-list li:last-child {
  margin-bottom: 0;
}

.service-disclaimer {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.55);
  font-size: 0.85rem;
  line-height: 1.55;
  color: #64748b;
}

.instagram-box {
  display: grid;
  gap: clamp(1.15rem, 3vw, 1.5rem);
  align-items: center;
  padding: clamp(1.15rem, 4vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(91, 143, 212, 0.28);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(239, 246, 255, 0.85) 38%,
    rgba(254, 243, 199, 0.45) 100%
  );
  box-shadow:
    var(--shadow-colored),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  position: relative;
  overflow: hidden;
}

.instagram-box::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.instagram-box > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .instagram-box {
    grid-template-columns: 1fr auto;
    gap: 2rem;
  }
}

.instagram-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.instagram-avatar-link {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  border-radius: 999px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.instagram-avatar-link:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 28px rgba(219, 39, 119, 0.35);
}

.instagram-avatar-link:focus-visible {
  outline: 3px solid rgba(219, 39, 119, 0.55);
  outline-offset: 3px;
}

.instagram-head img {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.instagram-url-line {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
}

.instagram-url-line a {
  color: var(--color-teal);
  text-decoration: none;
  word-break: break-all;
}

.instagram-url-line a:hover {
  text-decoration: underline;
}

.instagram-lead {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.65;
  font-size: 1rem;
}

.instagram-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
  min-width: min(100%, 17rem);
}

.instagram-actions .btn {
  text-align: center;
}

.instagram-note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-muted);
  font-style: italic;
}

.instagram-box .section-title::after {
  background: linear-gradient(90deg, var(--color-emerald), var(--color-teal));
}

.form-panel {
  max-width: 36rem;
  width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
  padding: clamp(1.15rem, 4vw, 1.75rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(91, 143, 212, 0.22);
  background: linear-gradient(175deg, #ffffff 0%, rgba(239, 246, 255, 0.45) 100%);
  box-shadow: var(--shadow-colored);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #334155;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 2px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(91, 143, 212, 0.18);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.page-home .form-panel {
  padding: clamp(0.65rem, 2.5vw, 1.2rem);
}

.page-home .form-group {
  margin-bottom: 0.55rem;
}

.page-home .form-group label {
  margin-bottom: 0.22rem;
  font-size: 0.76rem;
}

.page-home .form-group input,
.page-home .form-group textarea {
  padding: 0.48rem 0.62rem;
  font-size: 0.9rem;
}

.page-home .form-group textarea {
  min-height: 88px;
}

.form-msg {
  font-size: 0.875rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  display: none;
}

.form-msg.ok {
  display: block;
  background: rgba(91, 143, 212, 0.12);
  color: var(--color-emerald-dark);
}

.form-msg.err {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

.faq details {
  border: 1px solid rgba(91, 143, 212, 0.18);
  border-radius: var(--radius-lg);
  padding: clamp(0.85rem, 3vw, 1rem) clamp(0.85rem, 3vw, 1.25rem);
  margin-bottom: 0.75rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.faq details:hover {
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.faq details[open] {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.12);
}

.faq summary {
  padding: 0.65rem 0;
  min-height: 2.75rem;
  box-sizing: border-box;
  font-weight: 600;
  cursor: pointer;
  color: #0f172a;
}

.faq details[open] summary {
  margin-bottom: 0.5rem;
  color: var(--color-emerald-dark);
}

.faq p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.page-home .faq details {
  padding: clamp(0.42rem, 2vw, 0.62rem) clamp(0.5rem, 2vw, 0.8rem);
  margin-bottom: 0.42rem;
}

.page-home .faq summary {
  padding: 0.42rem 0;
  min-height: 2.35rem;
  font-size: 0.86rem;
}

.page-home .faq p {
  font-size: 0.84rem;
  line-height: 1.42;
}

.page-home .site-footer {
  margin-top: 0;
  padding-bottom: max(clamp(1.5rem, 4vw, 2rem), calc(5.25rem + env(safe-area-inset-bottom, 0px)));
}

.site-footer {
  margin-top: 0;
  padding-top: clamp(1.75rem, 4.5vw, 2.5rem);
  padding-bottom: max(clamp(1.25rem, 3.5vw, 1.75rem), env(safe-area-inset-bottom, 0px));
  padding-left: max(clamp(1rem, 4vw, 1.5rem), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(1rem, 4vw, 1.5rem), env(safe-area-inset-right, 0px));
  background: linear-gradient(165deg, #16181e 0%, #12141a 55%, #0d6b4c 160%);
  color: #f3f4f1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  overflow-x: clip;
}

.footer-inner {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  gap: clamp(1.35rem, 4vw, 2rem);
  align-items: end;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }
}

.footer-brand {
  min-width: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-logo {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw + 0.6rem, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-tagline {
  margin: 0;
  max-width: 26rem;
  font-size: clamp(0.86rem, 1.2vw + 0.55rem, 0.95rem);
  line-height: 1.45;
  font-weight: 500;
  color: rgba(243, 244, 241, 0.78);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.footer-contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.footer-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-width: min(100%, 10.5rem);
  min-height: 2.35rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font-size: clamp(0.82rem, 1.2vw + 0.65rem, 0.88rem);
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

@media (min-width: 480px) {
  .footer-chip {
    flex: 0 1 auto;
    min-width: unset;
    justify-content: flex-start;
  }
}

.footer-chip-icon {
  flex-shrink: 0;
  opacity: 0.95;
}

.footer-chip--wa {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.footer-chip--wa:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.footer-chip--ig {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.footer-chip--ig:hover {
  background: linear-gradient(45deg, rgba(240, 148, 51, 0.35), rgba(220, 39, 103, 0.35));
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.footer-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: var(--color-emerald);
  border: 1px solid transparent;
  transition: background 0.2s ease, transform 0.15s ease;
}

.footer-cta:hover {
  background: #17a37a;
  transform: translateY(-1px);
}

.footer-cta--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.footer-cta--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1rem;
  align-content: end;
  min-width: 0;
}

@media (min-width: 768px) {
  .footer-nav {
    justify-items: end;
    text-align: right;
  }
}

.footer-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: rgba(243, 244, 241, 0.82);
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-nav a:hover {
  color: #fff;
  border-bottom-color: rgba(31, 169, 122, 0.7);
}

.site-footer .copyright {
  max-width: 64rem;
  margin: clamp(1.25rem, 3.5vw, 1.75rem) auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
  font-size: 0.78rem;
  color: rgba(243, 244, 241, 0.55);
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .site-footer .copyright {
    text-align: center;
  }
}

.copyright {
  width: 100%;
  margin-bottom: 0;
}

@media (max-width: 379px) {
  .footer-contact-chips {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-chip {
    min-width: 100%;
  }
}

@media (orientation: landscape) and (max-height: 480px) {
  .site-footer {
    padding-top: 1.25rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  }

  .site-footer .copyright {
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .section {
    padding-top: clamp(1.5rem, 4vh, 2rem);
    padding-bottom: clamp(1.5rem, 4vh, 2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-chip,
  .footer-cta {
    transition: none;
  }
}

/* Gestión */
body.page-gestion {
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px))
    max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  background: linear-gradient(165deg, var(--cream) 0%, var(--mint-50) 45%, #f0f7ff 100%);
}

.gestion-wrap {
  max-width: 48rem;
  margin: 0 auto;
}

.gestion-card {
  background: linear-gradient(175deg, #fff 0%, rgba(239, 246, 255, 0.5) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(91, 143, 212, 0.22);
  padding: clamp(1.15rem, 4vw, 1.5rem);
  box-shadow: var(--shadow-colored);
  overflow-x: clip;
}

#tabla-contenedor {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.35rem;
  padding: 0 0.35rem;
}

#tabla-contenedor table.solicitudes {
  min-width: 32rem;
}

.pin-form {
  margin-bottom: 1.5rem;
}

.pin-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pin-form input {
  width: 100%;
  max-width: 16rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(120, 113, 108, 0.35);
  font-size: 1rem;
}

table.solicitudes {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

table.solicitudes th,
table.solicitudes td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(120, 113, 108, 0.15);
}

table.solicitudes th {
  background: rgba(91, 143, 212, 0.08);
  font-weight: 600;
}

.empty-state {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* ——— Panel seguimiento (tarjetas claras + acento azul) ——— */
.section-app-panel {
  padding: clamp(2.25rem, 5vw, 3rem) clamp(0.85rem, 4vw, 1.75rem);
  background: linear-gradient(180deg, #fff 0%, rgba(248, 250, 252, 0.92) 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.section-title--app .section-title-chevron {
  color: var(--color-teal);
  font-weight: 400;
  margin-left: 0.15em;
}

.section-intro--app {
  max-width: 42rem;
}

.app-highlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.35rem;
}

@media (min-width: 768px) {
  .app-highlight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

.app-highlight-card {
  background: linear-gradient(165deg, #fff 0%, rgba(239, 246, 255, 0.5) 100%);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(91, 143, 212, 0.15);
  box-shadow: var(--shadow);
}

.app-highlight-icon {
  display: block;
  font-size: 1.05rem;
  color: var(--color-teal);
  margin-bottom: 0.4rem;
  line-height: 1;
}

.app-highlight-title {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.app-highlight-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.app-panel-links {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.section-inner--seguimiento .section-title--app {
  margin-bottom: 0.35rem;
}

.seguimiento-intro {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.seguimiento-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #0369a1;
}

.seguimiento-flow {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(239, 246, 255, 0.92) 0%, rgba(255, 255, 255, 0.65) 100%);
  border: 1px solid rgba(91, 143, 212, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.seguimiento-flow__step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
}

.seguimiento-flow__n {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #0ea5e9 0%, #2563eb 100%);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
}

.seguimiento-flow__txt {
  font-size: 0.84rem;
  line-height: 1.42;
  color: #334155;
  padding-top: 0.08rem;
}

.seguimiento-footnote {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #64748b;
  padding: 0.85rem 0.45rem 0;
  border-top: 1px dashed rgba(148, 163, 184, 0.45);
  text-align: center;
}

.seguimiento-footnote .seguimiento-cta {
  display: block;
  width: 100%;
  max-width: 16rem;
  margin: 0.75rem auto 0;
}

.seguimiento-footnote .seguimiento-portal-link {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.seguimiento-footnote .seguimiento-portal-link:hover {
  text-decoration: underline;
}

.seguimiento-footnote a:not(.seguimiento-portal-link) {
  color: #2563eb;
  font-weight: 600;
}

.services-cta-wrap {
  margin: 1.25rem 0 0;
  text-align: center;
}

.card-mini-cta-btn {
  width: 100%;
  margin-top: 0.65rem;
}

.link-as-btn {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 700;
  color: #2563eb;
  text-decoration: underline;
  cursor: pointer;
}

.link-as-btn:hover {
  color: #1d4ed8;
}

.asesoria-secondary-hint {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
}

.asesoria-secondary-hint a {
  color: var(--color-emerald-dark);
  font-weight: 700;
  text-decoration: none;
}

.asesoria-secondary-hint a:hover {
  text-decoration: underline;
}

.hero-featured-card__cta.btn-booking {
  border: none;
  cursor: pointer;
}

.seguimiento-footnote strong {
  color: #475569;
  font-weight: 700;
}

@media (min-width: 768px) {
  .seguimiento-flow {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.85rem 0.75rem;
  }

  .seguimiento-flow__step {
    flex: 1 1 calc(33.333% - 0.5rem);
    min-width: min(100%, 12rem);
    grid-template-columns: auto 1fr;
  }
}

/* Visor: 1–3 medios visibles según ancho, sin scroll horizontal */
.gallery-viewer-root {
  width: 100%;
}

.gallery-viewer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(0.25rem, 2vw, 0.65rem);
  align-items: stretch;
  width: 100%;
  max-width: min(100%, 72rem);
  margin: 0 auto;
  outline: none;
}

.gallery-viewer:focus-visible {
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

.gallery-viewer-nav {
  align-self: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-emerald-dark);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  transition: background 0.15s ease, transform 0.15s ease;
}

.gallery-viewer-nav:hover:not(:disabled) {
  background: rgba(239, 246, 255, 0.98);
  transform: scale(1.04);
}

.gallery-viewer-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.gallery-viewer-stage {
  position: relative;
  min-width: 0;
  border-radius: clamp(14px, 3vw, 18px);
  overflow: hidden;
  padding: 0.2rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.02));
  max-height: min(52vh, 440px);
}

.gallery-viewer-row {
  display: grid;
  gap: clamp(0.35rem, 1.5vw, 0.65rem);
  width: 100%;
  height: 100%;
  align-items: stretch;
  min-height: min(38vh, 300px);
}

.gallery-viewer-cell {
  min-width: 0;
  display: flex;
  align-items: stretch;
}

.gallery-viewer-cell .gallery-card {
  position: relative;
  width: 100%;
  flex: 1;
}

.gallery-viewer-cell .gallery-card-inner {
  aspect-ratio: 4 / 3;
  height: auto;
  max-height: min(42vh, 320px);
}

.gallery-viewer-stage .gallery-thumb-img,
.gallery-viewer-stage .gallery-thumb-video {
  object-fit: cover;
  object-position: center;
  background: #0f172a;
}

.gallery-viewer-counter {
  margin: clamp(1rem, 2.4vw, 1.5rem) 0 0;
  text-align: right;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(71, 85, 105, 0.78);
}

/* Cuadrícula dinámica: varias fotos/videos visibles; clic → lightbox */
.gallery-viewer-root--grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 0;
}

/* Cuadrícula editorial — galería premium */
.gallery-ig-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.85rem, 2.2vw, 1.5rem);
  width: 100%;
  max-width: min(100%, 78rem);
  margin-inline: auto;
  align-content: start;
}

.gallery-ig-grid__cell {
  min-width: 0;
  display: flex;
}

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

@media (min-width: 1180px) {
  .gallery-ig-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 1.8vw, 1.75rem);
  }
}

@media (max-width: 420px) {
  .gallery-ig-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
}

/* Tarjeta Instagram: embed en cuadrícula (misma web). */
.gallery-ig-tile--embed {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: clamp(12px, 2.2vw, 18px);
  background: #fff;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gallery-ig-tile--embed:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 16px 40px rgba(15, 23, 42, 0.12);
}

.gallery-ig-tile__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  aspect-ratio: 4 / 5;
  max-height: min(92vw, 520px);
}

.gallery-card-igviewport {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  background: #0f172a;
}

.gallery-card-igpreview-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(245, 133, 41, 0.22), transparent 55%),
    radial-gradient(circle at 75% 78%, rgba(220, 39, 67, 0.22), transparent 58%),
    linear-gradient(145deg, #0f172a 0%, #1e1b4b 55%, #0f172a 100%);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.gallery-card-igpreview-wrap--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gallery-card-igpreview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-card-igpreview--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem;
  text-align: center;
  color: rgba(248, 250, 252, 0.9);
}

.gallery-card-igpreview-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #f58529 0%, #dc2743 50%, #833ab4 100%);
  box-shadow: 0 6px 18px rgba(220, 39, 67, 0.35);
}

.gallery-card-igpreview-text {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  max-width: 95%;
  padding: 0 0.5rem;
}

.gallery-card-igslot {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #fff;
}

.gallery-card-igslot-scaler {
  width: 108%;
  transform: scale(0.88);
  transform-origin: top center;
  margin-top: 0.15rem;
}

.gallery-card-igslot iframe,
.gallery-card-igslot .instagram-media,
.gallery-card-igslot .instagram-media-rendered {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  display: block !important;
}

.gallery-card-igerror {
  margin: 0;
  padding: 0.85rem;
  font-size: 0.82rem;
  color: #b91c1c;
  background: #fef2f2;
  text-align: center;
}

/* ——— Tarjeta editorial premium: foto/video/IG abren lightbox ——— */
.gallery-ig-tile--popup {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: clamp(14px, 2vw, 20px);
  background: #0b1220;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  font: inherit;
  color: #f8fafc;
  isolation: isolate;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 18px 40px rgba(2, 6, 23, 0.18),
    0 2px 6px rgba(2, 6, 23, 0.08);
  transition:
    transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.45s ease;
}

.gallery-ig-tile--popup:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 28px 60px rgba(2, 6, 23, 0.28),
    0 4px 14px rgba(2, 6, 23, 0.14);
}

.gallery-ig-tile--popup:focus-visible {
  outline: none;
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px rgba(14, 165, 233, 0.55),
    0 18px 40px rgba(2, 6, 23, 0.2);
}

.gallery-ig-tile__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 55%),
    radial-gradient(120% 80% at 100% 100%, rgba(99, 102, 241, 0.12) 0%, transparent 55%),
    linear-gradient(155deg, #0f172a 0%, #111827 50%, #0b1220 100%);
}

.gallery-ig-tile__media--placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 22px 22px, 11px 11px;
  background-position: 0 0, 11px 11px;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
}

.gallery-ig-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.7s ease;
  filter: saturate(1.05) contrast(1.02);
}

.gallery-ig-tile--popup:hover .gallery-ig-thumb {
  transform: scale(1.06);
  filter: saturate(1.1) contrast(1.04);
}

/* Scrim editorial: oscurece la parte inferior para legibilidad del título */
.gallery-ig-tile__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(2, 6, 23, 0) 0%,
      rgba(2, 6, 23, 0) 38%,
      rgba(2, 6, 23, 0.55) 78%,
      rgba(2, 6, 23, 0.85) 100%
    );
  transition: opacity 0.4s ease, background 0.4s ease;
}

.gallery-ig-tile--popup:hover .gallery-ig-tile__scrim {
  background:
    linear-gradient(
      180deg,
      rgba(2, 6, 23, 0.05) 0%,
      rgba(2, 6, 23, 0.1) 35%,
      rgba(2, 6, 23, 0.65) 78%,
      rgba(2, 6, 23, 0.92) 100%
    );
}

/* Chip de tipo (REEL · POST · FOTO · VIDEO) — frosted glass premium */
.gallery-ig-tile__chip {
  position: absolute;
  top: clamp(0.65rem, 1.6vw, 0.95rem);
  right: clamp(0.65rem, 1.6vw, 0.95rem);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.62rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.95);
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 4px 14px rgba(2, 6, 23, 0.25);
}

/* Monograma elegante para placeholders (sin imagen) */
.gallery-ig-tile__monogram {
  position: absolute;
  top: clamp(0.85rem, 2vw, 1.2rem);
  left: clamp(0.85rem, 2vw, 1.2rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: rgba(248, 250, 252, 0.92);
  pointer-events: none;
}

.gallery-ig-tile__monogram-mark {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.32em;
  line-height: 1;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(248, 250, 252, 0.28);
  width: max-content;
}

.gallery-ig-tile__monogram-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.72);
}

/* Botón play "glass" */
.gallery-ig-tile__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: clamp(54px, 11vw, 64px);
  height: clamp(54px, 11vw, 64px);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gallery-ig-tile__play-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow:
    0 8px 24px rgba(2, 6, 23, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.35s ease, border-color 0.35s ease;
}

.gallery-ig-tile__play-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 3px;
  color: #fff;
  filter: drop-shadow(0 4px 10px rgba(2, 6, 23, 0.55));
}

.gallery-ig-tile--popup:hover .gallery-ig-tile__play-ring {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.72);
}

/* Caption editorial — título y byline sobre el scrim */
.gallery-ig-tile__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: clamp(0.85rem, 2.2vw, 1.15rem) clamp(0.95rem, 2.4vw, 1.25rem) clamp(0.9rem, 2.4vw, 1.2rem);
  color: #f8fafc;
}

.gallery-ig-tile__title {
  font-size: clamp(0.92rem, 1.4vw + 0.6rem, 1.05rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.32;
  color: #fff;
  text-shadow: 0 2px 14px rgba(2, 6, 23, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-ig-tile__byline {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(226, 232, 240, 0.82);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-ig-tile--embed,
  .gallery-ig-tile--popup,
  .gallery-ig-thumb,
  .gallery-ig-tile__scrim,
  .gallery-ig-tile__play-ring {
    transition: none !important;
  }

  .gallery-ig-tile--embed:hover,
  .gallery-ig-tile--popup:hover {
    transform: none;
  }

  .gallery-ig-tile--popup:hover .gallery-ig-thumb {
    transform: scale(1.02);
  }

  .gallery-ig-tile--popup:hover .gallery-ig-tile__play-ring {
    transform: scale(1);
  }
}

/* Vista principal de galería: tarjetas tipo YouTube con miniatura visible */
.gallery-ig-grid--showcase {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.8vw, 1.5rem);
}

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

@media (min-width: 1024px) {
  .gallery-ig-grid--showcase {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1440px) {
  .gallery-ig-grid--showcase {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(1.2rem, 2vw, 1.75rem);
  }
}

.gallery-media-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  touch-action: pan-y pinch-zoom;
}

.gallery-media-card__thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: clamp(16px, 2vw, 22px);
  background: linear-gradient(145deg, #0f172a 0%, #111827 60%, #020617 100%);
  box-shadow:
    0 18px 35px rgba(15, 23, 42, 0.12),
    0 3px 10px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.gallery-showcase-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.gallery-showcase-tools .gallery-viewer-counter {
  margin: 0;
}

.gallery-media-card.is-thumb-loaded .gallery-media-card__thumb--preview {
  opacity: 0;
}

.gallery-media-card.is-thumb-loaded .gallery-media-card__thumb--full {
  opacity: 1;
}

.gallery-media-card__media-stack {
  position: absolute;
  inset: 0;
  display: block;
}

.gallery-media-card:hover .gallery-media-card__thumb-wrap {
  transform: translateY(-2px);
  box-shadow:
    0 24px 46px rgba(15, 23, 42, 0.16),
    0 8px 18px rgba(15, 23, 42, 0.1);
}

.gallery-media-card:focus-visible {
  outline: none;
}

.gallery-media-card:focus-visible .gallery-media-card__thumb-wrap {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px rgba(59, 130, 246, 0.48),
    0 18px 35px rgba(15, 23, 42, 0.14);
}

.gallery-media-card__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.5s ease,
    opacity 0.45s ease,
    filter 0.45s ease;
}

.gallery-media-card:hover .gallery-media-card__thumb {
  transform: scale(1.04);
}

.gallery-media-card__thumb--preview {
  opacity: 1;
  filter: blur(16px) saturate(0.95);
  transform: scale(1.08);
}

.gallery-media-card__thumb--full {
  opacity: 0;
  transform: scale(1.01);
  background: #0f172a;
}

.gallery-media-card__thumb-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.38) 100%);
  pointer-events: none;
}

.gallery-media-card__chip {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gallery-media-card__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gallery-media-card__play-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gallery-media-card__play-circle svg {
  margin-left: 2px;
}

.gallery-media-card__placeholder-brand {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.92);
}

.gallery-media-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  padding: 0.85rem 0.15rem 0;
}

.gallery-media-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: clamp(0.98rem, 1.2vw + 0.74rem, 1.08rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.32;
  color: #0f172a;
}

.gallery-media-card__meta,
.gallery-media-card__channel {
  font-size: 0.78rem;
  line-height: 1.35;
  color: #64748b;
}

.gallery-media-card__meta {
  font-weight: 700;
}

.gallery-media-card__channel {
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .gallery-filter-group--category {
    display: none !important;
  }

  .gallery-showcase-tools {
    align-items: stretch;
    gap: 0.55rem;
  }

  .gallery-showcase-tools .gallery-viewer-counter {
    text-align: left;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
  }

  .gallery-media-card__thumb-wrap {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
  }

  .gallery-media-card__body {
    gap: 0.14rem;
    padding: 0.45rem 0.1rem 0;
  }

  .gallery-media-card__title {
    font-size: 0.86rem;
    line-height: 1.2;
    -webkit-line-clamp: 2;
  }

  .gallery-media-card__meta,
  .gallery-media-card__channel {
    font-size: 0.7rem;
    line-height: 1.22;
  }

  .gallery-media-card__channel {
    display: none;
  }

  .gallery-media-card__chip {
    top: 0.55rem;
    left: 0.55rem;
    padding: 0.22rem 0.48rem;
    font-size: 0.56rem;
    letter-spacing: 0.14em;
  }

  .gallery-media-card__play-circle {
    width: 2.7rem;
    height: 2.7rem;
  }

  .gallery-showcase-filters {
    width: 100%;
    gap: 0.42rem;
  }

  .gallery-filter-group {
    gap: 0.24rem;
  }

  .gallery-filter-group {
    position: relative;
  }

  .gallery-filter-group::after {
    content: "";
    position: absolute;
    right: 0.3rem;
    bottom: 0.52rem;
    width: 1.1rem;
    height: 1.7rem;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(248, 250, 252, 0.95));
    border-radius: 0 999px 999px 0;
    opacity: 0.9;
  }

  .gallery-filter-group--category::after {
    display: none;
  }

  .gallery-filter-caption {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .gallery-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(91, 143, 212, 0.45) rgba(219, 234, 254, 0.45);
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    touch-action: pan-x pinch-zoom;
    overscroll-behavior-x: contain;
    padding-bottom: 0.18rem;
  }

  .gallery-filter-bar::-webkit-scrollbar {
    height: 5px;
  }

  .gallery-filter-bar::-webkit-scrollbar-track {
    background: rgba(219, 234, 254, 0.45);
    border-radius: 999px;
  }

  .gallery-filter-bar::-webkit-scrollbar-thumb {
    background: rgba(91, 143, 212, 0.45);
    border-radius: 999px;
  }

  .gallery-filter-bar .gallery-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  body.page-home[data-app-tab="galeria"] #galeria .gallery-showcase-head--compact {
    margin-bottom: 0.15rem;
  }

  body.page-home[data-app-tab="galeria"] #galeria .gallery-lead--compact {
    font-size: 0.78rem;
    line-height: 1.32;
  }

  body.page-home[data-app-tab="galeria"] #galeria .gallery-ig-grid--showcase {
    gap: 0.85rem 0.7rem;
  }

  body.page-home[data-app-tab="galeria"] #galeria .gallery-viewer-root {
    gap: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-media-card__thumb-wrap,
  .gallery-media-card__thumb {
    transition: none;
  }

  .gallery-media-card:hover .gallery-media-card__thumb-wrap {
    transform: none;
  }

  .gallery-media-card:hover .gallery-media-card__thumb {
    transform: scale(1.01);
  }
}

@media (max-width: 480px) {
  .gallery-ig-grid--showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-viewer-nav {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }

  .gallery-viewer-row {
    min-height: min(36vh, 260px);
  }

  .gallery-viewer-cell .gallery-card-inner {
    max-height: min(38vh, 280px);
  }
}

@media (max-width: 360px) {
  .gallery-ig-grid--showcase {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 560px) and (max-width: 767.98px) {
  body.page-home[data-app-tab="galeria"] #galeria .gallery-ig-grid--showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ——— Galería (crema + azul suave, alineada al resto del sitio) ——— */
#inicio,
#galeria,
#servicios,
#seguimiento,
#instagram,
#asesoria {
  scroll-margin-top: calc(4.75rem + env(safe-area-inset-top, 0px));
}

/* Asesoría: composición equilibrada video + copy */
#asesoria.section-tone-teal {
  background: linear-gradient(
    165deg,
    rgba(240, 253, 247, 0.72) 0%,
    rgba(247, 246, 242, 0.9) 48%,
    rgba(248, 250, 252, 0.94) 100%
  );
}

#asesoria .section-inner {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(1.1rem, 3vw, 1.85rem) clamp(1rem, 3.2vw, 1.65rem);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(31, 169, 122, 0.14);
  box-shadow:
    0 10px 32px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  box-sizing: border-box;
}

.page-home #asesoria.section {
  padding-top: clamp(0.65rem, 2vw, 1.15rem);
  padding-bottom: clamp(0.65rem, 2vw, 1.15rem);
}

#asesoria .section-title {
  color: #0f172a;
  margin: 0 0 0.55rem;
  padding-bottom: 0;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

#asesoria .section-title::after {
  display: none;
}

#asesoria .section-intro {
  color: #334155;
  font-weight: 500;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.55;
  max-width: 36ch;
  margin: 0 0 1rem;
}

#asesoria .section-intro strong {
  color: #0f172a;
  font-weight: 700;
}

.asesoria-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.85fr);
  gap: clamp(1.35rem, 3.5vw, 2.75rem);
  align-items: center;
}

.asesoria-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
}

.asesoria-brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  letter-spacing: -0.02em;
  color: var(--color-emerald-dark);
}

.asesoria-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0f766e;
}

.asesoria-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.asesoria-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  color: #1e293b;
}

.asesoria-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 0 0 rgba(31, 169, 122, 0.35);
}

.asesoria-list li.is-inview::before {
  animation: asesoriaDotPulse 1.8s ease-out 1;
}

.asesoria-brand,
.asesoria-kicker,
#asesoria .section-title,
#asesoria .section-intro {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.asesoria-copy.is-inview .asesoria-brand {
  animation: heroCopyRise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.asesoria-copy.is-inview .asesoria-kicker {
  animation: heroCopyRise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.asesoria-copy.is-inview #asesoria-title {
  animation: heroCopyRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.asesoria-copy.is-inview .section-intro {
  animation: heroCopyRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.asesoria-points {
  display: none;
}

.asesoria-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.asesoria-cta {
  width: fit-content;
  min-width: min(100%, 16rem);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.asesoria-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(31, 169, 122, 0.28);
}

.asesoria-media {
  min-width: 0;
  display: flex;
  justify-content: center;
  order: 0;
}

.asesoria-reel-shell,
.asesoria-reel-topbar,
.asesoria-video-badge {
  display: none;
}

.asesoria-reel {
  position: relative;
  width: min(100%, 360px);
  max-height: min(68vh, 560px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 22px;
  background: #0f172a;
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.35) inset;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
  animation: asesoriaReelFloat 5.8s ease-in-out infinite;
}

.asesoria-media.is-inview .asesoria-reel {
  animation:
    asesoriaReelIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both,
    asesoriaReelFloat 5.8s ease-in-out 0.85s infinite;
}

.asesoria-reel:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow:
    0 30px 56px rgba(15, 23, 42, 0.22),
    0 2px 0 rgba(255, 255, 255, 0.35) inset;
}

.asesoria-video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #020617;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.asesoria-reel:hover .asesoria-video {
  transform: scale(1.03);
}

@keyframes asesoriaDotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 169, 122, 0.4);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(31, 169, 122, 0);
  }
}

@keyframes asesoriaReelFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes asesoriaReelIn {
  from {
    opacity: 0.4;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.asesoria-video-note {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.9rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(248, 250, 252, 0.92);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.7) 100%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .asesoria-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .asesoria-media {
    order: -1;
    justify-content: center;
  }

  .asesoria-reel {
    width: min(100%, 320px);
    max-height: min(52vh, 460px);
  }

  #asesoria .section-intro {
    max-width: none;
  }
}

.section-gallery-showcase {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.35rem, 3.5vw, 2rem) clamp(0.85rem, 4vw, 1.5rem);
  background: linear-gradient(
    175deg,
    var(--cream) 0%,
    rgba(239, 246, 255, 0.72) 38%,
    rgba(240, 249, 255, 0.95) 58%,
    rgba(255, 251, 235, 0.35) 100%
  );
  color: var(--color-text);
}

.section-gallery-showcase::before {
  content: "";
  position: absolute;
  inset: -15% -8% auto -8%;
  height: 65%;
  background: radial-gradient(ellipse 75% 70% at 18% 0%, rgba(91, 143, 212, 0.09), transparent 58%),
    radial-gradient(ellipse 55% 50% at 82% 8%, rgba(251, 191, 36, 0.06), transparent 52%);
  pointer-events: none;
  z-index: 0;
}

.section-gallery-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: linear-gradient(rgba(37, 99, 235, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.section-gallery-showcase .gallery-section {
  position: relative;
  z-index: 1;
  max-width: 76rem;
}

.gallery-showcase-head {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 4vw, 2rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.gallery-showcase-head--compact {
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

@media (min-width: 900px) {
  .gallery-showcase-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }

  .gallery-showcase-head-text {
    flex: 1;
    min-width: min(100%, 28rem);
  }

  .gallery-showcase-head--compact {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
  }

  .gallery-showcase-head--compact .gallery-showcase-head-text {
    min-width: 0;
  }
}

.gallery-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin: 0 0 0.5rem;
}

.gallery-showcase-title {
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.65rem;
  color: var(--color-text);
}

.gallery-showcase-title--compact {
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  margin: 0 0 0.2rem;
}

.gallery-showcase-title-accent {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.45em;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: super;
  padding: 0.15em 0.45em;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.95), rgba(254, 243, 199, 0.55));
  border: 1px solid rgba(91, 143, 212, 0.28);
  color: var(--color-emerald-dark);
}

/* Eyebrow editorial encima del título */
.gallery-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.55rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.62);
}

.gallery-eyebrow__rule {
  display: inline-block;
  width: clamp(28px, 4vw, 44px);
  height: 1px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.4) 0%, rgba(14, 165, 233, 0.7) 100%);
}

.gallery-eyebrow__label {
  white-space: nowrap;
}

.gallery-lead {
  color: var(--color-muted);
  max-width: 36rem;
  margin: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.55;
}

.gallery-lead--compact {
  font-size: 0.82rem;
  line-height: 1.4;
  max-width: 26rem;
}

.gallery-filter-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-self: flex-start;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(91, 143, 212, 0.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.gallery-showcase-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}

.gallery-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gallery-filter-caption {
  padding-inline: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(71, 85, 105, 0.9);
}

.gallery-chip {
  appearance: none;
  margin: 0;
  padding: 0.55rem 1.15rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: var(--color-muted);
  background: transparent;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.gallery-chip:hover {
  color: var(--color-text);
  background: rgba(239, 246, 255, 0.85);
}

.gallery-chip.gallery-filter--active {
  color: #fff;
  background: linear-gradient(145deg, var(--color-emerald) 0%, var(--color-teal) 100%);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.28);
}

.gallery-chip:focus-visible {
  outline: 2px solid var(--color-emerald);
  outline-offset: 2px;
}

.gallery-filter-bar--compact {
  padding: 0.28rem;
}

.gallery-filter-bar--compact .gallery-chip {
  padding: 0.42rem 0.85rem;
  font-size: 0.76rem;
}

@media (max-width: 767.98px) {
  .gallery-showcase-filters {
    width: 100%;
    flex-direction: column;
  }

  .gallery-filter-group {
    width: 100%;
  }

  .gallery-filter-bar {
    width: 100%;
  }
}

.gallery-grid--bento {
  display: grid;
  gap: clamp(0.55rem, 1.8vw, 0.85rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Primer tile grande (vista "Todos" con 4+ ítems) */
.gallery-card--featured {
  grid-column: span 2;
}

@media (max-width: 719px) {
  .gallery-card--featured .gallery-card-inner {
    aspect-ratio: 16 / 9;
    min-height: 200px;
  }
}

@media (min-width: 720px) {
  .gallery-grid--bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.65rem, 1.5vw, 1rem);
  }

  .gallery-card--featured {
    grid-row: span 2;
  }
}

.gallery-empty {
  grid-column: 1 / -1;
  color: var(--color-muted);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.95rem;
}

.gallery-empty code {
  font-size: 0.9em;
  background: rgba(15, 23, 42, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

.gallery-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: clamp(14px, 3vw, 20px);
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(91, 143, 212, 0.35), transparent 45%, rgba(251, 191, 36, 0.12));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 3;
}

.gallery-card:hover::before {
  opacity: 1;
}

.gallery-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-colored);
}

.gallery-card:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--cream),
    0 0 0 5px rgba(37, 99, 235, 0.55);
}

.gallery-card-inner {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-card--featured .gallery-card-inner {
  aspect-ratio: 1;
  min-height: min(52vw, 380px);
}

@media (min-width: 720px) {
  .gallery-card--featured .gallery-card-inner {
    min-height: clamp(280px, 36vw, 440px);
  }
}

.gallery-card-visual {
  position: absolute;
  inset: 0;
}

.gallery-thumb-img,
.gallery-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.001);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-card:hover .gallery-thumb-img,
.gallery-card:hover .gallery-thumb-video {
  transform: scale(1.06);
}

.gallery-thumb-video {
  pointer-events: none;
}

.gallery-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 48%);
  pointer-events: none;
  z-index: 1;
}

.gallery-card-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.85rem 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.gallery-card-type {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(8px);
}

.gallery-play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.95);
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.42) 100%);
  pointer-events: none;
  z-index: 1;
}

.gallery-play-badge svg {
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
  opacity: 0.95;
}

/* ——— Galería: placeholder, Instagram en línea ——————————————— */
/* Mientras la imagen baja, fondo oscuro de relleno (sin ocultar la imagen). */
.gallery-thumb-img {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Cuando no hay miniatura disponible (placeholder sin descargas). */
.gallery-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(91, 143, 212, 0.25), transparent 55%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
  color: rgba(248, 250, 252, 0.55);
}

.gallery-thumb-placeholder--insta {
  background:
    radial-gradient(circle at 30% 25%, rgba(245, 133, 41, 0.35), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(220, 39, 67, 0.35), transparent 60%),
    linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #0f172a 100%);
}

.gallery-thumb-placeholder-text {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(248, 250, 252, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
}

/* Enlace al perfil dentro del lead de la galería. */
.gallery-lead-link {
  font-weight: 700;
  color: #b8326c;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.gallery-lead-link:hover {
  color: #833ab4;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.88) 0%, rgba(2, 6, 23, 0.96) 100%);
  backdrop-filter: blur(10px);
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-close {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 1002;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.15s ease;
}

.lightbox-close:hover {
  background: rgba(91, 143, 212, 0.35);
  box-shadow: 0 0 0 1px rgba(147, 197, 253, 0.35);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1002;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.15s ease;
}

.lightbox-nav:hover {
  background: rgba(91, 143, 212, 0.3);
  box-shadow: 0 0 0 1px rgba(147, 197, 253, 0.3);
}

.lightbox-prev {
  left: max(0.5rem, env(safe-area-inset-left));
}

.lightbox-next {
  right: max(0.5rem, env(safe-area-inset-right));
}

.lightbox-nav[hidden] {
  display: none;
}

.lightbox-stage {
  width: 100%;
  max-width: min(96vw, 1100px);
  max-height: min(88vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media {
  max-width: 100%;
  max-height: min(88vh, 900px);
  width: auto;
  height: auto;
  border-radius: clamp(12px, 2vw, 16px);
  box-shadow:
    0 0 0 1px rgba(147, 197, 253, 0.2),
    0 32px 80px rgba(0, 0, 0, 0.55);
}

.lightbox-video {
  width: 100%;
  background: #000;
}

/* Visor interno: el contenido de Instagram se reproduce dentro de la web. */
.lightbox-ig {
  position: relative;
  width: min(96vw, 560px);
  height: min(90vh, 880px);
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.lightbox-ig-frame {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: clamp(12px, 2vw, 18px);
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(147, 197, 253, 0.18),
    0 32px 80px rgba(0, 0, 0, 0.55);
  display: block;
}

.lightbox-ig-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(248, 250, 252, 0.92);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 25%, rgba(245, 133, 41, 0.18), transparent 55%),
    radial-gradient(circle at 75% 78%, rgba(220, 39, 67, 0.18), transparent 58%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.85), rgba(30, 27, 75, 0.85));
  border-radius: clamp(12px, 2vw, 18px);
  z-index: 1;
}

.lightbox-ig-fallback {
  background: rgba(15, 23, 42, 0.65);
  padding: 1.5rem;
  border-radius: clamp(12px, 2vw, 16px);
  color: rgba(248, 250, 252, 0.92);
  text-align: center;
  max-width: 420px;
}

.lightbox-ig-fallback p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.lightbox-ig-fallback-meta {
  font-size: 0.82rem !important;
  color: rgba(248, 250, 252, 0.7);
}

@media (max-width: 480px) {
  .lightbox-ig {
    width: 100vw;
    height: 100dvh;
    height: 100svh;
  }

  .lightbox-ig-frame {
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-card {
    transition: none;
  }

  .gallery-card:hover {
    transform: none;
  }

  .gallery-card:hover .gallery-thumb-img,
  .gallery-card:hover .gallery-thumb-video {
    transform: none;
  }

  .gallery-card::before {
    transition: none;
  }

  .gallery-card:hover::before {
    opacity: 0;
  }
}

/* ——— Home: pantallas estrechas — más aire (menos sensación de bloque denso) ——— */
@media (max-width: 767.98px) {
  .page-home .section {
    padding: clamp(0.85rem, 3.2vw, 1.15rem) clamp(0.65rem, 4vw, 1rem);
  }

  .page-home .hero-wrap {
    padding-bottom: 0;
  }

  .page-home .hero-inner {
    gap: 0.85rem;
    padding: 0.75rem clamp(0.55rem, 3.5vw, 0.85rem) 1rem;
    border-radius: var(--radius);
  }

  .page-home .hero-stage__visual {
    min-height: min(48vw, 200px);
    border-radius: 16px;
  }

  .page-home .hero-welcome-head {
    gap: 0.6rem;
    padding: 0.5rem 0 0;
    margin-top: 0.2rem;
  }

  .page-home .hero-welcome-avatar {
    width: 48px;
    height: 48px;
  }

  .page-home .hero-welcome-kicker {
    font-size: 0.9rem;
    margin-bottom: 0.22rem;
  }

  .page-home .hero-welcome-sub {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .page-home .hero-atmosphere {
    gap: 0.45rem;
    padding-top: 0.45rem;
    margin-top: 0.1rem;
  }

  .page-home .hero-quick-nav {
    gap: 0.48rem;
  }

  .page-home .hero-quick-nav__link {
    padding: 0.42rem 0.72rem;
    font-size: 0.76rem;
  }

  .page-home .hero-inner .badge {
    margin-bottom: 0.38rem;
    font-size: 0.62rem;
    padding: 0.22rem 0.52rem;
  }

  .page-home .hero-inner h1 {
    font-size: clamp(1.25rem, 4.8vw + 0.28rem, 1.62rem);
    margin-bottom: 0.42rem;
    line-height: 1.2;
  }

  .page-home .hero-inner .lead {
    margin-bottom: 0.65rem;
    font-size: 0.84rem;
    line-height: 1.48;
  }

  .page-home .hero-actions {
    gap: 0.48rem;
  }

  .page-home .hero-actions .btn {
    min-height: 2.35rem;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
    font-size: 0.74rem;
  }

  .page-home .card--hero-side {
    padding: 0.68rem 0.75rem;
  }

  .page-home .card-bullets--tight li {
    font-size: 0.84rem;
    line-height: 1.46;
  }

  .page-home .card-mini-cta {
    margin-top: 0.52rem;
    font-size: 0.8rem;
  }

  .page-home .hero-featured {
    gap: 0.75rem;
    padding-top: 0.25rem;
  }

  .page-home .hero-featured__kicker {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .page-home .hero-featured__title {
    font-size: 1.12rem;
  }

  .page-home .hero-featured__intro {
    font-size: 0.82rem;
    line-height: 1.48;
  }

  .page-home .hero-featured__grid {
    gap: 0.78rem;
  }

  .page-home .hero-featured-card {
    gap: 0.72rem;
    padding: 0.78rem 0.72rem;
    border-radius: 18px;
  }

  .page-home .hero-featured-card__eyebrow {
    font-size: 0.58rem;
  }

  .page-home .hero-featured-card__title {
    font-size: 1rem;
  }

  .page-home .hero-featured-card__lead {
    font-size: 0.82rem;
    line-height: 1.46;
  }

  .page-home .hero-featured-card__media-shell {
    width: min(100%, 248px);
    padding: 0.58rem;
    border-radius: 22px;
  }

  .page-home .hero-featured-card__media-frame {
    border-radius: 18px;
  }

  .page-home .hero-featured-card__badge {
    top: 0.65rem;
    left: 0.65rem;
    font-size: 0.56rem;
    padding: 0.28rem 0.5rem;
  }

  .page-home .hero-featured-card__note {
    padding: 0.72rem 0.82rem;
    font-size: 0.68rem;
  }

  .page-home .hero-featured-card__bullets {
    font-size: 0.8rem;
    line-height: 1.46;
  }

  .page-home .hero-featured-card__cta {
    min-height: 2.45rem;
    font-size: 0.78rem;
  }

  .page-home .hero-featured-card__support {
    font-size: 0.74rem;
  }

  .page-home .subscribe-section {
    padding-top: 0.55rem;
    padding-bottom: 0.6rem;
  }

  .page-home .subscribe-inner {
    gap: 0.55rem;
  }

  .page-home .subscribe-title {
    font-size: 1.05rem;
  }

  .page-home .subscribe-tagline {
    font-size: 0.8rem;
    line-height: 1.48;
  }

  .page-home .section-title {
    margin-bottom: 0.42rem;
    padding-bottom: 0.38rem;
    font-size: clamp(1rem, 3.4vw + 0.38rem, 1.22rem);
  }

  .page-home .section-intro,
  .page-home .services-intro {
    margin-bottom: 0.78rem;
    font-size: 0.82rem;
    line-height: 1.48;
  }

  .page-home .services-kicker {
    margin-bottom: 0.42rem;
    font-size: 0.64rem;
    letter-spacing: 0.04em;
  }

  .page-home .services-carousel-track {
    gap: 0.48rem;
  }

  .page-home .services-carousel-toolbar {
    margin-top: 0.48rem;
    gap: 0.42rem;
  }

  .page-home .services-carousel-btn {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1.1rem;
  }

  .page-home .service-card {
    padding: 0.68rem 0.72rem 0.68rem 0.7rem;
  }

  .page-home .service-title {
    font-size: 0.9rem;
    margin-bottom: 0.36rem;
  }

  .page-home .service-list {
    font-size: 0.76rem;
    line-height: 1.44;
  }

  .page-home .service-list li {
    margin-bottom: 0.28rem;
  }

  .page-home .section-app-panel {
    padding: 0.72rem 0.58rem;
  }

  .page-home .section-intro--app {
    margin-bottom: 0.55rem;
    font-size: 0.82rem;
    line-height: 1.48;
  }

  .page-home .app-highlight-grid {
    gap: 0.48rem;
    margin-top: 0.52rem;
  }

  .page-home .app-highlight-card {
    padding: 0.62rem 0.65rem;
  }

  .page-home .app-highlight-title {
    font-size: 0.9rem;
  }

  .page-home .app-highlight-text {
    font-size: 0.78rem;
    line-height: 1.46;
  }

  .page-home .app-panel-links {
    margin-top: 0.55rem;
    gap: 0.48rem;
  }

  .page-home .section-gallery-showcase {
    padding: 0.62rem 0.55rem;
  }

  .page-home .gallery-showcase-head--compact {
    gap: 0.42rem;
    margin-bottom: 0.42rem;
  }

  .page-home .instagram-box {
    padding: 0.65rem 0.62rem;
    gap: 0.55rem;
  }

  .page-home .instagram-head {
    margin-bottom: 0.42rem;
  }

  .page-home .instagram-lead {
    font-size: 0.82rem;
    line-height: 1.48;
  }

  .page-home .instagram-actions .btn {
    min-height: 2.35rem;
    font-size: 0.8rem;
  }

  .page-home .form-panel textarea {
    min-height: 5rem;
  }

  .page-home .faq summary {
    padding: 0.42rem 0;
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .page-home .faq details p {
    font-size: 0.8rem;
    line-height: 1.48;
  }

  .page-home .site-footer {
    padding-top: 0.95rem;
    padding-bottom: max(calc(6.35rem + env(safe-area-inset-bottom, 0px)), 0.95rem);
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }

  .page-home .footer-inner {
    gap: 0.65rem;
  }

  .page-home .footer-tagline {
    font-size: 0.8rem;
    line-height: 1.48;
  }

  .page-home .gallery-ig-grid--showcase {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ——— Móvil: shell tipo app — una pantalla por pestaña ——— */
@media (max-width: 767.98px) {
  body.page-home[data-app-tab],
  body.page-home[data-app-tab] .page-shell,
  body.page-home[data-app-tab] .app-main-scroll {
    height: auto !important;
    min-height: 100dvh !important;
    min-height: 100svh !important;
    max-height: none !important;
  }

  body.page-home[data-app-tab] {
    overflow-x: clip;
    overflow-y: auto;
    height: auto;
    min-height: 100dvh;
    min-height: 100svh;
  }

  body.page-home[data-app-tab] .page-shell {
    display: block;
    height: auto;
    min-height: 100dvh;
    min-height: 100svh;
    overflow: visible;
  }

  body.page-home[data-app-tab] .site-header-wrap {
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.98) inset,
      0 10px 32px rgba(15, 23, 42, 0.06);
  }

  body.page-home[data-app-tab] .site-header {
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-top: max(0.55rem, env(safe-area-inset-top, 0px));
    padding-bottom: 0.55rem;
  }

  body.page-home[data-app-tab] .site-header-wrap::after {
    height: 2px;
    opacity: 0.9;
    background: linear-gradient(
      90deg,
      rgba(14, 165, 233, 0.55),
      rgba(59, 130, 246, 0.48),
      rgba(14, 165, 233, 0.38)
    );
  }

  body.page-home[data-app-tab] .brand img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.38);
    background: #fff;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.95) inset,
      0 6px 18px rgba(15, 23, 42, 0.07);
  }

  body.page-home[data-app-tab] .brand-title {
    letter-spacing: -0.02em;
    font-weight: 800;
    color: #0f172a;
  }

  body.page-home[data-app-tab] .brand-sub {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
  }

  body.page-home[data-app-tab] .contact-float-booking.btn-booking {
    border-radius: 50%;
    width: 3.15rem;
    height: 3.15rem;
    min-width: 3.15rem;
    min-height: 3.15rem;
    padding: 0;
  }

  body.page-home[data-app-tab] .app-main-scroll {
    display: block;
    height: auto;
    min-height: 100dvh;
    min-height: 100svh;
    overflow: visible;
    touch-action: auto;
    outline: none;
  }

  body.page-home[data-app-tab] .app-main-scroll > footer.site-footer {
    display: none !important;
  }

  body.page-home[data-app-tab] .app-main-scroll > #inicio.hero-wrap,
  body.page-home[data-app-tab] .app-main-scroll > section[id] {
    display: none !important;
    width: 100%;
    min-height: auto;
    box-sizing: border-box;
  }

  body.page-home[data-app-tab="inicio"] .app-main-scroll > #inicio.hero-wrap,
  body.page-home[data-app-tab="galeria"] .app-main-scroll > #galeria,
  body.page-home[data-app-tab="servicios"] .app-main-scroll > #servicios,
  body.page-home[data-app-tab="seguimiento"] .app-main-scroll > #seguimiento,
  body.page-home[data-app-tab="instagram"] .app-main-scroll > #instagram,
  body.page-home[data-app-tab="agendar-cita"] .app-main-scroll > #agendar-cita,
  body.page-home[data-app-tab="asesoria"] .app-main-scroll > #asesoria {
    display: block !important;
    padding-bottom: calc(7.75rem + env(safe-area-inset-bottom, 0px));
  }

  /* Portada: contenido desde arriba, sin hueco vacío; uso amplio del ancho útil */
  body.page-home[data-app-tab="inicio"] #inicio.hero-wrap .hero-inner {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.95rem;
    min-height: 0;
  }

  body.page-home[data-app-tab="inicio"] #inicio.hero-wrap::before {
    opacity: 0.25;
    transform: scale(0.88);
  }

  /* Inicio (app): lectura más clara — superficie única, bloque “Qué cubrimos” como lista lateral */
  body.page-home[data-app-tab="inicio"] #inicio.hero-wrap {
    padding-left: max(0.35rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.35rem, env(safe-area-inset-right, 0px));
    padding-top: 0;
  }

  body.page-home[data-app-tab="inicio"] #inicio .hero-inner {
    gap: 0.95rem;
    padding: 0.78rem max(0.55rem, env(safe-area-inset-right, 0px)) 0.95rem max(0.55rem, env(safe-area-inset-left, 0px));
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: linear-gradient(
      168deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(248, 250, 252, 0.99) 45%,
      rgba(241, 245, 249, 0.96) 100%
    );
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.95) inset,
      0 12px 40px rgba(15, 23, 42, 0.07);
  }

  body.page-home[data-app-tab="inicio"] #inicio .hero-inner .badge.badge--sport {
    align-self: flex-start;
    letter-spacing: 0.05em;
    font-weight: 700;
    border: 1px solid rgba(59, 130, 246, 0.22);
    background: rgba(239, 246, 255, 0.95);
    color: #1e40af;
  }

  body.page-home[data-app-tab="inicio"] #inicio .hero-inner h1 {
    font-size: clamp(1.28rem, 5vw + 0.26rem, 1.68rem);
    line-height: 1.24;
    letter-spacing: -0.025em;
    margin-bottom: 0.4rem;
  }

  body.page-home[data-app-tab="inicio"] #inicio .hero-inner .lead {
    margin-bottom: 0;
    font-size: 0.86rem;
    line-height: 1.54;
    color: #475569;
  }

  body.page-home[data-app-tab="inicio"] #inicio .hero-stage {
    gap: 0.85rem;
  }

  body.page-home[data-app-tab="inicio"] #inicio .hero-stage__visual {
    min-height: min(46vw, 190px);
  }

  body.page-home[data-app-tab="inicio"] #inicio .hero-brand-lockup {
    font-size: clamp(1.7rem, 7vw, 2.15rem);
  }

  body.page-home[data-app-tab="inicio"] #inicio .hero-welcome-head {
    padding: 0.45rem 0 0;
    gap: 0.55rem;
    border-radius: 0;
    background: transparent;
  }

  body.page-home[data-app-tab="inicio"] #inicio .hero-welcome-avatar {
    width: 48px;
    height: 48px;
  }

  body.page-home[data-app-tab="inicio"] #inicio .hero-welcome-kicker {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
  }

  body.page-home[data-app-tab="inicio"] #inicio .hero-welcome-sub {
    font-size: 0.78rem;
    line-height: 1.42;
  }

  body.page-home[data-app-tab="inicio"] #inicio .hero-atmosphere {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 0;
    margin-top: 0.2rem;
    padding: 0.45rem 0 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }

  body.page-home[data-app-tab="inicio"] #inicio .hero-atmosphere__tagline {
    font-size: 0.66rem;
    color: #64748b;
    text-align: left;
  }

  body.page-home[data-app-tab="inicio"] #inicio .hero-quick-nav__link {
    padding: 0.38rem 0.72rem;
    font-size: 0.74rem;
  }

  body.page-home[data-app-tab] .app-main-scroll > section[id].section {
    padding-top: 0.72rem;
    padding-bottom: 0.9rem;
  }

  /* App móvil: mismo criterio visual en todas las pantallas (superficie + tipografía) */
  body.page-home[data-app-tab] .section-title {
    letter-spacing: -0.022em;
    color: #0f172a;
  }

  body.page-home[data-app-tab] .section-title::after {
    width: 2.75rem;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.9), rgba(59, 130, 246, 0.35));
  }

  body.page-home[data-app-tab] .section-intro,
  body.page-home[data-app-tab] .section-intro--app,
  body.page-home[data-app-tab] .services-intro,
  body.page-home[data-app-tab] .instagram-lead,
  body.page-home[data-app-tab] .gallery-lead,
  body.page-home[data-app-tab] .gallery-lead--compact {
    color: #475569;
    line-height: 1.56;
  }

  body.page-home[data-app-tab] .services-kicker {
    color: #0369a1;
    letter-spacing: 0.07em;
  }

  body.page-home[data-app-tab] .gallery-showcase-title-accent {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(239, 246, 255, 0.92);
  }

  body.page-home[data-app-tab] .service-list {
    color: #475569;
  }

  body.page-home[data-app-tab] .service-disclaimer {
    color: #64748b;
  }

  body.page-home[data-app-tab] .btn-wa {
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.32);
  }

  body.page-home[data-app-tab="servicios"] #servicios,
  body.page-home[data-app-tab="seguimiento"] #seguimiento,
  body.page-home[data-app-tab="instagram"] #instagram,
  body.page-home[data-app-tab="agendar-cita"] #agendar-cita,
  body.page-home[data-app-tab="asesoria"] #asesoria {
    padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.5rem, env(safe-area-inset-right, 0px));
  }

  /* Galería */
  body.page-home[data-app-tab="galeria"] {
    overflow-x: clip;
    overflow-y: auto;
    height: auto;
    min-height: 100dvh;
    min-height: 100svh;
  }

  body.page-home[data-app-tab="galeria"] .page-shell {
    display: block;
    height: auto;
    min-height: 100dvh;
    min-height: 100svh;
    overflow: visible;
  }

  body.page-home[data-app-tab="galeria"] .app-main-scroll {
    display: block;
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  body.page-home[data-app-tab="galeria"] #galeria.section-gallery-showcase::before,
  body.page-home[data-app-tab="galeria"] #galeria.section-gallery-showcase::after {
    display: none;
  }

  body.page-home[data-app-tab="galeria"] #galeria.section-gallery-showcase {
    display: block !important;
    height: auto;
    min-height: auto;
    max-height: calc(
      100dvh - var(--mobile-header-height, 76px) - var(--mobile-bottom-nav-height, 92px) -
        env(safe-area-inset-bottom, 0px)
    );
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(91, 143, 212, 0.45) rgba(219, 234, 254, 0.4);
    touch-action: auto;
    padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.5rem, env(safe-area-inset-right, 0px));
    padding-bottom: calc(var(--mobile-bottom-nav-height, 92px) + 1.35rem + env(safe-area-inset-bottom, 0px));
    background: transparent;
  }

  body.page-home[data-app-tab="galeria"] #galeria.section-gallery-showcase::-webkit-scrollbar {
    width: 6px;
  }

  body.page-home[data-app-tab="galeria"] #galeria.section-gallery-showcase::-webkit-scrollbar-track {
    background: rgba(219, 234, 254, 0.4);
    border-radius: 999px;
  }

  body.page-home[data-app-tab="galeria"] #galeria.section-gallery-showcase::-webkit-scrollbar-thumb {
    background: rgba(91, 143, 212, 0.45);
    border-radius: 999px;
  }

  body.page-home[data-app-tab="galeria"] #galeria .gallery-section {
    padding: 0.88rem 0.65rem 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: linear-gradient(
      168deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(248, 250, 252, 0.99) 45%,
      rgba(241, 245, 249, 0.96) 100%
    );
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.95) inset,
      0 12px 40px rgba(15, 23, 42, 0.07);
  }

  body.page-home[data-app-tab="galeria"] #galeria .gallery-showcase-title--compact {
    letter-spacing: -0.025em;
  }

  body.page-home[data-app-tab="galeria"] #galeria .gallery-showcase-head--compact {
    position: static;
    margin: 0 -0.15rem 0.2rem;
    padding: 0.2rem 0.15rem 0.4rem;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.page-home[data-app-tab="galeria"] .gallery-ig-grid {
    border: 0;
    background: transparent;
  }

  body.page-home[data-app-tab="galeria"] #galeria .gallery-ig-grid--showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 0.72rem;
  }

  body.page-home[data-app-tab="galeria"] #galeria .gallery-media-card__thumb-wrap {
    aspect-ratio: 1 / 1;
  }

  body.page-home[data-app-tab="galeria"] #galeria .gallery-media-card__title {
    font-size: 0.84rem;
    line-height: 1.18;
  }

  body.page-home[data-app-tab="galeria"] #galeria .gallery-media-card__meta {
    font-size: 0.68rem;
    line-height: 1.18;
  }

  /* Servicios */
  body.page-home[data-app-tab="servicios"] #servicios.section-tone-mint {
    background: transparent;
  }

  body.page-home[data-app-tab="servicios"] #servicios .section-inner {
    padding: 0.88rem 0.58rem 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: linear-gradient(
      168deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(248, 250, 252, 0.99) 50%,
      rgba(239, 246, 255, 0.88) 100%
    );
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.95) inset,
      0 12px 40px rgba(15, 23, 42, 0.07);
  }

  body.page-home[data-app-tab="servicios"] #servicios .services-carousel {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
  }

  body.page-home[data-app-tab="servicios"] #servicios .services-carousel-viewport {
    overflow: visible;
    max-height: none;
    min-height: 0;
    padding-bottom: 0;
    touch-action: auto;
  }

  body.page-home[data-app-tab="servicios"] #servicios .services-carousel-track {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
    min-height: 0;
  }

  body.page-home[data-app-tab="servicios"] #servicios .service-card {
    box-shadow: none;
    border: 1px solid rgba(186, 230, 253, 0.65);
    border-left-width: 4px;
    background: rgba(255, 255, 255, 0.82);
  }

  body.page-home[data-app-tab="servicios"] #servicios .service-card:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  }

  body.page-home[data-app-tab="servicios"] #servicios .services-carousel-btn {
    border-color: rgba(148, 163, 184, 0.45);
    box-shadow: none;
  }

  body.page-home[data-app-tab="servicios"] #servicios .services-carousel-toolbar {
    display: none;
  }

  /* Seguimiento */
  body.page-home[data-app-tab="seguimiento"] #seguimiento.section-app-panel {
    padding: 0.55rem max(0.45rem, env(safe-area-inset-left, 0px)) 0.65rem max(0.45rem, env(safe-area-inset-right, 0px));
    background: transparent;
    border: none;
  }

  body.page-home[data-app-tab="seguimiento"] #seguimiento .section-inner {
    padding: 0.88rem 0.58rem 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: linear-gradient(
      168deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(248, 250, 252, 0.99) 50%,
      rgba(241, 245, 249, 0.96) 100%
    );
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.95) inset,
      0 12px 40px rgba(15, 23, 42, 0.07);
  }

  body.page-home[data-app-tab="seguimiento"] #seguimiento .app-highlight-card {
    border: 1px solid rgba(186, 230, 253, 0.65);
    border-left: 4px solid rgba(14, 165, 233, 0.85);
    border-radius: 14px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.78);
  }

  body.page-home[data-app-tab="seguimiento"] #seguimiento .app-highlight-title {
    letter-spacing: -0.02em;
  }

  body.page-home[data-app-tab="seguimiento"] #seguimiento .app-highlight-text {
    color: #475569;
  }

  body.page-home[data-app-tab="seguimiento"] #seguimiento .seguimiento-kicker {
    color: #0369a1;
  }

  body.page-home[data-app-tab="seguimiento"] #seguimiento .seguimiento-flow {
    padding: 0.78rem 0.62rem;
    gap: 0.55rem;
  }

  body.page-home[data-app-tab="seguimiento"] #seguimiento .seguimiento-footnote {
    font-size: 0.74rem;
    color: #64748b;
  }

  /* Feed */
  body.page-home[data-app-tab="instagram"] #instagram.section-tone-warm {
    background: transparent;
  }

  body.page-home[data-app-tab="instagram"] #instagram .instagram-box {
    padding: 0.92rem 0.65rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 18px;
    background: linear-gradient(
      168deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(248, 250, 252, 0.99) 45%,
      rgba(254, 243, 199, 0.28) 100%
    );
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.95) inset,
      0 12px 40px rgba(15, 23, 42, 0.07);
  }

  body.page-home[data-app-tab="instagram"] #instagram .instagram-note {
    color: #64748b;
  }

  /* Asesoría */
  body.page-home[data-app-tab="asesoria"] {
    overflow-x: clip;
    overflow-y: auto;
    height: auto;
    min-height: 100dvh;
    min-height: 100svh;
  }

  body.page-home[data-app-tab="asesoria"] .page-shell {
    display: block;
    height: auto;
    min-height: 100dvh;
    min-height: 100svh;
    overflow: visible;
  }

  body.page-home[data-app-tab="asesoria"] .app-main-scroll {
    display: block;
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  body.page-home[data-app-tab="asesoria"] #asesoria.section-tone-teal {
    display: block !important;
    height: auto;
    min-height: auto;
    max-height: calc(
      100dvh - var(--mobile-header-height, 76px) - var(--mobile-bottom-nav-height, 92px) -
        env(safe-area-inset-bottom, 0px)
    );
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(91, 143, 212, 0.45) rgba(219, 234, 254, 0.4);
    touch-action: pan-y pinch-zoom;
    padding-bottom: calc(var(--mobile-bottom-nav-height, 92px) + 1.35rem + env(safe-area-inset-bottom, 0px));
    background: transparent;
  }

  body.page-home[data-app-tab="asesoria"] #asesoria.section-tone-teal::-webkit-scrollbar {
    width: 6px;
  }

  body.page-home[data-app-tab="asesoria"] #asesoria.section-tone-teal::-webkit-scrollbar-track {
    background: rgba(219, 234, 254, 0.4);
    border-radius: 999px;
  }

  body.page-home[data-app-tab="asesoria"] #asesoria.section-tone-teal::-webkit-scrollbar-thumb {
    background: rgba(91, 143, 212, 0.45);
    border-radius: 999px;
  }

  body.page-home[data-app-tab="asesoria"] #asesoria .section-inner {
    padding: 0.95rem 0.75rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(31, 169, 122, 0.16);
    background: linear-gradient(
      168deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(240, 253, 247, 0.9) 100%
    );
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.95) inset,
      0 12px 40px rgba(15, 23, 42, 0.07);
  }

  body.page-home[data-app-tab="asesoria"] #asesoria .section-intro {
    color: #475569;
    font-weight: 500;
  }

  body.page-home[data-app-tab="asesoria"] #asesoria .asesoria-layout {
    gap: 1rem;
  }

  body.page-home[data-app-tab="asesoria"] #asesoria .asesoria-reel {
    width: min(100%, 280px);
    max-height: min(46vh, 400px);
  }

  body.page-home[data-app-tab="asesoria"] #asesoria .asesoria-cta {
    width: 100%;
    min-width: 0;
  }

  /* Galería: cabecera compacta + visor crece */
  body.page-home[data-app-tab="galeria"] #galeria .gallery-section {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    min-height: auto;
    gap: 0.65rem;
  }

  body.page-home[data-app-tab="galeria"] #galeria .gallery-showcase-head--compact {
    flex-shrink: 0;
  }

  body.page-home[data-app-tab="galeria"] #gallery-viewer-root {
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible;
  }

  body.page-home[data-app-tab="galeria"] .gallery-ig-grid {
    flex: 1 1 auto;
  }

  /* Servicios: carrusel ocupa el espacio restante */
  body.page-home[data-app-tab="servicios"] #servicios .section-inner {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    min-height: auto;
    gap: 0.5rem;
  }

  body.page-home[data-app-tab="servicios"] #servicios .services-carousel {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    min-height: auto;
    gap: 0.45rem;
  }

  body.page-home[data-app-tab="servicios"] #servicios .services-carousel-viewport {
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
  }

  /* Seguimiento: contenido arriba; sin hueco artificial entre bloques y un solo WhatsApp (FAB contextual) */
  body.page-home[data-app-tab="seguimiento"] #seguimiento .section-inner--seguimiento {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.75rem;
    min-height: auto;
    padding-bottom: 0.5rem;
  }

  body.page-home[data-app-tab="seguimiento"] #seguimiento .app-highlight-grid {
    flex: 0 1 auto;
    margin-top: 0.15rem;
  }

  body.page-home[data-app-tab="seguimiento"] #seguimiento .seguimiento-flow {
    flex-shrink: 0;
  }

  body.page-home[data-app-tab="seguimiento"] #seguimiento .seguimiento-footnote {
    padding-top: 0.55rem;
    border-top-style: solid;
    border-color: rgba(148, 163, 184, 0.28);
  }

  /* Feed Instagram */
  body.page-home[data-app-tab="instagram"] #instagram .section-inner {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  body.page-home[data-app-tab="instagram"] #instagram .instagram-box {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    min-height: auto;
  }

  body.page-home[data-app-tab="agendar-cita"] #agendar-cita.section-booking-cta {
    min-height: calc(
      100dvh - var(--mobile-header-height, 76px) - var(--mobile-bottom-nav-height, 92px) -
        env(safe-area-inset-top, 0px)
    );
    display: flex !important;
    flex-direction: column;
    justify-content: center;
  }

  body.page-home[data-app-tab="agendar-cita"] #agendar-cita .section-inner {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    text-align: left;
  }

  /* Asesoría */
  body.page-home[data-app-tab="asesoria"] #asesoria .section-inner {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    min-height: auto;
  }

  /* Barra inferior: misma familia de borde/sombra que las tarjetas */
  body.page-home[data-app-tab] .mobile-bottom-nav__track {
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(255, 255, 255, 0.97);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.92) inset,
      0 10px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

@media print {
  body.page-home[data-app-tab] .app-main-scroll > #inicio.hero-wrap,
  body.page-home[data-app-tab] .app-main-scroll > section[id],
  body.page-home[data-app-tab] .app-main-scroll > footer.site-footer {
    display: block !important;
  }
}

@media (min-width: 560px) and (max-width: 767.98px) {
  body.page-home[data-app-tab="galeria"] #galeria .gallery-ig-grid--showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ——— Navegación inferior (solo móvil), estilo app tipo referencia ——— */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 767.98px) {
  .site-header-wrap .nav-toggle,
  .site-header-wrap .site-nav-shell {
    display: none !important;
  }

  .mobile-bottom-nav {
    display: block;
    position: fixed;
    z-index: 92;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 max(0.45rem, env(safe-area-inset-left)) max(0.4rem, env(safe-area-inset-bottom))
      max(0.45rem, env(safe-area-inset-right));
    pointer-events: none;
  }

  .mobile-bottom-nav__track {
    pointer-events: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.12rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0.38rem 0.42rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow:
      0 12px 40px rgba(15, 23, 42, 0.14),
      0 2px 8px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x pinch-zoom;
    overscroll-behavior-x: contain;
  }

  .mobile-bottom-nav__track::-webkit-scrollbar {
    display: none;
  }

  .page-home .page-shell {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  .page-home .contact-float {
    bottom: calc(4.95rem + env(safe-area-inset-bottom, 0px));
    z-index: 93;
  }
}

.mobile-bottom-nav__item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-width: 0;
  max-width: none;
  padding: 0.32rem 0.22rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #0f172a;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.mobile-bottom-nav__item:active {
  opacity: 0.92;
}

.mobile-bottom-nav__item--active {
  background: rgba(178, 235, 224, 0.55);
  color: #0f766e;
}

.mobile-bottom-nav__item--active .mobile-bottom-nav__ico {
  opacity: 1;
}

.mobile-bottom-nav__item--portal {
  color: #2563eb;
}

.mobile-bottom-nav__item--portal .mobile-bottom-nav__label {
  font-weight: 700;
}

.mobile-bottom-nav__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.92;
}

.mobile-bottom-nav__label {
  display: block;
  text-align: center;
  line-height: 1.12;
  max-width: 100%;
  font-size: clamp(0.46rem, 2.65vw, 0.54rem);
  overflow-wrap: break-word;
  hyphens: manual;
}

@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none !important;
  }

  .page-home .contact-float {
    bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
    z-index: 95;
  }

  .page-home .page-shell {
    padding-bottom: 0;
  }
}

@media print {
  .mobile-bottom-nav {
    display: none !important;
  }
}
