/* =============================================================================
   YogaPop Up · estilos de la funcionalidad de cuenta y videos.
   Solo usa las variables de style.css (colores, radios, sombras): no redefine el diseño.
   ============================================================================= */

/* ===== Cuenta ===== */
.icon-btn { position: relative; }
.icon-btn.has-session::after {
  content: ""; position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--color-primary); border: 2px solid #fff;
}
.yp-account-menu {
  position: fixed; z-index: 1080; min-width: 230px; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-hover); padding: .4rem; display: grid; gap: .1rem;
}
.yp-account-who { padding: .6rem .8rem .7rem; border-bottom: 1px solid var(--color-border); margin-bottom: .3rem; display: grid; }
.yp-account-who small { color: var(--color-text-muted); overflow-wrap: anywhere; }
.yp-account-item {
  display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border: 0; background: none; width: 100%;
  border-radius: .6rem; color: var(--color-text); font-size: .92rem; text-align: left; cursor: pointer;
}
.yp-account-item:hover, .yp-account-item:focus-visible { background: var(--color-light); color: var(--color-primary-dark); }

/* ===== Modal de acceso ===== */
.yp-auth .modal-content { border: 0; border-radius: var(--radius-md); box-shadow: var(--shadow-hover); }
.yp-cf-thumb-preview { display: block; margin-top: .5rem; border-radius: var(--radius-sm, .5rem); object-fit: cover; aspect-ratio: 16/9; }
.yp-auth .modal-header { border: 0; gap: .6rem; padding: 1.4rem 1.6rem .4rem; align-items: center; }
.yp-auth .modal-title { font-size: 1.35rem; font-weight: 700; margin-right: auto; }
.yp-auth .modal-body { padding: .8rem 1.6rem 1.8rem; }
.yp-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; background: var(--color-light); padding: .3rem; border-radius: 999px; margin-bottom: 1.2rem; }
.yp-tab { border: 0; background: transparent; padding: .55rem; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--color-text); }
.yp-tab.active { background: var(--color-surface); color: var(--color-primary); box-shadow: var(--shadow-soft); }
.yp-auth .form-control { border-radius: .8rem; padding: .7rem 1rem; border-color: var(--color-border); }
.yp-auth .form-control:focus { border-color: var(--color-primary); box-shadow: 0 0 0 .2rem rgba(182, 203, 193, .7); }
.yp-link { background: none; border: 0; padding: 0; color: var(--color-primary); font-weight: 600; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.yp-link:hover { color: var(--color-primary-dark); }
.yp-auth-note { color: var(--color-text-muted); font-size: .92rem; }
.yp-auth-ok { font-size: 2.6rem; color: var(--color-primary); }

/* ===== Avisos ===== */
.yp-toasts { position: fixed; z-index: 1100; right: 1rem; bottom: 1rem; display: grid; gap: .6rem; width: min(360px, calc(100vw - 2rem)); }
.yp-toast {
  display: flex; align-items: flex-start; gap: .7rem; background: var(--color-surface); border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary); border-radius: .8rem; padding: .8rem .9rem; box-shadow: var(--shadow-hover); font-size: .92rem;
}
.yp-toast span { flex: 1; }
.yp-toast-error { border-left-color: var(--terracota); }
.yp-toast-error > .bi:first-child { color: var(--terracota); }
.yp-toast-success > .bi:first-child { color: var(--color-primary); }
.yp-toast-x { background: none; border: 0; color: var(--color-text-muted); padding: 0; }

/* ===== Tarjetas de clase (extras sobre .video-card) ===== */
.video-card-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-mint), var(--color-light)); }
.video-lock { position: absolute; z-index: 2; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--color-primary); font-size: .85rem; }
.video-progress { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.35); }
.video-progress > span { display: block; height: 100%; background: var(--color-mint); }

