/* Tecos Taekwondo MBT — adaptación móvil (iOS / Android) */

.tecos-mobile-menu-btn {
  display: none;
}

.tecos-landing-logo-btn {
  transition: transform 0.2s ease;
}

.tecos-landing-logo-btn:hover {
  transform: scale(1.04);
}

.tecos-landing-logo-btn:focus-visible {
  outline: 2px solid var(--tecos-focus, #3aa8ff);
  outline-offset: 4px;
  border-radius: 12px;
}

.tecos-logo img {
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Sin efecto neon en logo */
.tecos-logo-neon img,
.tecos-login-brand .tecos-logo-neon img {
  filter: none;
  animation: none;
}

/* ── Hero Play (inicio juvenil / taekwondo) ─────────────────────── */
.tecos-hero--play,
.tecos-hero--mbt {
  isolation: isolate;
}

.tecos-hero-play {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.tecos-hero-play__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 85% 12%, color-mix(in srgb, var(--hero-warning) 45%, transparent), transparent 55%),
    radial-gradient(ellipse 70% 50% at 12% 20%, color-mix(in srgb, var(--hero-accent) 40%, transparent), transparent 50%),
    radial-gradient(ellipse 90% 60% at 50% 100%, color-mix(in srgb, var(--hero-success) 30%, transparent), transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--hero-accent) 25%, var(--hero-bg)) 0%, var(--hero-bg) 55%, var(--hero-elev) 100%);
}

.tecos-hero-play__sun {
  position: absolute;
  top: 6%;
  right: 14%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff9c4, var(--hero-warning) 55%, #f59e0b);
  box-shadow: 0 0 40px color-mix(in srgb, var(--hero-warning) 70%, transparent);
  animation: tecos-play-sun-pulse 4s ease-in-out infinite;
}

.tecos-hero-play__sun::before {
  content: '';
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    color-mix(in srgb, var(--hero-warning) 55%, transparent) 0deg 8deg,
    transparent 8deg 16deg
  );
  animation: tecos-play-sun-rays 12s linear infinite;
}

.tecos-hero-play__rainbow {
  position: absolute;
  top: 8%;
  left: 55%;
  width: min(42vw, 380px);
  height: 120px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--hero-warning) 50%, transparent),
    color-mix(in srgb, var(--hero-accent) 45%, transparent),
    color-mix(in srgb, var(--hero-primary) 45%, transparent),
    color-mix(in srgb, var(--hero-success) 40%, transparent)
  );
  opacity: 0.28;
  transform: rotate(-8deg);
  filter: blur(2px);
}

.tecos-hero-play__cloud {
  position: absolute;
  border-radius: 50px;
  background: color-mix(in srgb, #fff 88%, var(--hero-accent));
  opacity: 0.75;
  filter: blur(0.5px);
  animation: tecos-play-cloud-drift 14s ease-in-out infinite;
}

.tecos-hero-play__cloud::before,
.tecos-hero-play__cloud::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.tecos-hero-play__cloud--1 {
  width: 100px;
  height: 36px;
  top: 14%;
  left: 8%;
}

.tecos-hero-play__cloud--1::before { width: 44px; height: 44px; top: -22px; left: 12px; }
.tecos-hero-play__cloud--1::after { width: 56px; height: 56px; top: -28px; left: 48px; }

.tecos-hero-play__cloud--2 {
  width: 80px;
  height: 30px;
  top: 22%;
  left: 42%;
  animation-delay: -4s;
  opacity: 0.55;
}

.tecos-hero-play__cloud--2::before { width: 36px; height: 36px; top: -18px; left: 8px; }
.tecos-hero-play__cloud--2::after { width: 42px; height: 42px; top: -20px; left: 36px; }

.tecos-hero-play__cloud--3 {
  width: 120px;
  height: 40px;
  top: 10%;
  right: 32%;
  animation-delay: -7s;
}

.tecos-hero-play__cloud--3::before { width: 50px; height: 50px; top: -26px; left: 16px; }
.tecos-hero-play__cloud--3::after { width: 62px; height: 62px; top: -30px; left: 54px; }

.tecos-hero-play__court {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 12%;
  height: 32%;
  transform: perspective(700px) rotateX(48deg);
  transform-origin: bottom center;
  border-radius: 24px 24px 0 0;
  overflow: visible;
  box-shadow: 0 -8px 40px color-mix(in srgb, var(--hero-primary) 25%, transparent);
}

.tecos-hero-play__court-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  border-radius: inherit;
}

/* Balón en rally — ~10 toques, ritmo de partido (sin tapar el logo) */
.tecos-hero-play__court-ball {
  position: absolute;
  z-index: 6;
  width: 56px;
  height: 56px;
  left: 12%;
  top: 38%;
  pointer-events: none;
  animation: tecos-court-ball-rally 11s ease-in-out infinite;
}

.tecos-hero-play__court-ball svg {
  width: 100% !important;
  height: 100% !important;
  animation: tecos-play-spin 8s linear infinite;
}

@keyframes tecos-court-ball-rally {
  /* 1 — recepción fondo izquierda */
  0% {
    left: 11%;
    top: 44%;
    transform: translate(0, 0) scale(0.86);
  }
  /* 2 — toque de dedos / armado delantero izq */
  10% {
    left: 20%;
    top: 30%;
    transform: translate(0, 0) scale(0.94);
  }
  /* 3 — sube hacia la red por el centro-izq */
  20% {
    left: 32%;
    top: 14%;
    transform: translate(0, 0) scale(1.04);
  }
  /* 4 — cruce sobre la red (punto alto) */
  30% {
    left: 46%;
    top: 4%;
    transform: translate(0, 0) scale(1.1);
  }
  /* 5 — baja al frente derecho (ataque / defensa) */
  40% {
    left: 58%;
    top: 18%;
    transform: translate(0, 0) scale(1.02);
  }
  /* 6 — defensa fondo derecha */
  50% {
    left: 74%;
    top: 42%;
    transform: translate(0, 0) scale(0.86);
  }
  /* 7 — segundo toque derecha (levantamiento) */
  60% {
    left: 66%;
    top: 28%;
    transform: translate(0, 0) scale(0.94);
  }
  /* 8 — devolución cruzada sobre la red */
  70% {
    left: 52%;
    top: 8%;
    transform: translate(0, 0) scale(1.06);
  }
  /* 9 — bloqueo / defensa centro-izquierda */
  80% {
    left: 36%;
    top: 16%;
    transform: translate(0, 0) scale(1);
  }
  /* 10 — transición al frente izquierdo */
  90% {
    left: 22%;
    top: 32%;
    transform: translate(0, 0) scale(0.92);
  }
  /* vuelve a recepción */
  100% {
    left: 11%;
    top: 44%;
    transform: translate(0, 0) scale(0.86);
  }
}

.tecos-hero-play__court-team {
  color: var(--hero-primary);
}

.tecos-hero-play__court-team--b {
  color: var(--hero-accent);
}

.tecos-hero-play__court-player {
  animation: tecos-court-player-ready 2.4s ease-in-out infinite;
  animation-delay: calc(var(--pi, 0) * 0.15s);
}

.tecos-hero-play__court-player--delay {
  --pi: 1;
}

.tecos-hero-play__court-player--block {
  animation-name: tecos-court-player-block;
  animation-duration: 1.8s;
  --pi: 2;
}

.tecos-hero-play__court-player--spike {
  animation-name: tecos-court-player-spike;
  animation-duration: 1.4s;
  --pi: 3;
}

@keyframes tecos-court-player-ready {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes tecos-court-player-block {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  55% { transform: translateY(-6px); }
}

@keyframes tecos-court-player-spike {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(-14px); }
  50% { transform: translateY(-14px); }
}

.tecos-hero-play__arc {
  position: absolute;
  right: 6%;
  top: 28%;
  width: min(36vw, 320px);
  height: auto;
  opacity: 0.85;
  z-index: 2;
}

.tecos-hero-play__arc-line {
  animation: tecos-play-arc-dash 6s linear infinite;
}

.tecos-hero-play__sparkles {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.tecos-hero-play__spark {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--hero-warning);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: tecos-play-sparkle 2.4s ease-in-out infinite;
  animation-delay: calc(var(--si) * 0.21s);
  opacity: 0;
}

