/* Cali Leones · capa de acabado visual (se carga después de styles.css) */
:root {
  --sec: clamp(72px, 9vw, 128px);
  --radio-card: 22px;
  --sombra-sm: 0 1px 2px rgba(10, 20, 48, .06), 0 4px 14px rgba(10, 20, 48, .06);
  --sombra-md: 0 2px 6px rgba(10, 20, 48, .06), 0 18px 40px rgba(10, 20, 48, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Tipografía ---------- */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h2 { letter-spacing: -.018em; line-height: .98; }
p { text-wrap: pretty; }
.about-text p, .section-head p, .story-text p, .why-big + p, .contact-grid > div > p, .barber p, .social p { line-height: 1.65; }

.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: .8125rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--camiseta); }
.eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: var(--amarillo); flex: none; }
.story .eyebrow, .contact .eyebrow { color: var(--amarillo); }
.section-head .eyebrow, .about-grid .eyebrow, .why-grid .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }

/* ---------- Espaciado de secciones ---------- */
.about { padding-block: var(--sec) 0; }
.disciplines, .story, .coaches, .why, .extras { padding-block: var(--sec); }
.contact { padding-block: clamp(64px, 8vw, 112px); }
.section-head { margin-bottom: clamp(28px, 4vw, 52px); }
.section-head, .about-grid, .why-grid { row-gap: 18px; }
.section-head p { color: var(--tinta-suave); }

/* ---------- Encabezado ---------- */
.site-header { transition: box-shadow .3s, border-color .3s; }
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(10, 20, 48, .08); border-bottom-color: transparent; }
.main-nav a { font-weight: 600; font-size: .9688rem; }