/* ===== Páginas de videoteca y clase ===== */
.page-hero { padding: 3.2rem 0 1.2rem; }
.page-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; margin: 0 0 .4rem; }
.page-hero p { color: var(--color-text-muted); max-width: 60ch; margin: 0; }
.yp-filters { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin: 1.6rem 0 2rem; }
.yp-filters .form-control, .yp-filters .form-select { border-radius: 999px; border: 1px solid var(--color-border); font-size: .9rem; padding: .55rem 1rem; max-width: 260px; }
.yp-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.yp-chip { border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); border-radius: 999px; padding: .4rem .95rem; font-size: .85rem; font-weight: 600; }
.yp-chip[aria-pressed="true"] { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.yp-block-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 1rem; }

.yp-state { text-align: center; padding: 3.5rem 1rem; color: var(--color-text-muted); }
.yp-state .bi { font-size: 2.4rem; color: var(--color-primary); display: block; margin-bottom: .6rem; }
.yp-state h2 { font-size: 1.2rem; color: var(--color-text); }
.yp-state .btn { margin-top: .8rem; }
.yp-skeleton { aspect-ratio: 16 / 10; border-radius: var(--radius-md); background: linear-gradient(90deg, var(--color-light), #fff, var(--color-light)); background-size: 200% 100%; animation: yp-shimmer 1.4s linear infinite; }
@keyframes yp-shimmer { to { background-position: -200% 0; } }

.clase-layout { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); padding: 1.6rem 0 4rem; }
@media (min-width: 992px) { .clase-layout { grid-template-columns: minmax(0, 1fr) 340px; } }
.clase-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 1rem; }
.clase-title { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700; margin: 0; }
.clase-desc { color: var(--color-text-muted); white-space: pre-line; }
.clase-stage { aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: var(--color-deep); box-shadow: var(--shadow-soft); }
.clase-gate { height: 100%; display: grid; place-content: center; text-align: center; gap: .6rem; padding: 1.5rem; color: #fff; }
.clase-gate .bi { font-size: 2.4rem; color: var(--color-mint); }
.clase-gate p { margin: 0; color: rgba(255,255,255,.85); max-width: 42ch; }
.clase-gate .btn { justify-self: center; }
/* .btn-brand (fondo tinta) se funde con el escenario oscuro (también tinta): dentro del gate se
   invierte a salvia sólido para que el botón se distinga como tal, sea cual sea el mensaje. */
.clase-gate .btn-brand { background: var(--salvia); color: var(--tinta); border-color: var(--salvia); }
.clase-gate .btn-brand:hover { background: var(--blanco-calido); border-color: var(--blanco-calido); color: var(--tinta); }
.clase-side { display: grid; gap: 1rem; align-content: start; }

/* ===== Reproductor ===== */
.yp-player { position: relative; width: 100%; height: 100%; background: #000; color: #fff; overflow: hidden; user-select: none; outline: none; }
.yp-player:focus-visible { box-shadow: inset 0 0 0 3px var(--color-mint); }
.yp-video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.yp-player.yp-fullscreen { border-radius: 0; }

.yp-bigplay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 78px; height: 78px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: var(--color-primary); font-size: 2.4rem; display: grid; place-items: center; transition: transform .3s var(--ease), background .3s var(--ease); }
.yp-bigplay:hover { transform: translate(-50%, -50%) scale(1.08); background: var(--color-light); }
.yp-player[data-state="playing"] .yp-bigplay, .yp-player[data-state="loading"] .yp-bigplay, .yp-player[data-state="error"] .yp-bigplay { display: none; }

.yp-spinner { position: absolute; inset: 0; display: none; place-items: center; pointer-events: none; }
.yp-player[data-state="loading"] .yp-spinner, .yp-player.yp-buffering .yp-spinner { display: grid; }
.yp-spinner .spinner-border { color: var(--color-mint); width: 3rem; height: 3rem; }

.yp-resume { position: absolute; z-index: 2; /* sobre .yp-controls, que va después en el DOM y si no se come el clic */ left: 50%; bottom: 84px; transform: translateX(-50%); display: flex; align-items: center; gap: .6rem; white-space: nowrap;
  background: rgba(74,64,54,.88); border-radius: 999px; padding: .5rem 1rem; font-size: .88rem; backdrop-filter: blur(6px); }
.yp-resume[hidden], .yp-error[hidden], .yp-menu[hidden] { display: none; }
.yp-resume .yp-link { color: var(--color-mint); }

.yp-error { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .6rem; text-align: center; padding: 1.5rem; background: rgba(74,64,54,.85); }
.yp-error-ico { font-size: 2.2rem; color: var(--color-mint); }
.yp-error-msg { margin: 0; max-width: 40ch; }

.yp-controls { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem .9rem .6rem; background: linear-gradient(transparent, rgba(74,64,54,.78)); transition: opacity .3s var(--ease); }
.yp-player.yp-idle .yp-controls { opacity: 0; pointer-events: none; }
.yp-player.yp-idle { cursor: none; }
.yp-player[data-state="loading"] .yp-controls, .yp-player[data-state="error"] .yp-controls { opacity: .35; pointer-events: none; }

.yp-seekwrap { position: relative; height: 18px; display: flex; align-items: center; }
.yp-track { position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: rgba(255,255,255,.28); overflow: hidden; pointer-events: none; }
.yp-buffered, .yp-played { position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
.yp-buffered { background: rgba(255,255,255,.35); }
.yp-played { background: var(--color-mint); }
.yp-seek, .yp-volume { -webkit-appearance: none; appearance: none; background: transparent; margin: 0; cursor: pointer; }
.yp-seek { position: relative; width: 100%; height: 18px; }
.yp-seek::-webkit-slider-runnable-track, .yp-volume::-webkit-slider-runnable-track { background: transparent; height: 18px; }
.yp-seek::-moz-range-track, .yp-volume::-moz-range-track { background: transparent; }
.yp-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(182,203,193,.5); }
.yp-seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.yp-seek:disabled { cursor: default; opacity: .5; }

.yp-bar { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.yp-left, .yp-right { display: flex; align-items: center; gap: .2rem; }
.yp-btn { background: none; border: 0; color: #fff; min-width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; font-size: 1.35rem; }
.yp-btn:hover { background: rgba(255,255,255,.16); }
.yp-btn:focus-visible { outline: 3px solid var(--color-mint); outline-offset: 0; }
.yp-text-btn { font-size: .85rem; font-weight: 600; border-radius: 999px; padding: 0 .7rem; }
.yp-vol { display: flex; align-items: center; }
.yp-volume { width: 0; opacity: 0; transition: width .25s var(--ease), opacity .25s var(--ease); height: 18px; }
.yp-vol:hover .yp-volume, .yp-volume:focus-visible { width: 76px; opacity: 1; margin-right: .5rem; }
.yp-volume::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.yp-volume::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
@media (pointer: coarse) { .yp-vol .yp-volume { display: none; } }
.yp-time { font-size: .85rem; font-variant-numeric: tabular-nums; margin-left: .4rem; white-space: nowrap; }

.yp-menuwrap { position: relative; }
.yp-menu { position: absolute; right: 0; bottom: 48px; min-width: 130px; background: rgba(74,64,54,.96); border-radius: .8rem; padding: .3rem; display: grid; }
.yp-menu-item { background: none; border: 0; color: #fff; text-align: left; padding: .5rem .8rem; border-radius: .5rem; font-size: .85rem; }
.yp-menu-item:hover { background: rgba(255,255,255,.14); }
.yp-menu-item[aria-checked="true"] { color: var(--color-mint); font-weight: 700; }
.yp-menu-item[aria-checked="true"]::before { content: "✓ "; }

@media (max-width: 575px) {
  .yp-back, .yp-fwd { display: none; }
  .yp-bigplay { width: 64px; height: 64px; font-size: 2rem; }
  .yp-resume { bottom: 76px; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .yp-skeleton { animation: none; } .yp-controls, .yp-bigplay { transition: none; } }

/* ===== Cuenta ===== */
.yp-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.6rem; box-shadow: var(--shadow-soft); height: 100%; }
.yp-card .form-control { border-radius: .8rem; padding: .7rem 1rem; border-color: var(--color-border); }
.progress-bar.bg-brand { background-color: var(--color-primary); }

/* ===== Panel: tabla de clases ===== */
.table-scroll-hint { display: flex; align-items: center; gap: .4rem; color: var(--color-text-muted); font-size: .82rem; margin: -.4rem 0 .6rem; }
@media (min-width: 992px) { .table-scroll-hint { display: none; } }

/* ===== Tienda (Fase 13) ===== */
.shop-link { display: block; color: inherit; text-decoration: none; }
.shop-body h3 a { color: inherit; text-decoration: none; }
.shop-body h3 a:hover { color: var(--color-primary); }
.shop-media { position: relative; }
.shop-media img { width: 100%; height: 100%; object-fit: cover; }
.shop-media-lg { border-radius: var(--radius-md); font-size: 6rem; }
.shop-flag { position: absolute; top: .7rem; left: .7rem; }
.shop-card.is-soldout .shop-media img, .shop-card.is-soldout .shop-media i { opacity: .45; }
.shop-stock { color: var(--color-text-muted); font-size: .78rem; }
.producto-title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; margin: .4rem 0; }
.producto-price { font-size: 1.6rem; font-weight: 700; margin: 0 0 .8rem; }
.producto-desc { color: var(--color-text-muted); white-space: pre-line; max-width: 60ch; }

/* Panel de negocio (Fases 8-14): pestañas e interruptores con la paleta de la marca (sin el azul por defecto de Bootstrap) */
.nav-tabs { border-bottom-color: var(--color-border); }
.nav-tabs .nav-link { color: var(--color-text); border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; font-weight: 600; }
.nav-tabs .nav-link:hover { color: var(--color-primary); border-bottom-color: var(--color-border); }
.nav-tabs .nav-link.active { color: var(--color-primary); background: none; border-bottom-color: var(--color-primary); }
.form-check-input:checked { background-color: var(--color-primary); border-color: var(--color-primary); }
.form-check-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 .2rem rgba(74, 64, 54, .18); }

/* ---- Carrito (Fase 16) ---- */
.cart-badge[hidden] { display: none; }
.cart-thumb { overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info h3 a { color: inherit; text-decoration: none; }
.cart-info h3 a:hover { color: var(--color-primary); }
.cart-issue { color: #9a3412; font-weight: 600; }
.cart-item.is-broken .cart-info h3 { color: var(--color-text-muted); }
.qty button:disabled { opacity: .35; cursor: not-allowed; background: none; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--color-text-muted); }
.cart-empty .bi { font-size: 2.4rem; color: var(--color-primary); display: block; margin-bottom: .6rem; }
.cart-alert { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; padding: .7rem .9rem; margin-bottom: 1rem; border-radius: var(--radius-sm); background: #fff7ed; color: #9a3412; font-size: .85rem; }
.cart-alert .btn { margin-left: auto; }
.cart-note { margin: 0 0 .8rem; font-size: .78rem; color: var(--color-text-muted); text-align: center; }

/* ---- Páginas legales (política de privacidad) ---- */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.3rem; font-weight: 700; margin: 2.2rem 0 .6rem; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 1.2rem; }
.legal .legal-meta { color: var(--color-text-muted); font-size: .9rem; }
.legal .yp-pending { background: #fff3cd; color: #664d03; padding: 0 .35em; border-radius: .3em; font-style: normal; }

/* ---- Precio con IVA incluido y, al lado más chico, el precio sin IVA ---- */
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .55rem; }
.shop-body .price-row { margin-bottom: .6rem; }
.shop-body .price-row .price { margin-bottom: 0; }
.price-net { color: var(--color-text-muted); font-size: .72rem; font-weight: 400; white-space: nowrap; }
.price-row-lg { margin: 0 0 .1rem; }
.price-row-lg .producto-price { margin: 0; }
.price-row-lg .price-net { font-size: .85rem; }
.price-note { color: var(--color-text-muted); font-size: .78rem; margin: 0 0 .9rem; }

/* ---- Talles ---- */
.size-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0 0 .7rem; }
.size-chip { font-size: .72rem; line-height: 1.5; padding: 0 .45rem; border: 1px solid var(--color-border); border-radius: 6px; color: var(--color-text); }
.size-chip.is-out { color: var(--color-text-muted); text-decoration: line-through; }
.size-picker { margin: 1.1rem 0 .4rem; }
.size-label { margin: 0 0 .5rem; font-size: .95rem; }
.size-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.size-btn {
  min-width: 3.4rem; padding: .6rem .9rem; font-weight: 600; font-size: .95rem; font-family: inherit;
  color: var(--color-text); background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); cursor: pointer; transition: border-color .15s, background-color .15s;
}
.size-btn:hover:not(:disabled) { border-color: var(--color-primary); }
.size-btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.size-btn.is-selected { color: var(--blanco-calido); background: var(--color-primary); border-color: var(--color-primary); }
.size-btn.is-out { color: var(--color-text-muted); text-decoration: line-through; background: transparent; cursor: not-allowed; opacity: .6; }
.size-error { color: #b42318; font-size: .85rem; font-weight: 600; margin: .6rem 0 0; }
.cart-size { color: var(--color-text-muted); font-size: .75rem; }
.cart-tax { color: var(--color-text-muted); font-size: .75rem; text-align: right; margin: -.6rem 0 1rem; }
.size-presets { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.size-rows { display: grid; gap: .4rem; margin-bottom: .4rem; }
.size-row { display: grid; grid-template-columns: 7rem 1fr auto; gap: .4rem; align-items: center; }

/* ---- Stock por talle en la lista del panel ---- */
.size-stock { display: flex; flex-wrap: wrap; gap: .25rem .4rem; font-size: .8rem; }
.size-stock-item { white-space: nowrap; }
.size-stock-item.is-out { color: var(--color-text-muted); text-decoration: line-through; }

/* ===== Selector de idioma (encabezado) ===== */
.lang-picker { display: inline-flex; align-items: center; gap: .3rem; color: var(--color-primary); }
.lang-select {
  appearance: none; -webkit-appearance: none; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface);
  color: var(--color-text); font-size: .85rem; font-weight: 600; padding: .3rem .8rem; cursor: pointer;
}
.lang-select:hover { border-color: var(--color-primary); }
.lang-select:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* ===== Carrusel de profesores y agenda (home) ===== */
.ag-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1.5rem; align-items: stretch; }
@media (max-width: 991.98px) { .ag-layout { grid-template-columns: 1fr; } }
.ag-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); padding: 1rem; }
.ag-teacher { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; }
@media (max-width: 575.98px) { .ag-teacher { grid-template-columns: 1fr; } }
.ag-photo { position: relative; border-radius: var(--radius-sm, .8rem); overflow: hidden; background: var(--color-light); min-height: 320px; }
.ag-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ag-photo-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 5rem; color: var(--color-primary); background: linear-gradient(135deg, var(--color-mint), var(--color-light)); }
.ag-photo .tag { position: absolute; z-index: 2; top: 12px; left: 12px; }
.ag-nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--color-text); display: grid; place-items: center; cursor: pointer; }
.ag-nav:hover, .ag-nav:focus-visible { background: #fff; color: var(--color-primary-dark); }
.ag-prev { left: 10px; } .ag-next { right: 10px; }
.ag-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: .45rem; }
.ag-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.6); cursor: pointer; }
.ag-dot.is-active { background: #fff; transform: scale(1.25); }
.ag-teacher-info h3 { font-size: 1.5rem; margin: .4rem 0 .2rem; }
.ag-role { color: var(--color-primary); font-weight: 600; margin-bottom: .8rem; }
.ag-bio { color: var(--color-text-muted); line-height: 1.55; }
.ag-chips { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.ag-chips li { background: var(--color-light); color: var(--color-text); border-radius: 999px; padding: .2rem .7rem; font-size: .8rem; }
.ag-schedule-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: .8rem; }
.ag-schedule-head h3 { font-size: 1.35rem; margin: 0; display: flex; align-items: center; gap: .5rem; }
.ag-select { border: 1px solid var(--color-border); border-radius: .8rem; background: var(--color-surface); padding: .35rem .7rem; font-size: .9rem; }
.ag-schedule-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.2rem; }
@media (max-width: 575.98px) { .ag-schedule-body { grid-template-columns: 1fr; } }
.ag-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.ag-cal-nav { border: 0; background: none; padding: .3rem .5rem; border-radius: .6rem; color: var(--color-text); cursor: pointer; }
.ag-cal-nav:disabled { opacity: .3; cursor: default; }
.ag-cal { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: center; font-size: .9rem; }
.ag-cal th { color: var(--color-text-muted); font-weight: 500; font-size: .75rem; padding: .35rem 0; }
.ag-cal td { padding: 2px; }
.ag-day { position: relative; width: 100%; aspect-ratio: 1; max-width: 40px; border: 0; border-radius: 50%; background: none; color: var(--color-text); cursor: default; }
.ag-day:disabled { color: var(--color-text-muted); opacity: .75; }
.ag-day.has-sessions { font-weight: 700; cursor: pointer; }
.ag-day.has-sessions::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--color-primary); }
.ag-day.has-sessions:hover { background: var(--color-light); }
.ag-day.is-selected { background: var(--color-primary); color: #fff; }
.ag-day.is-selected::after { background: #fff; }
.ag-day.is-today:not(.is-selected) { outline: 1px solid var(--color-border); }
.ag-side h4 { font-size: 1rem; margin-bottom: .6rem; }
.ag-slots { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .5rem; max-height: 260px; overflow-y: auto; }
.ag-slot { width: 100%; display: flex; align-items: center; gap: .7rem; text-align: left; border: 1px solid var(--color-border); border-radius: .9rem; background: var(--color-surface); padding: .6rem .8rem; cursor: pointer; }
.ag-slot:hover { border-color: var(--color-primary); }
.ag-slot.is-selected { background: var(--color-mint); border-color: var(--color-primary); }
.ag-slot.is-full { opacity: .65; }
.ag-slot:disabled { cursor: default; }
.ag-slot-time { font-weight: 700; font-size: 1.05rem; min-width: 3.4rem; }
.ag-slot-meta { display: grid; flex: 1; min-width: 0; }
.ag-slot-title { font-weight: 600; overflow-wrap: anywhere; }
.ag-slot-meta small { color: var(--color-text-muted); }
.ag-badge { font-size: .72rem; font-weight: 700; color: var(--color-primary-dark); background: #fff; border-radius: 999px; padding: .15rem .55rem; white-space: nowrap; }
.ag-badge.is-full { color: var(--terracota); }
.ag-info { display: flex; align-items: center; gap: .7rem; background: var(--color-light); border-radius: .9rem; padding: .7rem .9rem; margin-bottom: .8rem; }
.ag-info .bi { font-size: 1.4rem; color: var(--color-primary); }
.ag-info small { display: block; color: var(--color-text-muted); }
.ag-empty { color: var(--color-text-muted); font-size: .92rem; margin: .5rem 0 1rem; }
.ag-tz { margin: 1rem 0 0; padding-top: .8rem; border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: .82rem; }

/* ===== Panel de profesores ===== */
.tp-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--color-light); display: grid; place-items: center; color: var(--color-primary); font-size: 2.4rem; flex: none; overflow: hidden; }
.tp-student-list { margin: .3rem 0 0; padding-left: 1.1rem; font-size: .88rem; color: var(--color-text-muted); }

/* Pagos con PayPal (Fases 17-22) */
.pp-box { max-width: 420px; margin-inline: auto; }
.pp-options { text-align: left; }
.pp-buttons { min-height: 46px; }
.cart-checkout .pp-buttons { margin-top: .6rem; }
.cart-checkout .list-unstyled li { border-bottom: 1px dashed var(--color-border); }

/* Mi cuenta: listas de progreso y compras (Fases 23-25) */
.acc-list { list-style: none; margin: 0; padding: 0; }
.acc-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px dashed rgba(0, 0, 0, .15); }
.acc-row:last-child { border-bottom: 0; }
.acc-row-main { min-width: 0; flex: 1; }
.acc-row-title { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.acc-sub { line-height: 1.3; }
.acc-progress { height: .45rem; }

/* Comentarios de la comunidad (Fases 26-27): el formulario es una tarjeta clara dentro de la sección oscura */
.testimonial-box { color: var(--color-text); height: auto; }
.testimonial-box .text-muted { color: var(--color-text-muted) !important; }
.testimonial-box textarea { resize: vertical; }
/* Pop up "Dejá tu comentario" (reusa el estilo de .yp-auth) */
.testimonial-modal .testimonial-box { color: var(--color-text); }
.testimonial-modal textarea { resize: vertical; min-height: 7.5rem; }
.testimonial-modal .form-select { border-radius: .8rem; padding: .7rem 1rem; border-color: var(--color-border); }
.testimonial-modal .form-select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 .2rem rgba(182, 203, 193, .7); }
.testimonial-modal .btn-brand { min-width: 11rem; }
.tm-blocked .yp-auth-ok { color: #b3261e; }
.tm-success { text-align: center; padding: 1.4rem 0 .6rem; animation: tm-pop .35s var(--ease, ease) both; }
@keyframes tm-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tm-success { animation: none; } }