.tecos-hero-play__spark:nth-child(3n) { background: var(--hero-accent); width: 6px; height: 6px; }
.tecos-hero-play__spark:nth-child(5n) { background: #fff; width: 5px; height: 5px; }

.tecos-hero-play__spark:nth-child(1) { top: 18%; right: 28%; }
.tecos-hero-play__spark:nth-child(2) { top: 32%; right: 18%; }
.tecos-hero-play__spark:nth-child(3) { top: 48%; right: 32%; }
.tecos-hero-play__spark:nth-child(4) { top: 24%; right: 42%; }
.tecos-hero-play__spark:nth-child(5) { top: 55%; right: 22%; }
.tecos-hero-play__spark:nth-child(6) { top: 12%; right: 48%; }
.tecos-hero-play__spark:nth-child(7) { top: 38%; right: 52%; }
.tecos-hero-play__spark:nth-child(8) { top: 62%; right: 38%; }
.tecos-hero-play__spark:nth-child(9) { top: 20%; right: 58%; }
.tecos-hero-play__spark:nth-child(10) { top: 44%; right: 12%; }
.tecos-hero-play__spark:nth-child(11) { top: 58%; right: 48%; }
.tecos-hero-play__spark:nth-child(12) { top: 30%; right: 8%; }
.tecos-hero-play__spark:nth-child(13) { top: 52%; right: 58%; }
.tecos-hero-play__spark:nth-child(14) { top: 16%; right: 12%; }
.tecos-hero-play__spark:nth-child(15) { top: 42%; right: 62%; }
.tecos-hero-play__spark:nth-child(16) { top: 66%; right: 26%; }
.tecos-hero-play__spark:nth-child(17) { top: 26%; right: 36%; }
.tecos-hero-play__spark:nth-child(18) { top: 50%; right: 44%; }

.tecos-hero-play__confetti {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.tecos-hero-play__confetti-piece {
  position: absolute;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation: tecos-play-confetti 4.5s ease-out infinite;
  animation-delay: calc(var(--ci) * 0.28s);
}

.tecos-hero-play__confetti-piece:nth-child(3n+1) { background: var(--hero-warning); left: 72%; }
.tecos-hero-play__confetti-piece:nth-child(3n+2) { background: var(--hero-accent); left: 78%; }
.tecos-hero-play__confetti-piece:nth-child(3n) { background: var(--hero-primary); left: 68%; }

.tecos-hero-play__confetti-piece:nth-child(odd) { top: 8%; }
.tecos-hero-play__confetti-piece:nth-child(even) { top: 14%; }

.tecos-hero-play__ball {
  position: absolute;
  z-index: 5;
  line-height: 0;
}

.tecos-hero-play__ball-glow {
  display: none;
}

.tecos-hero-play__ball--star {
  top: 38%;
  right: 12%;
  animation: tecos-play-bounce-main 2.2s cubic-bezier(0.34, 1.4, 0.64, 1) infinite;
}

.tecos-hero-play__ball--star svg,
.tecos-hero-play__ball--solo svg,
.tecos-hero-play__ball--a svg,
.tecos-hero-play__ball--b svg,
.tecos-hero-play__ball--c svg,
.tecos-hero-play__court-ball svg {
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.18));
}

.tecos-hero-play__ball--star svg,
.tecos-hero-play__ball--solo svg {
  animation: tecos-play-spin 8s linear infinite;
}

.tecos-hero-play__ball--a svg { animation: tecos-play-spin 5s linear infinite; }
.tecos-hero-play__ball--b svg { animation: tecos-play-spin 6.5s linear infinite reverse; }
.tecos-hero-play__ball--c svg { animation: tecos-play-spin 4.5s linear infinite; }

@keyframes tecos-play-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Login — balones detallados con flotación y giro suave */
.tecos-login-vb {
  z-index: 2;
  line-height: 0;
  animation: tecos-login-float 7s ease-in-out infinite;
}

.tecos-login-vb--2 {
  animation-duration: 9s;
  animation-direction: reverse;
}

.tecos-login-vb svg {
  animation: tecos-play-spin 10s linear infinite;
}

.tecos-login-vb--2 svg {
  animation-duration: 13s;
  animation-direction: reverse;
}

@keyframes tecos-login-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.tecos-hero-play__ball--solo {
  top: 42%;
  right: 50%;
  transform: translateX(50%);
  animation: tecos-play-bounce-solo 2.8s cubic-bezier(0.34, 1.4, 0.64, 1) infinite;
}

.tecos-hero-play__ball--a {
  top: 16%;
  right: 32%;
  animation: tecos-play-bounce-a 2.6s ease-in-out infinite;
}

.tecos-hero-play__ball--b {
  top: 52%;
  right: 28%;
  animation: tecos-play-bounce-b 3s ease-in-out infinite;
}

.tecos-hero-play__ball--c {
  bottom: 28%;
  right: 18%;
  animation: tecos-play-bounce-c 2.4s ease-in-out infinite;
}

.tecos-hero-play__net {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8%;
  opacity: 0.45;
  z-index: 4;
  animation: tecos-play-net-wiggle 3s ease-in-out infinite;
  transform-origin: bottom center;
}

.tecos-hero-play__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--hero-primary) 18%, transparent));
  clip-path: ellipse(120% 100% at 50% 100%);
}

.tecos-hero-play__readability {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--hero-bg) 94%, transparent) 0%,
    color-mix(in srgb, var(--hero-bg) 70%, transparent) 42%,
    transparent 68%
  );
  z-index: 1;
}

.tecos-hero-play--static .tecos-hero-play__confetti {
  display: none;
}

@keyframes tecos-play-sun-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes tecos-play-sun-rays {
  to { transform: rotate(360deg); }
}

@keyframes tecos-play-cloud-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(24px); }
}

@keyframes tecos-play-arc-dash {
  to { stroke-dashoffset: -80; }
}

@keyframes tecos-play-sparkle {
  0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  45% { opacity: 1; transform: scale(1.1) rotate(180deg); }
}

@keyframes tecos-play-confetti {
  0% { opacity: 0; transform: translateY(0) rotate(0deg); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translateY(280px) rotate(520deg); }
}

@keyframes tecos-play-glow {
  0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
}

@keyframes tecos-play-bounce-main {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-36px); }
  55% { transform: translateY(4px); }
  70% { transform: translateY(-12px); }
}

@keyframes tecos-play-bounce-solo {
  0%, 100% { transform: translateX(50%) translateY(0); }
  50% { transform: translateX(50%) translateY(-28px); }
}

@keyframes tecos-play-bounce-a {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-48px) rotate(18deg); }
}

@keyframes tecos-play-bounce-b {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-32px) rotate(-14deg); }
}

@keyframes tecos-play-bounce-c {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-56px); }
}

@keyframes tecos-play-net-wiggle {
  0%, 100% { transform: skewX(0deg); }
  25% { transform: skewX(1.5deg); }
  75% { transform: skewX(-1.5deg); }
}

@keyframes tecos-play-bounce-main-mobile {
  0%, 100% { transform: translateX(50%) translateY(0) scale(0.82); }
  40% { transform: translateX(50%) translateY(-28px) scale(0.86); }
  55% { transform: translateX(50%) translateY(2px) scale(0.8); }
  70% { transform: translateX(50%) translateY(-10px) scale(0.84); }
}

.tecos-hero-headline-row {
  display: block;
  width: 100%;
  max-width: 100%;
}

.tecos-hero-headline-row .tecos-hero-title {
  min-width: 0;
  max-width: min(78ch, 100%);
}

.tecos-hero-daily-attribution {
  margin: 14px 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.35;
  opacity: 0.88;
}

/* Bloque inferior del hero — subtítulo, acciones, valores y stats */
.tecos-hero-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.tecos-hero-subtitle-block {
  margin-bottom: 28px;
  width: 100%;
  max-width: min(680px, 62%);
}

.tecos-hero-subtitle {
  margin: 0;
  max-width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  line-height: 1.55;
}

.tecos-hero-social > div {
  margin-top: 16px !important;
}

.tecos-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  margin-bottom: 28px;
}

.tecos-hero-actions button {
  width: auto;
  justify-content: center;
  min-width: 0;
  white-space: nowrap;
  text-align: center;
  line-height: 1.25;
}

.tecos-hero-values {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: flex-start;
  justify-content: flex-start;
  gap: 10px 14px;
  width: auto;
  max-width: 100%;
  margin-bottom: 40px;
}

.tecos-hero-values__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1;
}

.tecos-hero-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 28px;
  padding-top: 32px;
  border-top: 1px solid var(--hero-border, rgba(10, 42, 107, 0.12));
}

.tecos-hero-stat {
  text-align: center;
  min-width: 0;
}

.tecos-hero-stat__value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: 1px;
  line-height: 1;
}

.tecos-hero-stat__label {
  margin-top: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.35;
}

/* Hero video — tema claro */
.tecos-hero--theme-light.tecos-hero--video .tecos-hero-subtitle {
  color: #3d4f6e;
}

.tecos-hero--theme-light.tecos-hero--video .tecos-hero-daily-attribution {
  color: #4a5778;
}

.tecos-hero--theme-light.tecos-hero--video .tecos-hero-values__pill {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(10, 42, 107, 0.2);
  color: #0a2a6b;
  box-shadow: 0 2px 12px rgba(10, 42, 107, 0.08);
}

.tecos-hero--theme-light.tecos-hero--video .tecos-hero-actions button:not(:first-child) {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(10, 42, 107, 0.22) !important;
  color: #0a2a6b !important;
  box-shadow: 0 2px 10px rgba(10, 42, 107, 0.06);
}

.tecos-hero--theme-light.tecos-hero--video .tecos-hero-stat__value {
  color: #0a1628;
}

.tecos-hero--theme-light.tecos-hero--video .tecos-hero-stat__label {
  color: #4a5778;
}

.tecos-hero--theme-light.tecos-hero--video .tecos-hero-stats {
  border-top-color: rgba(10, 42, 107, 0.14);
}

.tecos-hero--theme-light.tecos-hero--video .tecos-hero-social a {
  box-shadow: 0 2px 10px rgba(10, 42, 107, 0.08);
}

/* Hero video — tema oscuro y azul */
.tecos-hero--theme-dark.tecos-hero--video .tecos-hero-subtitle,
.tecos-hero--theme-blue.tecos-hero--video .tecos-hero-subtitle {
  color: rgba(234, 243, 255, 0.86);
}

.tecos-hero--theme-dark.tecos-hero--video .tecos-hero-daily-attribution,
.tecos-hero--theme-blue.tecos-hero--video .tecos-hero-daily-attribution {
  color: rgba(200, 220, 255, 0.78);
}