/* ---------- Botones ---------- */
.btn { border-radius: 999px; padding: 13px 26px; letter-spacing: .005em; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { box-shadow: 0 6px 18px rgba(11, 47, 94, .22); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(11, 47, 94, .3); }
.btn-gold { box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.header-cta { padding-inline: 20px; }
.icon-btn { border-radius: 999px; }

/* ---------- Chips, pestañas y tarjetas ---------- */
.chips li { border-radius: 999px; padding: 6px 14px; border: 1px solid var(--linea); background: #fff; }
.tablist [role="tab"] { border-radius: 999px; padding: 8px 18px; }
.tablist [role="tab"][aria-selected="true"] { box-shadow: 0 6px 16px rgba(10, 20, 48, .18); }
[role="tabpanel"] { animation: panelIn .35s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } }

.stats .stat-claim { box-shadow: var(--sombra-md); }

.coach { display: flex; flex-direction: column; justify-content: flex-start; border-radius: var(--radio-card); }
.coach img { border-radius: var(--radio-card); box-shadow: var(--sombra-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.coach:hover img { transform: translateY(-6px); box-shadow: var(--sombra-md); }
.coach-name { margin-top: 14px; }

.then-now img { box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.barber > video { box-shadow: var(--sombra-md); }
.social-link { transition: color .2s, padding .25s var(--ease); }
.social-link:hover { padding-left: 6px; }

/* ---------- Disciplinas: fila deslizable ---------- */
.disc-carousel { position: relative; }
.disc-track {
  display: flex; gap: clamp(14px, 1.8vw, 24px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 18px; scroll-padding-inline: var(--gutter);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.disc-track::-webkit-scrollbar { display: none; }
.disc-track:focus-visible { outline-offset: -3px; }
.disc-track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
.disc-track.is-dragging .disc-card { pointer-events: none; }

.disc-card { position: relative; flex: 0 0 clamp(264px, 23vw, 320px); scroll-snap-align: start; display: flex; flex-direction: column; }
.disc-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radio-card); background: var(--papel); box-shadow: var(--sombra-sm); transition: box-shadow .35s; }
.disc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.disc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 48, 0) 55%, rgba(10, 20, 48, .55)); pointer-events: none; }
.disc-num { position: absolute; top: 14px; left: 14px; z-index: 1; display: grid; place-items: center; min-width: 44px; height: 32px; padding-inline: 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--noche); font-size: .875rem; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.disc-tag { position: absolute; left: 14px; bottom: 14px; z-index: 1; padding: 6px 12px; border-radius: 999px; background: var(--amarillo); color: var(--noche); font-size: .8125rem; font-weight: 700; }
.disc-body { display: flex; flex-direction: column; flex: 1; padding: 18px 4px 0; }
.disc-meta { font-size: .875rem; font-weight: 600; color: var(--tinta-suave); }
.disc-title { margin-top: 4px; font-size: clamp(1.875rem, 2.6vw, 2.375rem); font-weight: 800; font-stretch: 75%; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; }
.disc-desc { margin-top: 10px; color: var(--tinta-suave); line-height: 1.55; }
.disc-more { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--camiseta); }
.disc-more svg { transition: transform .25s var(--ease); }
.disc-more::after { content: ""; position: absolute; inset: 0; border-radius: var(--radio-card); }
.disc-more:focus-visible { outline: none; }
.disc-more:focus-visible::after { outline: 3px solid var(--camiseta); outline-offset: 4px; }
.disc-card:hover .disc-media img { transform: scale(1.05); }
.disc-card:hover .disc-media { box-shadow: var(--sombra-md); }
.disc-card:hover .disc-more svg { transform: translateX(4px); }

.disc-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 10px; }
.disc-progress { flex: 1; max-width: 320px; height: 3px; border-radius: 3px; background: var(--linea); overflow: hidden; }
.disc-progress span { display: block; height: 100%; width: 30%; border-radius: inherit; background: var(--camiseta); transform-origin: left; transition: transform .2s linear; }
.disc-hint { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--tinta-suave); }
.disc-arrows { display: flex; gap: 10px; }
.disc-arrow { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--noche); color: var(--noche); transition: background-color .2s, color .2s, opacity .2s, transform .2s var(--ease); }
.disc-arrow:hover:not(:disabled) { background: var(--noche); color: #fff; transform: translateY(-1px); }
.disc-arrow:disabled { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .disc-track { cursor: grab; } .disc-hint { display: none; } }
@media (hover: none), (pointer: coarse) { .disc-arrows { display: none; } }
@media (max-width: 767px) { .disc-arrows { display: none; } .disc-hint { display: inline-flex; } }
@media (max-width: 640px) {
  .disc-card { flex-basis: 78%; }
  .disc-nav { flex-direction: column-reverse; align-items: flex-start; gap: 14px; }
  .disc-progress { width: 100%; max-width: none; }
}

/* Ventana de cada disciplina */
.sport-dialog h3 { margin-block: 20px 10px; font-size: 1.25rem; }
.sport-dialog .btn { margin-top: 4px; }

/* ---------- Patrocinadores ---------- */
.sponsors { padding-block: clamp(64px, 8vw, 112px); background: #fff; text-align: center; border-bottom: 1px solid var(--linea); }
.sponsors .eyebrow { justify-content: center; }
.sponsors h2 { text-transform: uppercase; letter-spacing: .02em; color: var(--camiseta); }
.sponsor-row { display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 5vw, 72px); margin-top: clamp(32px, 5vw, 60px); }
.sponsor { display: grid; justify-items: center; gap: 14px; flex: 0 1 220px; transition: opacity .6s, transform .6s var(--ease), filter .6s; }
.sponsor img { width: 100%; max-width: 220px; aspect-ratio: 1; border-radius: 50%; transition: box-shadow .6s; }
.sponsor span { position: relative; padding-bottom: 8px; font-size: clamp(.9375rem, 1.6vw, 1.375rem); font-weight: 800; font-stretch: 75%; line-height: 1.1; }
.sponsor span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--camiseta); transform: scaleX(0); transition: transform .5s .15s; }
.sponsor-row.cycling .sponsor { opacity: .35; transform: scale(.82); filter: grayscale(1); }
.sponsor-row.cycling .sponsor.is-on { opacity: 1; transform: scale(1.08); filter: none; }
.sponsor-row.cycling .sponsor.is-on img { box-shadow: 0 0 0 4px var(--amarillo), 0 18px 44px rgba(11, 47, 94, .28); }
.sponsor-row.cycling .sponsor.is-on span::after { transform: scaleX(1); }

/* ---------- Ventanas (diálogos) ---------- */
dialog[open] { animation: dlgIn .34s var(--ease); }
dialog[open]::backdrop { animation: bdIn .34s ease; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes bdIn { from { opacity: 0; } }
.bio { box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.bio [data-close] { box-shadow: var(--sombra-sm); }

/* ---------- Aparición suave al desplazarse ---------- */
.rv-ready .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--rv-d, 0s); }
.rv-ready .rv.rv-in { opacity: 1; transform: none; }

/* ---------- Ajustes por tamaño de pantalla ---------- */
@media (max-width: 640px) {
  .eyebrow { font-size: .75rem; letter-spacing: .18em; margin-bottom: 14px; }
  .btn { padding: 13px 22px; }
  .header-cta { padding: 0; }
  .sponsor-row { gap: 10px; }
}