/* Suscripción en 3 niveles */
.tier-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.tier-card { background: var(--color-surface, #fff); border: 1px solid var(--color-border); border-radius: var(--radius-sm, .8rem); padding: .9rem 1rem; text-align: left; }
.tier-name { font-size: 1rem; font-weight: 700; margin: 0 0 .15rem; }
.tier-price { font-weight: 600; margin: 0 0 .4rem; }
.tier-benefits { font-size: .85rem; color: var(--color-text-muted); white-space: pre-line; margin: 0 0 .6rem; }
.pp-options .tier-picker { text-align: left; }
.tier-lines { list-style: none; padding: 0; margin: 0 0 .7rem; font-size: .88rem; }
.tier-lines li { display: flex; gap: .45rem; align-items: baseline; margin-bottom: .3rem; }
.tier-lines .bi { color: var(--color-primary-dark, var(--color-primary)); flex: none; }
.tier-notice-inline { font-size: .85rem; background: #fff7e0; border: 1px solid #f0dfa8; border-radius: .7rem; padding: .55rem .8rem; margin: 0 0 .75rem; }

/* Suscripciones en la home */
.tiers-intro { color: var(--color-text-muted); margin: -1rem 0 1.25rem; }
.tier-notice { display: flex; gap: .8rem; align-items: flex-start; background: #fff7e0; border: 1px solid #f0dfa8; border-radius: var(--radius-sm, .8rem); padding: .85rem 1.1rem; margin-bottom: 1.5rem; }
.tier-notice > .bi { font-size: 1.4rem; line-height: 1.2; color: #003087; flex: none; }
.tier-notice strong { display: block; }
.tier-notice span { font-size: .92rem; color: var(--color-text-muted); }
.home-tiers { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); align-items: stretch; }
.tier-card-home { display: flex; flex-direction: column; padding: 1.5rem; box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, .06)); }
.tier-card-home .tier-name { font-size: 1.25rem; }
.tier-card-home .tier-price { font-size: 1.6rem; font-weight: 700; margin-bottom: 1rem; }
.tier-card-home .tier-lines { font-size: .95rem; flex: 1 1 auto; }
.tier-card-home .btn { margin-top: auto; }
.tiers-single { margin: 1.5rem 0 0; color: var(--color-text-muted); }

/* ===== Videos a la venta (videoteca): misma tarjeta que la tienda, con foto apaisada y marca de reproducción ===== */
.video-shop-card .shop-media { aspect-ratio: 16 / 10; }
.video-shop-card .shop-media img { width: 100%; height: 100%; object-fit: cover; }
.video-shop-card .video-play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: rgba(255, 253, 247, .9); color: var(--color-text); display: grid; place-items: center; font-size: 1.6rem; box-shadow: var(--shadow-soft); pointer-events: none; }
.video-shop-card .shop-flag { top: .6rem; right: .6rem; left: auto; }
.video-shop-card .video-seen { position: absolute; top: .6rem; left: .6rem; }

/* Envío: domicilio en el resumen del pago y detalle del pedido en "Mis compras" */
.cart-ship { border: 1px solid var(--bs-border-color, #e5e0d8); border-radius: .75rem; padding: .6rem .8rem; background: rgba(255, 255, 255, .5); }
.order-detail summary { cursor: pointer; color: var(--brand, #4a3f35); }
.shipping-modal .modal-body { max-height: 75vh; }