.tecos-hero--theme-dark.tecos-hero--video .tecos-hero-values__pill,
.tecos-hero--theme-blue.tecos-hero--video .tecos-hero-values__pill {
  background: rgba(12, 20, 42, 0.9);
  border: 1px solid rgba(160, 212, 255, 0.24);
  color: #eaf3ff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.tecos-hero--theme-dark.tecos-hero--video .tecos-hero-actions button:not(:first-child),
.tecos-hero--theme-blue.tecos-hero--video .tecos-hero-actions button:not(:first-child) {
  background: rgba(12, 20, 42, 0.86) !important;
  border-color: rgba(160, 212, 255, 0.26) !important;
  color: #f1f5ff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.tecos-hero--theme-dark.tecos-hero--video .tecos-hero-stat__value,
.tecos-hero--theme-blue.tecos-hero--video .tecos-hero-stat__value {
  color: #f8fbff;
}

.tecos-hero--theme-dark.tecos-hero--video .tecos-hero-stat__label,
.tecos-hero--theme-blue.tecos-hero--video .tecos-hero-stat__label {
  color: rgba(200, 220, 255, 0.72);
}

.tecos-hero--theme-dark.tecos-hero--video .tecos-hero-stats,
.tecos-hero--theme-blue.tecos-hero--video .tecos-hero-stats {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.tecos-hero-logo-side.tecos-logo-hero {
  flex-shrink: 0;
  align-self: center;
}

.tecos-hero-logo-side.tecos-logo-hero img {
  height: 200px;
  width: auto;
  max-width: min(42vw, 320px);
}

:root {
  --tecos-pad-page: 32px;
  --tecos-pad-topbar: 20px 32px;
  --tecos-modal-pad: 20px;
}

/* Modales largos: cabecera/pie fijos, cuerpo con scroll */
.tecos-modal-panel--scroll {
  display: flex;
  flex-direction: column;
  max-height: min(90vh, calc(100dvh - 40px));
  overflow: hidden;
}

.tecos-modal-scroll-shell {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.tecos-modal-scroll-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.tecos-modal-scroll-head,
.tecos-modal-scroll-tabs,
.tecos-modal-scroll-foot {
  flex-shrink: 0;
}

[data-tecos-modal-overlay]:has(.tecos-modal-panel--scroll) {
  align-items: center;
  justify-items: center;
}

@media (max-width: 768px) {
  .tecos-mobile-menu-btn {
    display: grid !important;
  }

  .tecos-admin-search {
    width: 100% !important;
    min-width: 0;
  }

  .tecos-admin-topbar h1 {
    font-size: 26px !important;
  }

  .tecos-hero:not(.tecos-hero--video) {
    min-height: auto !important;
  }

  .tecos-hero-play__ball--star {
    right: 50%;
    top: 22%;
    animation-name: tecos-play-bounce-main-mobile;
  }

  .tecos-hero-play__ball--a,
  .tecos-hero-play__ball--b,
  .tecos-hero-play__ball--c {
    transform: scale(0.82);
  }

  .tecos-hero-play__sun {
    width: 52px;
    height: 52px;
    right: 8%;
  }

  .tecos-hero-play__rainbow {
    display: none;
  }

  .tecos-hero-play__court {
    height: 28%;
    bottom: 10%;
  }

  .tecos-hero-inner:not(.tecos-hero-inner--video) {
    padding: 72px 20px 80px !important;
  }

  .tecos-hero-headline-row {
    gap: 20px;
  }

  .tecos-hero:not(.tecos-hero--video) .tecos-hero-headline-row .tecos-hero-title {
    max-width: 100% !important;
    font-size: clamp(52px, 14vw, 88px) !important;
  }

  .tecos-hero--video .tecos-hero-headline-row .tecos-hero-title {
    max-width: 100% !important;
  }

  .tecos-hero-logo-side.tecos-logo-hero {
    align-self: center;
    order: -1;
  }

  .tecos-hero-logo-side.tecos-logo-hero img {
    height: 120px !important;
    max-width: 72vw !important;
  }

  .tecos-landing-logo-btn .tecos-logo img {
    height: auto !important;
    width: auto !important;
  }

  .tecos-public-topnav {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .tecos-role-switcher {
    top: auto !important;
    bottom: 16px !important;
    right: 12px !important;
  }

  .tecos-role-switcher button {
    padding: 8px 12px !important;
    font-size: 10px !important;
  }

  :root {
    --tecos-pad-page: 16px;
    --tecos-pad-topbar: 12px 16px;
    --tecos-modal-pad: 12px;
  }

  .tecos-page-shell {
    padding: var(--tecos-pad-page) !important;
  }

  .tecos-alumnos-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .tecos-alumnos-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .tecos-alumnos-toolbar__search {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .tecos-alumnos-toolbar__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .tecos-pagos-kpi-grid {
    grid-template-columns: 1fr !important;
  }

  .tecos-pos-layout {
    grid-template-columns: 1fr !important;
  }

  .tecos-pos-id-row {
    flex-direction: column !important;
    height: auto !important;
    gap: 8px;
  }

  .tecos-pos-id-row > span {
    border-radius: 10px !important;
    justify-content: center;
  }

  .tecos-pos-id-row > input {
    border-radius: 10px !important;
    border-left: 1px solid var(--tecos-border, #e2e8f0) !important;
    min-height: 42px;
  }

  .tecos-pos-cart table {
    font-size: 12px;
  }

  .tecos-pos-cart select,
  .tecos-pos-cart input {
    max-width: 100%;
  }

  .tecos-pos-client-tabs {
    flex-direction: column !important;
  }

  .tecos-pos-client-tabs button {
    width: 100%;
  }

  .tecos-pos-ext-quick .tecos-input-wrap,
  .tecos-pos-ext-quick label {
    width: 100%;
  }

  .tecos-pos-participant-card {
    font-size: 12px !important;
  }

  .tecos-student-form-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .tecos-student-form-grid {
    grid-template-columns: 1fr !important;
  }

  .tecos-student-form-contacts {
    grid-template-columns: 1fr !important;
  }

  .tecos-student-paid-months {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .tecos-student-form-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tecos-student-form-tabs button {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .tecos-student-form-head {
    padding: 16px !important;
  }

  .tecos-student-form-head h3 {
    font-size: 22px !important;
  }

  .tecos-student-form-body {
    padding: 16px !important;
  }

  .tecos-student-form-foot {
    padding: 12px 16px !important;
    flex-wrap: wrap;
  }

  .tecos-student-form-foot button {
    flex: 1 1 auto;
    min-width: 0;
  }

  .tecos-student-sibling-id-row {
    max-width: none !important;
    width: 100%;
  }

  .tecos-sibling-expediente__actions {
    flex-direction: column !important;
  }

  .tecos-sibling-expediente__actions button {
    width: 100%;
    justify-content: center;
  }

  .tecos-nomina-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .tecos-nomina-coach__head {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .tecos-nomina-coach__head > div:last-child {
    width: 100%;
    justify-content: flex-start;
  }

  .tecos-alumno-daily-quote__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px 18px !important;
  }

  .tecos-alumno-daily-quote__date {
    align-self: flex-start;
  }

  .tecos-alumno-daily-quote__text {
    font-size: 1.25rem !important;
    line-height: 1.62 !important;
    text-align: center !important;
    padding: 0 !important;
  }

  .tecos-admin-topbar {
    padding: var(--tecos-pad-topbar) !important;
    flex-wrap: wrap;
    gap: 10px;
  }

  .tecos-admin-topbar__title {
    flex: 1 1 100%;
    min-width: 0;
  }

  .tecos-admin-topbar__actions {
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .tecos-public-topnav {
    padding: 10px 14px !important;
    flex-wrap: nowrap !important;
    gap: 8px;
  }

  .tecos-public-topnav__nav {
    display: none !important;
  }

  /* Menú móvil landing — pantalla completa */
  .tecos-public-drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    background: var(--tecos-drawer-bg, #fff);
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    animation: tecos-public-drawer-in 0.22s ease-out;
  }

  @keyframes tecos-public-drawer-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .tecos-public-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    flex-shrink: 0;
  }

  .tecos-public-drawer__nav {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px;
    display: grid;
    gap: 6px;
    align-content: start;
  }

  .tecos-public-drawer__link {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    font-family: Inter, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
  }

  .tecos-public-drawer__foot {
    flex-shrink: 0;
    padding: 16px;
    display: grid;
    gap: 10px;
  }

  .tecos-drawer-backdrop {
    z-index: 190 !important;
  }

  .tecos-public-topnav__actions {
    gap: 6px !important;
  }

  .tecos-public-topnav__actions .tecos-hide-mobile {
    display: none !important;
  }

  .tecos-shell-admin,
  .tecos-shell-alumno {
    display: block !important;
    position: relative;
    overflow-x: hidden !important;
  }

  .tecos-shell-admin > .tecos-main--admin,
  .tecos-shell-alumno > .tecos-main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: block !important;
  }

  .tecos-shell-admin > aside.tecos-admin-sidebar-drawer,
  .tecos-shell-alumno > aside.tecos-sidebar-drawer {
    flex: none !important;
  }

  .tecos-main {
    width: 100% !important;
    min-width: 0 !important;
  }

  .tecos-sidebar-drawer {
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
  }

  .tecos-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(2, 6, 15, 0.55);
    backdrop-filter: blur(4px);
  }

  .tecos-grid-2,
  .tecos-grid-2-fr {
    grid-template-columns: 1fr !important;
  }

  .tecos-grid-wa-split {
    grid-template-columns: 1fr !important;
  }

  .tecos-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .tecos-table-scroll {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin: 0 calc(-1 * var(--tecos-pad-page));
    padding: 0 var(--tecos-pad-page);
    width: calc(100% + 2 * var(--tecos-pad-page));
    max-width: 100vw;
  }

  .tecos-modal-panel {
    max-width: calc(100vw - 24px) !important;
    max-height: 92vh !important;
    border-radius: 14px !important;
  }

  [data-tecos-modal-overlay] {
    padding: var(--tecos-modal-pad) !important;
    align-items: center !important;
    justify-items: center !important;
  }

  .tecos-modal-panel--scroll {
    max-height: min(92vh, calc(100dvh - 24px)) !important;
  }

  .tecos-hero:not(.tecos-hero--video) .tecos-hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .tecos-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .tecos-login-card {
    margin: 16px !important;
    max-width: 100% !important;
  }

  .tecos-login-layout {
    grid-template-columns: 1fr !important;
  }

  .tecos-login-brand {
    display: none !important;
  }

  .tecos-login-form-col {
    padding: 24px 16px !important;
    min-height: 100vh;
  }

  .tecos-site-footer {
    padding: 40px 20px 24px !important;
  }

  /* Landing — mapa, calendario y formulario en una columna (anula grid inline de React) */
  .tecos-landing-stack-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .tecos-lead-form-grid {
    grid-template-columns: 1fr !important;
  }

  .tecos-landing-section {
    padding: 48px 16px !important;
  }

  .tecos-footer-bottom-bar {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center;
  }

  /* Admin / alumno — panel móvil */
  .tecos-shell-admin {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .tecos-main,
  .tecos-main--admin {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .tecos-admin-sidebar-drawer {
    width: min(100vw, 320px) !important;
    max-width: 100% !important;
  }

  .tecos-sidebar-drawer__body {
    -webkit-overflow-scrolling: touch;
  }

  .tecos-admin-nav-btn {
    min-height: 48px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
  }

  .tecos-admin-nav-sub-btn {
    min-height: 44px !important;
    padding: 10px 12px 10px 24px !important;
    font-size: 13px !important;
  }

  .tecos-admin-topbar--mobile .tecos-admin-topbar__primary,
  .tecos-admin-topbar--responsive .tecos-admin-topbar__primary {
    width: 100%;
  }

  .tecos-admin-topbar__search-row,
  .tecos-admin-topbar__search-row .tecos-admin-search {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Topbar: layout móvil/escritorio por CSS (evita parpadeo tras login) */
  .tecos-admin-topbar--responsive {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 12px 16px !important;
    gap: 10px !important;
  }

  .tecos-admin-topbar--responsive .tecos-admin-topbar__heading {
    font-size: 26px !important;
  }

  .tecos-admin-topbar--responsive .tecos-admin-topbar__subtitle {
    display: none !important;
  }

  .tecos-admin-topbar--responsive .tecos-admin-topbar__actions--desktop {
    display: none !important;
  }

  .tecos-admin-topbar--responsive .tecos-admin-topbar__icons--mobile {
    display: flex !important;
  }

  .tecos-admin-topbar--responsive .tecos-admin-topbar__menu-btn {
    display: grid !important;
  }

  .tecos-admin-topbar--responsive .tecos-admin-topbar__search-row {
    display: block !important;
    width: 100% !important;
  }

  .tecos-dash,
  .tecos-dash.tecos-dash--mobile,
  .tecos-page-shell.tecos-dash--mobile,
  html.tecos-is-mobile .tecos-dash {
    padding: 12px 14px !important;
    gap: 14px !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    overflow-x: visible !important;
  }

  .tecos-dash > *,
  html.tecos-is-mobile .tecos-dash > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .tecos-dash--mobile .tecos-dash-split {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  .tecos-dash--mobile .tecos-dash-bottom,
  .tecos-dash--mobile .tecos-dash-activity {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  .tecos-dash-kpi-grid,
  .tecos-dash-kpi-grid--mobile,
  .tecos-dash--mobile .tecos-dash-kpi-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    grid-template-columns: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .tecos-dash-kpi-col,
  .tecos-dash-kpi-grid--mobile .tecos-dash-kpi-col,
  .tecos-dash--mobile .tecos-dash-kpi-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .tecos-dash-kpi,
  .tecos-dash--mobile .tecos-dash-kpi {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .tecos-dash-kpi__sub,
  .tecos-dash-kpi__label,
  .tecos-dash-kpi__pct {
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .tecos-dash-month-table-wrap,
  .tecos-dash--mobile .tecos-dash-month-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    border-radius: 10px;
    border: 1px solid rgba(128, 128, 128, 0.2);
    background: rgba(0, 0, 0, 0.02);
  }

  .tecos-dash-month-table-wrap .tecos-dash-scroll-hint,
  .tecos-dash-chart-wrap .tecos-dash-scroll-hint {
    display: block;
  }

  .tecos-dash-month-table,
  .tecos-dash--mobile .tecos-dash-month-table {
    min-width: 640px;
  }

  .tecos-dash-chart-wrap,
  .tecos-dash--mobile .tecos-dash-chart-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .tecos-dash-chart-wrap canvas,
  .tecos-dash--mobile .tecos-dash-chart-wrap canvas {
    max-width: 100% !important;
  }

  .tecos-dash-chart-card,
  .tecos-dash-chart-card .tecos-card {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: visible !important;
  }

  .tecos-dash-sync__body,
  .tecos-dash--mobile .tecos-dash-sync__body {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .tecos-dash-sync,
  .tecos-dash-live-banner {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .tecos-dash-live-banner {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .tecos-dash-live-banner > div:first-child {
    min-width: 0 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  .tecos-dash-live-banner button {
    width: 100%;
    justify-content: center;
  }

  .tecos-dash-sync {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 14px !important;
  }

  .tecos-dash-sync__btn {
    margin-left: 0 !important;
    width: 100%;
    text-align: center;
  }

  .tecos-dash-sync__text {
    font-size: 12px !important;
    line-height: 1.55 !important;
  }

  .tecos-dash-kpi {
    padding: 16px 14px !important;
  }

  .tecos-dash-kpi--lg .tecos-dash-kpi__value {
    font-size: 1.75rem !important;
  }

  .tecos-dash-kpi__value {
    font-size: 1.5rem !important;
  }

  .tecos-dash-period-collapse-head {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .tecos-dash-period-collapse-actions {
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .tecos-dash-period-collapse-actions .tecos-dash-period-toggle,
  .tecos-dash-period-collapse-actions button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .tecos-dash-period-collapse-summary {
    font-size: 11px !important;
    line-height: 1.5 !important;
    word-break: break-word;
  }

  .tecos-dash-chart-card {
    padding: 0 !important;
  }

  .tecos-dash-chart-card > div,
  .tecos-dash-chart-card .tecos-card {
    padding: 14px !important;
  }

  .tecos-dash-chart-wrap {
    min-height: 260px !important;
    margin: 12px 0 !important;
    padding: 8px !important;
  }

  .tecos-dash-split,
  .tecos-dash-bottom,
  .tecos-dash-activity {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .tecos-dash-split > *,
  .tecos-dash-bottom > *,
  .tecos-dash-activity > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .tecos-dash .tecos-card,
  .tecos-shell-admin .tecos-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: visible !important;
  }

  .tecos-dash-activity-row {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .tecos-dash-activity-row__main {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .tecos-dash-activity-row__main > div {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .tecos-dash-activity-row__side {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    text-align: left !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .tecos-dash-period-toggle {
    max-width: 100% !important;
    white-space: normal !important;
    text-align: center;
  }

  .tecos-dash-period-grid,
  .tecos-dash-period-grid--open {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .tecos-dash-alumnos-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .tecos-dash-chart-series-grid,
  .tecos-dash-chart-summary-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .tecos-dash-chart-series-grid {
    grid-template-columns: 1fr !important;
  }

  .tecos-dash-chart-summary-grid {
    grid-template-columns: 1fr !important;
  }

  .tecos-dash-chart-head {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .tecos-dash-chart-head__intro {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .tecos-dash-chart-head__intro p {
    max-width: 100% !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .tecos-dash-chart-head__actions {
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .tecos-dash-chart-head__actions > span {
    width: 100%;
    text-align: left;
  }

  .tecos-dash-month-filter > div {
    width: 100%;
  }

  .tecos-dash-section-head {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .tecos-dash-section-head__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .tecos-shell-admin .tecos-main--admin {
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  .tecos-dash-live-banner > div:first-child {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .tecos-dash-sync__text,
  .tecos-dash-period-live span,
  .tecos-dash-flow__row {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* Portal alumno */
  .tecos-alumno-portal {
    padding: 12px !important;
    gap: 14px !important;
  }

  .tecos-alumno-hero-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  .tecos-alumno-hero-inner h2 {
    font-size: 2rem !important;
  }

  .tecos-alumno-stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .tecos-alumno-split-grid,
  .tecos-alumno-triple-grid,
  .tecos-alumno-perfil-grid {
    grid-template-columns: 1fr !important;
  }

  .tecos-alumno-perfil-fields {
    grid-template-columns: 1fr !important;
  }

  .tecos-alumno-payment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .tecos-alumno-payment-grid button {
    padding: 10px 8px !important;
    min-width: 0;
  }

  .tecos-dash-flow {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .tecos-dash-flow__balance {
    min-width: 0 !important;
    width: 100%;
  }

  .tecos-role-switcher {
    max-width: calc(100vw - 24px);
  }

  .tecos-role-switcher button {
    max-width: 100%;
    font-size: 9px !important;
    padding: 8px 10px !important;
  }
}

/* Portal alumno — frase del día (ancho completo del contenedor) */
.tecos-alumno-daily-quote {
  position: relative;
  width: 100%;
  grid-column: 1 / -1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(10, 42, 107, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.tecos-alumno-daily-quote__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    var(--tecos-quote-primary-dark, #0a2a6b) 0%,
    var(--tecos-quote-primary, #1e90ff) 48%,
    var(--tecos-quote-accent, #22d3ee) 100%
  );
  pointer-events: none;
}

.tecos-alumno-daily-quote__ball {
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.22;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
}

.tecos-alumno-daily-quote__inner {
  position: relative;
  z-index: 1;
  padding: 24px 28px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.tecos-alumno-daily-quote__date {
  flex-shrink: 0;
  text-align: center;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  min-width: 76px;
}

.tecos-alumno-daily-quote__date-num {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  line-height: 1;
  letter-spacing: 1px;
}

.tecos-alumno-daily-quote__date-month {
  display: block;
  font-family: Inter, sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-top: 2px;
}

.tecos-alumno-daily-quote__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0 12px 0 0;
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-align: left;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.4),
    0 3px 18px rgba(0, 0, 0, 0.22);
}

/* ——— Dashboard admin rediseñado ——— */
.tecos-dash {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1400px;
  box-sizing: border-box;
}

.tecos-dash > * {
  min-width: 0;
  max-width: 100%;
}

/* Zonas con scroll horizontal en móvil (tablas / gráfica ancha) */
.tecos-dash-scroll-x {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.tecos-dash-scroll-hint {
  display: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: center;
  padding: 6px 8px 2px;
  font-family: Inter, sans-serif;
  color: rgba(100, 116, 139, 0.95);
}

.tecos-dash-sync {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  flex-wrap: wrap;
}

.tecos-dash-sync__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.tecos-dash-sync__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: Inter, sans-serif;
}

.tecos-dash-sync__text {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.55;
  font-family: Inter, sans-serif;
  opacity: 0.9;
}

/* Topbar admin: escritorio por defecto; móvil en @media (sin depender del primer render de React) */
.tecos-admin-topbar--responsive {
  flex-direction: row;
  align-items: center;
  padding: 20px 32px;
  gap: 12px;
}

.tecos-admin-topbar--responsive .tecos-admin-topbar__heading {
  font-size: 32px;
}

.tecos-admin-topbar--responsive .tecos-admin-topbar__icons--mobile,
.tecos-admin-topbar--responsive .tecos-admin-topbar__menu-btn,
.tecos-admin-topbar--responsive .tecos-admin-topbar__search-row {
  display: none;
}

.tecos-admin-topbar--responsive .tecos-admin-topbar__actions--desktop {
  display: flex;
}

.tecos-dash-chart-toolbar {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tecos-dash-chart-canvas-host {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.tecos-dash-sync__btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: Inter, sans-serif;
  margin-left: auto;
}

.tecos-dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.tecos-dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.tecos-dash-kpi-col {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  min-width: 0;
}

.tecos-dash-kpi {
  border: 1px solid;
  border-radius: 14px;
  padding: 18px 16px;
  width: 100%;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tecos-dash-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.tecos-dash-chart-linked {
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}

.tecos-dash-chart-linked--active {
  transform: translateY(-1px);
}

.tecos-dash-chart-pulse {
  animation: tecos-dash-chart-pulse 1.1s ease-out;
}

@keyframes tecos-dash-chart-pulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.tecos-dash-kpi--lg .tecos-dash-kpi__value {
  font-size: 2.25rem;
}

.tecos-dash-kpi__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: Inter, sans-serif;
}

.tecos-dash-kpi__value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 1px;
  margin-top: 6px;
  line-height: 1;
}

.tecos-dash-kpi__pct {
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
  font-family: Inter, sans-serif;
}

.tecos-dash-kpi__sub {
  font-size: 11px;
  margin-top: 6px;
  line-height: 1.4;
  font-family: Inter, sans-serif;
}

.tecos-dash-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  align-items: start;
}

.tecos-dash-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tecos-dash-section-head__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 1px;
  margin: 0;
  font-weight: 400;
}

.tecos-dash-section-head__sub {
  font-size: 12px;
  margin: 4px 0 0;
  font-family: Inter, sans-serif;
  line-height: 1.45;
}

.tecos-dash-alumnos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.tecos-dash-alumno-stat {
  border: 1px solid;
  border-radius: 10px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  font-family: Inter, sans-serif;
  transition: background 0.2s;
  width: 100%;
}

.tecos-dash-alumno-stat__n {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tecos-dash-alumno-stat__v {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.75rem;
  margin-top: 4px;
}

.tecos-dash-alumno-stat__p {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}

.tecos-dash-alumno-stat__d {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}

.tecos-dash-flow {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: stretch;
}

.tecos-dash-flow__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tecos-dash-flow__head {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  font-family: Inter, sans-serif;
}

.tecos-dash-flow__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: Inter, sans-serif;
  font-size: 12px;
  text-align: left;
  width: 100%;
  color: inherit;
}

.tecos-dash-flow__row em {
  grid-column: 2;
  font-size: 10px;
  font-style: normal;
  opacity: 0.7;
}

.tecos-dash-flow__row--total {
  font-weight: 700;
  margin-top: 4px;
  cursor: default;
}

.tecos-dash-flow__balance {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 16px;
  border-radius: 12px;
  border: 2px solid;
  min-width: 140px;
  gap: 8px;
  font-family: Inter, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tecos-dash-period-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-family: Inter, sans-serif;
  white-space: nowrap;
}

.tecos-dash-period-collapse-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.tecos-dash-period-collapse-head__main {
  flex: 1;
  min-width: 240px;
  display: grid;
  gap: 8px;
}

.tecos-dash-period-collapse-summary {
  font-size: 12px;
  font-family: Inter, sans-serif;
  line-height: 1.5;
  margin: 0;
}

.tecos-dash-period-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-family: Inter, sans-serif;
  line-height: 1.4;
}

.tecos-dash-period-live__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: tecos-pulse 1.2s ease-in-out infinite;
}

.tecos-dash-period-collapse-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tecos-dash-period-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: Inter, sans-serif;
  cursor: pointer;
}

.tecos-dash-period-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(128, 128, 128, 0.2);
}

.tecos-dash-period-grid--open {
  animation: tecos-dash-period-in 0.25s ease;
}

@keyframes tecos-dash-period-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tecos-dash-period-block {
  border: 1px solid;
  border-radius: 12px;
  padding: 14px 16px;
  min-width: 0;
}

.tecos-dash-period-block__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.tecos-dash-period-block__intro {
  font-size: 12px;
  font-family: Inter, sans-serif;
  line-height: 1.45;
  margin: 0 0 12px;
}

.tecos-dash-period-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.tecos-dash-period-list__item {
  border: 1px solid;
  border-radius: 8px;
  padding: 10px 12px;
}

.tecos-dash-period-list__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.tecos-dash-period-list__k {
  font-size: 12px;
  font-weight: 600;
  font-family: Inter, sans-serif;
}

.tecos-dash-period-list__v {
  font-family: Bebas Neue, sans-serif;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.tecos-dash-period-list__d {
  font-size: 11px;
  line-height: 1.45;
  margin: 6px 0 0;
  font-family: Inter, sans-serif;
}

.tecos-dash-kpi__period {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid;
  margin-bottom: 8px;
  font-family: Inter, sans-serif;
}

.tecos-dash-month-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(128, 128, 128, 0.2);
}

.tecos-dash-month-table-head {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: Inter, sans-serif;
  border-bottom: 1px solid rgba(128, 128, 128, 0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
}

.tecos-dash-month-table-head__sum {
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: none;
  font-weight: 600;
}

.tecos-dash-month-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-family: Inter, sans-serif;
}

.tecos-dash-month-table th,
.tecos-dash-month-table td {
  padding: 10px 12px;
  text-align: right;
  border-bottom: 1px solid;
}

.tecos-dash-month-table th:first-child,
.tecos-dash-month-table td:first-child {
  text-align: left;
}

.tecos-dash-month-table tfoot td {
  border-top: 2px solid;
  border-bottom: none;
}

.tecos-dash-month-table--detailed .tecos-dash-month-table__group-row th {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.7px;
  padding-top: 8px;
  padding-bottom: 4px;
}

.tecos-dash-month-table--detailed .tecos-dash-month-table__group {
  border-left: 2px solid rgba(128, 128, 128, 0.2);
}

.tecos-dash-month-table--detailed .tecos-dash-month-table__subhead th {
  font-size: 10px;
  font-weight: 600;
  padding-top: 4px;
  padding-bottom: 8px;
}

.tecos-dash-month-table--detailed .tecos-dash-month-table__ing-total,
.tecos-dash-month-table--detailed .tecos-dash-month-table__egr-total {
  background: rgba(128, 128, 128, 0.06);
}

.tecos-dash-month-table--detailed .tecos-dash-month-table__balance-h,
.tecos-dash-month-table--detailed .tecos-dash-month-table__balance {
  border-left: 2px solid rgba(128, 128, 128, 0.2);
}

.tecos-dash-month-table--detailed .tecos-dash-month-table__mes {
  min-width: 88px;
}

.tecos-dash-month-table-note {
  font-size: 11px;
  line-height: 1.45;
  padding: 10px 12px 12px;
  margin: 0;
  font-family: Inter, sans-serif;
}

.tecos-dash-chart-card {
  padding: 22px !important;
}

.tecos-dash-chart-wrap {
  min-height: 480px;
  margin: 16px 0 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(128, 128, 128, 0.15);
}

.tecos-dash-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.tecos-dash-activity {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tecos-nomina-coach {
  border: 1px solid;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

.tecos-nomina-coach__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.tecos-nomina-week-range {
  display: grid;
  gap: 10px;
}

.tecos-nomina-week-range__title {
  font-size: 13px;
  line-height: 1.4;
}

.tecos-nomina-week-range__title strong {
  font-weight: 700;
  text-transform: capitalize;
}

.tecos-nomina-week-range__inputs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-family: Inter, sans-serif;
}

.tecos-nomina-week-range__inputs label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tecos-nomina-week-range__sep {
  font-weight: 600;
  color: inherit;
  opacity: 0.85;
}

.tecos-nomina-week-range__total {
  font-size: 12px;
  font-family: Inter, sans-serif;
  line-height: 1.5;
}

.tecos-nomina-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  padding: 12px 16px 16px;
}

.tecos-nomina-day {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid;
  min-width: 0;
}

.tecos-nomina-day label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: Inter, sans-serif;
}

.tecos-nomina-day input {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid;
  font-size: 14px;
  font-family: Inter, sans-serif;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .tecos-dash-split,
  .tecos-dash-flow,
  .tecos-dash-period-grid {
    grid-template-columns: 1fr;
  }
  .tecos-dash-flow__balance {
    min-width: 0;
  }
  .tecos-dash-bottom {
    grid-template-columns: 1fr;
  }
  .tecos-dash-activity {
    grid-template-columns: 1fr;
  }
  .tecos-nomina-week {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) and (min-width: 769px) {
  .tecos-dash-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .tecos-dash-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .tecos-student-paid-months {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .tecos-alumno-stats-grid,
  .tecos-alumno-payment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .tecos-grid-4 {
    grid-template-columns: 1fr !important;
  }

  .tecos-hero:not(.tecos-hero--video) .tecos-hero-stats {
    grid-template-columns: 1fr 1fr !important;
  }

  .tecos-dash-kpi-row {
    grid-template-columns: 1fr;
  }
  .tecos-dash-kpi-grid {
    grid-template-columns: 1fr;
  }

  .tecos-nomina-week {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Tienda completa (tienda.html) ─────────────────────────────── */
@media (max-width: 768px) {
  html.tecos-is-mobile .tecos-tienda-nav__links {
    display: none !important;
  }

  html.tecos-is-mobile #catalogo,
  html.tecos-is-mobile .tecos-tienda-catalog,
  html.tecos-is-mobile .tecos-tienda-section {
    scroll-margin-top: 72px;
  }

  html.tecos-is-mobile .tecos-tienda-hero h1 {
    font-size: clamp(48px, 14vw, 72px) !important;
  }

  html.tecos-is-mobile .tecos-tienda-steps .tecos-card {
    padding: 22px 18px !important;
  }

  html.tecos-is-mobile .tecos-tienda-footer .tecos-btn {
    justify-content: center;
  }

  html.tecos-is-mobile .tecos-modal-panel {
    max-height: calc(100dvh - 24px);
    overflow: auto;
  }
}

/* Escáner de asistencias minimizado (admin móvil) */
@media (max-width: 768px) {
  html.tecos-is-mobile .tecos-global-attendance-scanner-fab {
    width: 36px !important;
    height: 36px !important;
    right: 10px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
    border-width: 1.5px !important;
  }

  html.tecos-is-mobile .tecos-scanner-fab-dot {
    top: 3px !important;
    right: 3px !important;
    width: 7px !important;
    height: 7px !important;
  }

  html.tecos-is-mobile .tecos-scanner-fab-icon svg {
    width: 15px !important;
    height: 15px !important;
  }
}

/* ── Toasts de notificaciones (estilo Facebook) ─────────────────── */
.tecos-toast-stack {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  max-width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.tecos-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--tecos-toast-border, rgba(0, 0, 0, 0.08));
  border-radius: 12px;
  background: var(--tecos-toast-bg, #fff);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  text-align: left;
  font-family: Inter, sans-serif;
  animation: tecos-toast-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tecos-toast:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tecos-toast--leaving {
  animation: tecos-toast-out 0.32s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.tecos-toast__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.tecos-toast__body {
  flex: 1;
  min-width: 0;
}

.tecos-toast__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--tecos-toast-title, #111);
  line-height: 1.3;
}

.tecos-toast__preview {
  margin-top: 4px;
  font-size: 12px;
  color: var(--tecos-toast-muted, #666);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tecos-toast__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--tecos-toast-muted, #888);
  cursor: pointer;
  display: grid;
  place-items: center;
  margin: -4px -4px 0 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.tecos-toast__close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--tecos-toast-title, #333);
}

@keyframes tecos-toast-in {
  from {
    opacity: 0;
    transform: translateX(120%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes tecos-toast-out {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(120%) scale(0.96);
  }
}

@media (max-width: 768px) {
  .tecos-toast-stack {
    bottom: 16px;
    right: 12px;
    left: 12px;
    max-width: none;
  }
}

html[data-theme="dark"] .tecos-toast,
.tecos-shell-admin[data-theme="dark"] .tecos-toast,
.tecos-shell-alumno[data-theme="dark"] .tecos-toast {
  --tecos-toast-bg: #1e2430;
  --tecos-toast-border: rgba(255, 255, 255, 0.1);
  --tecos-toast-title: #f0f2f5;
  --tecos-toast-muted: #b0b3b8;
}

html[data-theme="dark"] .tecos-toast__close:hover,
.tecos-shell-admin .tecos-toast__close:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ── Hero MBT Olympic — video taekwondo + azul marino ───────── */
.tecos-hero-mbt {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.tecos-hero-mbt__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tecos-hero-mbt__video,
.tecos-hero-mbt__video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-video-position, center 32%);
  display: block;
  filter: var(--hero-video-filter, none);
}

.tecos-hero-mbt__video-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-scrim);
  pointer-events: none;
}

.tecos-hero-mbt__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 88% 18%, color-mix(in srgb, var(--hero-accent) 18%, transparent), transparent 55%),
    radial-gradient(ellipse 60% 45% at 8% 85%, color-mix(in srgb, var(--hero-primary) 12%, transparent), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--hero-bg) 40%, var(--hero-elev) 100%);
}

.tecos-hero-mbt__stripe {
  position: absolute;
  width: 42%;
  height: 38%;
  background: linear-gradient(135deg, var(--hero-primary) 0%, var(--hero-navy) 100%);
  opacity: var(--hero-stripe-opacity, 0.88);
  z-index: 2;
}

.tecos-hero-mbt__stripe--tl {
  top: 0;
  left: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.tecos-hero-mbt__stripe--br {
  bottom: 0;
  right: 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  background: linear-gradient(315deg, #0a1628 0%, var(--hero-primary) 100%);
}

.tecos-hero-mbt__flare {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--hero-accent) 70%, #fff), transparent);
  opacity: 0.55;
  filter: blur(0.5px);
}

.tecos-hero-mbt__flare--a {
  top: 42%;
  left: -5%;
  right: 10%;
  transform: rotate(-4deg);
  animation: tecos-mbt-flare 6s ease-in-out infinite;
}

.tecos-hero-mbt__flare--b {
  bottom: 28%;
  left: 15%;
  right: -5%;
  transform: rotate(2deg);
  animation: tecos-mbt-flare 8s ease-in-out infinite reverse;
}

@keyframes tecos-mbt-flare {
  0%, 100% { opacity: 0.35; transform: rotate(-4deg) scaleX(0.92); }
  50% { opacity: 0.75; transform: rotate(-4deg) scaleX(1); }
}

.tecos-hero-mbt__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Exo 2', 'Inter', sans-serif;
  font-size: clamp(120px, 22vw, 280px);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--hero-primary);
  opacity: var(--hero-watermark-opacity, 0.07);
  user-select: none;
  white-space: nowrap;
  z-index: 2;
}

.tecos-hero-mbt__logos {
  position: absolute;
  top: 5.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: min(96%, 1040px);
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.tecos-partner-logos--hero-strip {
  width: 100%;
  gap: clamp(8px, 2vw, 22px) !important;
}

.tecos-partner-logos--hero-strip .tecos-partner-logos__item {
  filter: drop-shadow(0 2px 10px rgba(10, 42, 107, 0.18));
  max-height: 62px;
}

.tecos-hero-mbt--theme-dark .tecos-partner-logos--hero-strip .tecos-partner-logos__item,
.tecos-hero-mbt--theme-blue .tecos-partner-logos--hero-strip .tecos-partner-logos__item {
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.55));
}

.tecos-partner-logos--hero-strip .tecos-partner-logos__divider {
  height: 48px;
  min-height: 48px;
  background: rgba(10, 42, 107, 0.22);
}

.tecos-hero-mbt--theme-dark .tecos-partner-logos--hero-strip .tecos-partner-logos__divider,
.tecos-hero-mbt--theme-blue .tecos-partner-logos--hero-strip .tecos-partner-logos__divider {
  background: rgba(255, 255, 255, 0.22);
}

.tecos-hero-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
}

/* Barra editable Temporada / anuncio */
.tecos-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: min(100%, 760px);
  padding: 10px 22px;
  border-radius: 10px;
  background: var(--badge-bg, #0a2a6b);
  border: 2px solid var(--badge-border, #001a4d);
  box-shadow: 0 8px 28px var(--badge-glow, rgba(10, 42, 107, 0.2));
  color: #fff;
  font-family: 'Exo 2', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.tecos-hero-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px var(--badge-glow, rgba(10, 42, 107, 0.28));
}

.tecos-hero-badge__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--badge-dot, #f59e0b);
  box-shadow: 0 0 14px var(--badge-dot, #f59e0b);
  animation: pulseGlow 2s ease-in-out infinite;
}

.tecos-hero-badge__text {
  white-space: normal;
  text-align: center;
  line-height: 1.4;
  word-break: break-word;
}

.tecos-hero-badge--theme-dark,
.tecos-hero-badge--theme-blue {
  box-shadow:
    0 8px 28px var(--badge-glow, rgba(58, 168, 255, 0.25)),
    0 0 24px rgba(58, 168, 255, 0.12);
}

.tecos-hero-partner-logos {
  align-self: center;
  width: min(100%, 960px);
  margin: 0;
  line-height: 0;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.tecos-partner-logos--content {
  width: 100%;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(16px, 3vw, 32px);
}

.tecos-partner-logos__content-item {
  width: auto;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  display: block;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.tecos-partner-logos--theme-light .tecos-partner-logos__content-item {
  filter:
    drop-shadow(0 3px 10px rgba(10, 42, 107, 0.18))
    drop-shadow(0 0 16px rgba(30, 144, 255, 0.12));
}

.tecos-partner-logos--theme-dark .tecos-partner-logos__content-item,
.tecos-partner-logos--theme-blue .tecos-partner-logos__content-item {
  filter:
    drop-shadow(0 0 14px rgba(58, 168, 255, 0.35))
    drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4))
    brightness(1.1)
    contrast(1.04);
}

.tecos-partner-logos--content:hover .tecos-partner-logos__content-item {
  transform: translateY(-2px);
}

.tecos-partner-logos--content .tecos-partner-logos__divider {
  flex: 0 0 1px;
  align-self: center;
  width: 1px;
  height: 56px;
  min-height: 36px;
  background: linear-gradient(180deg, transparent, rgba(10, 42, 107, 0.28), transparent);
}

.tecos-partner-logos--theme-dark .tecos-partner-logos__divider,
.tecos-partner-logos--theme-blue .tecos-partner-logos__divider {
  background: linear-gradient(180deg, transparent, rgba(160, 212, 255, 0.35), transparent);
  box-shadow: 0 0 8px rgba(58, 168, 255, 0.2);
}

/* Tecolotes — búho completo + texto Bebas/Oswald por tema */
.tecos-tecolotes-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: var(--teco-logo-h, 100px);
  height: auto;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.tecos-tecolotes-logo__graphic {
  flex: 0 0 auto;
  width: calc(var(--teco-logo-h, 100px) * 1.12);
  max-width: 100%;
  line-height: 0;
}

.tecos-tecolotes-logo__mark {
  width: 100%;
  height: auto;
  display: block;
  filter: none;
  clip-path: inset(0 0 24% 0);
  -webkit-clip-path: inset(0 0 24% 0);
  margin-bottom: calc(var(--teco-logo-h, 100px) * -0.19);
}

.tecos-tecolotes-logo__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--teco-logo-h, 100px) * 0.01);
  margin-top: calc(var(--teco-logo-h, 100px) * 0.005);
  text-align: center;
}

.tecos-tecolotes-logo__title {
  font-family: 'Bebas Neue', 'Oswald', sans-serif;
  font-size: calc(var(--teco-logo-h, 100px) * 0.2);
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1;
}

.tecos-tecolotes-logo__sub {
  font-family: 'Oswald', 'Bebas Neue', sans-serif;
  font-size: calc(var(--teco-logo-h, 100px) * 0.078);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.1;
  text-transform: uppercase;
}

.tecos-tecolotes-logo--theme-light .tecos-tecolotes-logo__title {
  color: #1a5fd4;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.45);
}

.tecos-tecolotes-logo--theme-light .tecos-tecolotes-logo__sub {
  color: #0d47b8;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.tecos-tecolotes-logo--theme-dark .tecos-tecolotes-logo__title,
.tecos-tecolotes-logo--theme-dark .tecos-tecolotes-logo__sub,
.tecos-tecolotes-logo--theme-blue .tecos-tecolotes-logo__title,
.tecos-tecolotes-logo--theme-blue .tecos-tecolotes-logo__sub {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}

.tecos-partner-logos--content:hover .tecos-tecolotes-logo {
  transform: translateY(-2px);
}

.tecos-hero-partner-logos .tecos-partner-logos__mbt-type {
  --mbt-logo-h: 90px !important;
  height: 90px !important;
  min-height: 90px !important;
}

/* MBT Olympic — Eurostile Extended / Bebas Neue / Oswald */
.tecos-mbt-olympic-logo {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  vertical-align: middle;
}

.tecos-mbt-olympic-logo__below {
  width: 0;
  min-width: 100%;
  display: block;
  padding-right: calc(var(--mbt-logo-h, 100px) * 0.065);
}

.tecos-mbt-olympic-logo__mbt {
  display: block;
  font-family: 'Eurostile Extended', 'Microgramma D Extended', 'Archivo Expanded', sans-serif;
  font-size: calc(var(--mbt-logo-h, 100px) * 0.4);
  font-weight: 700;
  font-style: italic;
  color: #0a1628;
  letter-spacing: 0;
  line-height: 0.9;
  transform: skewX(-7deg);
  transform-origin: left center;
}

.tecos-mbt-olympic-logo__olympic,
.tecos-mbt-olympic-logo__sub {
  display: block;
}

.tecos-mbt-olympic-logo__olympic {
  margin-top: calc(var(--mbt-logo-h, 100px) * 0.01);
  font-family: 'Bebas Neue', sans-serif;
  font-size: calc(var(--mbt-logo-h, 100px) * 0.345);
  font-weight: 400;
  font-style: normal;
  line-height: 0.95;
  letter-spacing: 0.142em;
  background: linear-gradient(180deg, #5eb8ff 0%, #1e90ff 48%, #0a2a6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(30, 144, 255, 0.28));
}

.tecos-mbt-olympic-logo__sub {
  font-family: 'Oswald', 'Bebas Neue', sans-serif;
  font-weight: 700;
  font-style: italic;
  color: #3d4a66;
  line-height: 1.08;
  text-transform: uppercase;
  transform: skewX(-4deg);
  transform-origin: left center;
}

.tecos-mbt-olympic-logo__sub--tkd {
  font-size: calc(var(--mbt-logo-h, 100px) * 0.168);
  letter-spacing: 0.112em;
}

.tecos-mbt-olympic-logo__sub--acd {
  font-size: calc(var(--mbt-logo-h, 100px) * 0.194);
  letter-spacing: 0.142em;
}

/* Tema claro — sombras suaves */
.tecos-mbt-olympic-logo--theme-light .tecos-mbt-olympic-logo__mbt {
  text-shadow: 0 2px 10px rgba(10, 42, 107, 0.12);
}

/* Tema oscuro — brillo neón */
.tecos-mbt-olympic-logo--theme-dark .tecos-mbt-olympic-logo__mbt,
.tecos-mbt-olympic-logo--theme-blue .tecos-mbt-olympic-logo__mbt {
  color: #f1f5ff;
  text-shadow: 0 0 20px rgba(58, 168, 255, 0.35), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.tecos-mbt-olympic-logo--theme-dark .tecos-mbt-olympic-logo__olympic,
.tecos-mbt-olympic-logo--theme-blue .tecos-mbt-olympic-logo__olympic {
  background: linear-gradient(180deg, #b8e4ff 0%, #6ec8ff 30%, #1e90ff 62%, #0a2a6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(76, 180, 255, 0.5));
}

.tecos-mbt-olympic-logo--theme-dark .tecos-mbt-olympic-logo__sub,
.tecos-mbt-olympic-logo--theme-blue .tecos-mbt-olympic-logo__sub {
  color: #b8c9e8;
  text-shadow: 0 0 10px rgba(58, 168, 255, 0.2);
}

.tecos-hero--video .tecos-hero-inner--video {
  padding-top: 20px;
}

.tecos-hero--video .tecos-hero-content {
  gap: 32px;
}

@media (max-width: 768px) {
  .tecos-hero-partner-logos {
    width: 100%;
    max-width: min(100%, 960px);
  }

  .tecos-hero-badge {
    padding: 10px 18px;
    font-size: 11px;
    letter-spacing: 1.8px;
    max-width: 100%;
  }

  .tecos-hero-partner-logos .tecos-partner-logos--content {
    gap: clamp(12px, 2.8vw, 26px);
    flex-wrap: nowrap;
  }

  .tecos-hero-partner-logos .tecos-partner-logos__content-item {
    max-height: clamp(72px, 22vw, 100px);
  }

  .tecos-hero-partner-logos .tecos-partner-logos--content .tecos-partner-logos__divider {
    display: block;
    height: clamp(34px, 10vw, 52px);
    min-height: 34px;
  }

  .tecos-hero-partner-logos .tecos-partner-logos__mbt-type {
    --mbt-logo-h: clamp(70px, 20.7vw, 90px) !important;
    height: clamp(70px, 20.7vw, 90px) !important;
    min-height: clamp(70px, 20.7vw, 90px) !important;
  }

  .tecos-hero-partner-logos .tecos-partner-logos__tecolotes-type {
    --teco-logo-h: clamp(78px, 23vw, 100px) !important;
    min-height: clamp(78px, 23vw, 100px) !important;
    height: auto !important;
  }

  .tecos-hero-intro {
    gap: 30px;
  }

  .tecos-hero--video .tecos-hero-inner--video {
    padding: 20px 20px 80px !important;
  }

  .tecos-hero--video .tecos-hero-content {
    gap: 32px;
  }
}

.tecos-public-topnav .tecos-logo img {
  filter: drop-shadow(0 1px 6px rgba(10, 42, 107, 0.12));
}

/* Logos aliados — barra superior y menú móvil */
.tecos-nav-partner-logos {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 1 auto;
  max-width: min(100%, 400px);
  overflow: visible;
}

.tecos-partner-logos--nav.tecos-partner-logos--content {
  gap: clamp(5px, 1vw, 10px);
  flex-wrap: nowrap;
  width: auto;
  max-width: 100%;
}

.tecos-partner-logos--nav .tecos-partner-logos__content-item {
  max-height: none;
  object-fit: contain;
}

.tecos-partner-logos--nav .tecos-partner-logos__divider {
  height: clamp(28px, 70%, 44px);
  min-height: 28px;
}

.tecos-nav-partner-logos--compact {
  max-width: min(78vw, 400px);
}

.tecos-nav-partner-logos--drawer {
  flex: 1;
  max-width: calc(100% - 48px);
}

.tecos-landing-logo-btn {
  max-width: min(52vw, 400px);
  min-width: 0;
  overflow: visible;
}

.tecos-landing-logo-btn .tecos-logo img {
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  max-height: 56px;
}

@media (max-width: 768px) {
  .tecos-landing-logo-btn {
    max-width: min(78vw, 400px);
    flex: 1 1 auto;
  }

  .tecos-partner-logos--nav.tecos-partner-logos--content {
    gap: clamp(4px, 1.5vw, 8px);
  }

  .tecos-nav-partner-logos--compact .tecos-partner-logos--nav .tecos-partner-logos__divider {
    height: clamp(24px, 65%, 36px);
    min-height: 24px;
  }

  .tecos-nav-partner-logos--drawer .tecos-partner-logos--nav {
    gap: clamp(6px, 2vw, 12px);
  }
}

.tecos-partner-logos--strip {
  width: 100%;
  line-height: 0;
}

.tecos-partner-logos__strip-img {
  width: 100%;
  height: auto;
  max-height: 72px;
  object-fit: contain;
  display: block;
}

.tecos-partner-logos__item {
  width: auto;
  object-fit: contain;
  display: block;
}

.tecos-partner-logos__divider {
  flex: 0 0 1px;
  align-self: center;
  width: 1px;
  height: 70%;
  min-height: 36px;
  background: rgba(10, 42, 107, 0.18);
}

.tecos-hero-mbt__tatami {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 14%;
  height: 34%;
  transform: perspective(800px) rotateX(42deg);
  transform-origin: bottom center;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  box-shadow: 0 -6px 36px color-mix(in srgb, var(--hero-primary) 20%, transparent);
}

.tecos-hero-mbt__fighter {
  opacity: 0.85;
}

.tecos-hero-mbt__fighter-kick {
  animation: tecos-mbt-kick 2.8s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes tecos-mbt-kick {
  0%, 100% { transform: rotate(0deg); }
  45% { transform: rotate(-8deg) translateY(-4px); }
}

.tecos-hero-mbt__belts {
  position: absolute;
  inset: 0;
}

.tecos-hero-mbt__belt {
  position: absolute;
  width: 48px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--hero-primary), var(--hero-accent));
  opacity: 0.35;
  animation: tecos-mbt-belt-float 9s ease-in-out infinite;
  animation-delay: calc(var(--bi) * -1.4s);
  top: calc(18% + var(--bi) * 11%);
  left: calc(8% + var(--bi) * 14%);
  transform: rotate(-25deg);
}

@keyframes tecos-mbt-belt-float {
  0%, 100% { transform: rotate(-25deg) translateY(0); opacity: 0.25; }
  50% { transform: rotate(-18deg) translateY(-18px); opacity: 0.5; }
}

.tecos-hero-mbt__kicks {
  position: absolute;
  inset: 0;
}

.tecos-hero-mbt__kick {
  position: absolute;
  pointer-events: none;
}

.tecos-hero-mbt__kick--main {
  top: 22%;
  right: 8%;
  opacity: 0.22;
  animation: tecos-mbt-kick-float 5s ease-in-out infinite;
}

.tecos-hero-mbt__kick--a {
  top: 58%;
  right: 22%;
  opacity: 0.14;
  animation: tecos-mbt-kick-float 6s ease-in-out infinite reverse;
}

.tecos-hero-mbt__kick--b {
  top: 38%;
  right: 4%;
  opacity: 0.1;
}

@keyframes tecos-mbt-kick-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(6deg); }
}

.tecos-hero-mbt__sparkles {
  position: absolute;
  inset: 0;
}

.tecos-hero-mbt__spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hero-accent);
  top: calc(12% + (var(--si) * 7.3%));
  left: calc(5% + (var(--si) * 8.1%));
  opacity: 0;
  animation: tecos-mbt-spark 3.5s ease-in-out infinite;
  animation-delay: calc(var(--si) * -0.35s);
}

@keyframes tecos-mbt-spark {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

.tecos-hero-mbt__values {
  position: absolute;
  bottom: 22%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  z-index: 2;
  max-width: 90%;
}

.tecos-hero-mbt__value-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--hero-value-bg);
  border: 1px solid var(--hero-value-border);
  color: var(--hero-value-color);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(10, 42, 107, 0.08);
}

.tecos-hero-mbt--theme-dark .tecos-hero-mbt__value-pill,
.tecos-hero-mbt--theme-blue .tecos-hero-mbt__value-pill {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.tecos-hero-mbt__tagline {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(11px, 1.8vw, 15px);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.35em;
  color: var(--hero-navy);
  opacity: 0.55;
  text-transform: uppercase;
  white-space: nowrap;
}

.tecos-hero-mbt__readability {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: var(--hero-readability);
  pointer-events: none;
}

.tecos-hero-mbt--video .tecos-hero-mbt__values {
  z-index: 3;
}

.tecos-hero-mbt--video .tecos-hero-mbt__tagline {
  z-index: 3;
  color: #fff;
  text-shadow: 0 2px 12px rgba(10, 42, 107, 0.45);
  opacity: 0.92;
}

.tecos-hero--video .tecos-hero-logo-side {
  display: none;
}

.tecos-hero--theme-light.tecos-hero--video .tecos-hero-stats {
  border-top-color: rgba(10, 42, 107, 0.14) !important;
}

.tecos-hero--theme-dark.tecos-hero--video .tecos-hero-stats,
.tecos-hero--theme-blue.tecos-hero--video .tecos-hero-stats {
  border-top-color: var(--hero-border, rgba(255, 255, 255, 0.1));
}

.tecos-hero--video .tecos-hero-headline-row {
  max-width: 100%;
}

.tecos-hero--video .tecos-hero-title {
  font-size: clamp(2.75rem, 5.8vw, 5.25rem) !important;
  line-height: 1.02 !important;
}

.tecos-hero-mbt--static .tecos-hero-mbt__kick,
.tecos-hero-mbt--static .tecos-hero-mbt__fighter-kick,
.tecos-hero-mbt--static .tecos-hero-mbt__belt {
  animation: none !important;
}

.tecos-hero--mbt .tecos-hero-title {
  font-family: 'Exo 2', 'Inter', sans-serif !important;
  font-style: italic;
  font-weight: 800 !important;
}

.tecos-partner-logos img {
  max-width: 100%;
}

@media (max-width: 768px) {
  .tecos-hero.tecos-hero--video {
    min-height: clamp(680px, 100svh, 860px);
  }

  .tecos-hero-mbt--mobile .tecos-hero-mbt__video,
  .tecos-hero-mbt--mobile .tecos-hero-mbt__video-poster {
    object-position: var(--hero-video-position, 72% 28%);
    min-height: 100%;
  }

  .tecos-hero-mbt--mobile .tecos-hero-mbt__video-wrap {
    min-height: 100%;
  }

  /* Mismo título, cuerpo y stats que escritorio — escala fluida */
  .tecos-hero--video .tecos-hero-title {
    font-size: clamp(2.75rem, 5.8vw, 5.25rem) !important;
    line-height: 1.02 !important;
  }

  .tecos-hero-subtitle-block {
    margin-bottom: 28px;
    max-width: 100%;
  }

  .tecos-hero-actions {
    margin-bottom: 28px;
    gap: 12px;
    justify-content: flex-start;
  }

  .tecos-hero-values {
    margin-bottom: 40px;
    gap: 10px 14px;
    justify-content: flex-start;
  }

  .tecos-hero-daily-attribution {
    font-size: 1rem;
    margin-top: 14px;
  }

  .tecos-hero--video .tecos-hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px 12px !important;
    margin-top: 0 !important;
    padding-top: 32px !important;
  }

  .tecos-hero-stat__value {
    font-size: clamp(2rem, 5vw, 3.5rem);
  }

  .tecos-hero-stat__label {
    font-size: 10px;
    letter-spacing: 1.3px;
    margin-top: 8px;
  }
}

@media (max-width: 520px) {
  .tecos-hero-partner-logos .tecos-partner-logos--content {
    gap: 10px;
  }

  .tecos-hero-partner-logos .tecos-partner-logos__mbt-type {
    --mbt-logo-h: 67px !important;
    height: 67px !important;
    min-height: 67px !important;
  }

  .tecos-hero-partner-logos .tecos-partner-logos__tecolotes-type {
    --teco-logo-h: 74px !important;
    min-height: 74px !important;
  }

  .tecos-hero-partner-logos .tecos-partner-logos__content-item {
    max-height: 74px;
  }

  .tecos-hero-partner-logos .tecos-partner-logos--content .tecos-partner-logos__divider {
    height: 38px;
    min-height: 38px;
  }

  .tecos-hero--video .tecos-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px 16px !important;
  }

  .tecos-hero-stat__label {
    font-size: 10px;
  }
}
