/* =========================================================
   MATRA GIMNASIO FEMENINO DOCTA - PALETA MALVA OFICIAL #935491
   Diseño Móvil PWA, Fondo Blanco Marfil y Detalles Delicados
   ========================================================= */


:root {
  --bg-page: #fdf7f2;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  
  /* Color Oficial Matra: Malva / Orquídea Delicado */
  --brand-mauve: #935491;
  --brand-mauve-deep: #763e74;
  --brand-mauve-light: #a86da6;
  --brand-mauve-glow: rgba(147, 84, 145, 0.25);
  
  /* Tonos Pasteles Acompañantes */
  --pastel-mauve-soft: #fbf6fb;
  --pastel-mauve-pill: #f4edf3;
  --pastel-mauve-border: #e6d6e5;
  --pastel-cream: #fbf7f2;
  --pastel-sage: #f0f7f3;
  --pastel-sage-text: #2d6349;
  
  --text-main: #251d24;
  --text-secondary: #574e56;
  --text-muted: #6f6470;
  --text-light: #b5abb4;
  
  --border-light: rgba(0, 0, 0, 0.06);
  --border-mauve-light: rgba(147, 84, 145, 0.16);
  --border-mauve-medium: rgba(147, 84, 145, 0.28);
  
  --radius-sm: 0.75rem;
  --radius-md: 1.125rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  
  --shadow-subtle: 0 4px 18px -2px rgba(147, 84, 145, 0.05);
  --shadow-card: 0 10px 30px -5px rgba(147, 84, 145, 0.06);
  --shadow-card-hover: 0 16px 40px -8px rgba(147, 84, 145, 0.12);
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(244, 237, 243, 0.75) 0%, transparent 45%),
    radial-gradient(circle at 90% 40%, rgba(248, 242, 249, 0.6) 0%, transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(245, 238, 232, 0.5) 0%, transparent 45%);
  background-attachment: fixed;
  padding-bottom: 5.5rem;
}

@media (min-width: 640px) {
  body {
    padding-bottom: 0;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #faf8f5;
}
::-webkit-scrollbar-thumb {
  background: #d8c3d6;
  border-radius: 999px;
  border: 2px solid #faf8f5;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-mauve);
}

/* Typography styles */
.font-serif {
  font-family: var(--font-serif);
}

.font-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* Delicate Cards */
.card-delicate {
  background: var(--bg-surface);
  border: 1px solid var(--border-mauve-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-delicate:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-mauve-medium);
}

.card-hero-glow {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 45px -10px rgba(147, 84, 145, 0.12);
}

/* Botones en Malva Oficial */
.btn-delicate-primary {
  background: var(--brand-mauve);
  color: #ffffff;
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 9999px;
  padding: 0.75rem 1.625rem;
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
  box-shadow: 0 4px 16px rgba(147, 84, 145, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-delicate-primary:hover {
  background: var(--brand-mauve-deep);
  transform: translateY(-1.5px);
  box-shadow: 0 8px 24px rgba(147, 84, 145, 0.38);
}

.btn-delicate-secondary {
  background: #ffffff;
  color: var(--brand-mauve);
  font-weight: 500;
  font-size: 0.8125rem;
  border: 1px solid rgba(147, 84, 145, 0.22);
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.btn-delicate-secondary:hover {
  background: var(--pastel-mauve-soft);
  color: var(--brand-mauve-deep);
  border-color: var(--brand-mauve);
  transform: translateY(-1.5px);
}

.btn-delicate-outline {
  background: transparent;
  color: var(--brand-mauve);
  border: 1px solid rgba(147, 84, 145, 0.35);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-delicate-outline:hover {
  background: var(--pastel-mauve-pill);
  color: var(--brand-mauve-deep);
  border-color: var(--brand-mauve);
}

/* Badges */
.badge-pastel {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Turnero Slot Card */
.slot-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(147, 84, 145, 0.14);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(147, 84, 145, 0.03);
}

.slot-card:hover {
  border-color: rgba(147, 84, 145, 0.35);
  box-shadow: 0 12px 28px -4px rgba(147, 84, 145, 0.1);
  transform: translateY(-2px);
}

.slot-card.booked-by-me {
  border-color: #2d6349;
  background: #f4faf7;
}

.slot-card.full {
  opacity: 0.75;
  background: #fbfaf9;
}

/* Avatar Group (Chicas anotadas) */
.avatar-group {
  display: flex;
  align-items: center;
}

.avatar-bubble {
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  margin-left: -7px;
  border: 2px solid #ffffff;
  background: #f4edf3;
  color: var(--brand-mauve);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.avatar-bubble:first-child {
  margin-left: 0;
}

/* Video Card Thumbnail */
.video-card {
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(147, 84, 145, 0.14);
  box-shadow: 0 4px 20px rgba(147, 84, 145, 0.04);
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-3px);
  border-color: rgba(147, 84, 145, 0.4);
  box-shadow: 0 14px 35px -6px rgba(147, 84, 145, 0.14);
}

.video-card:hover .play-btn-circle {
  transform: scale(1.1);
  background: var(--brand-mauve);
  color: #ffffff;
}

.play-btn-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  color: var(--brand-mauve);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
  box-shadow: 0 6px 18px rgba(147, 84, 145, 0.2);
}

/* Hero Video Frame */
.hero-video-wrapper {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(147, 84, 145, 0.18);
  border: 4px solid #ffffff;
}

.hero-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile Bottom Navigation Bar (Estilo App Nativa) */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(147, 84, 145, 0.12);
  z-index: 80;
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}

.mobile-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: #6f6470;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.75rem;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.mobile-bottom-item.active,
.mobile-bottom-item:active,
.mobile-bottom-item:hover {
  color: var(--brand-mauve);
}

.mobile-bottom-item svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* PWA Install Banner */
.pwa-banner {
  background: linear-gradient(135deg, #f4edf3 0%, #fbf6fb 100%);
  border: 1px solid rgba(147, 84, 145, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 30, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #ffffff;
  border: 1px solid rgba(147, 84, 145, 0.18);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -15px rgba(60, 25, 60, 0.22);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-container {
  transform: scale(1) translateY(0);
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 84px;
  right: 20px;
  background: #1a9c4f;
  color: white;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  z-index: 85;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

@media (min-width: 640px) {
  .whatsapp-float {
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
  }
}

.whatsapp-float:hover {
  transform: scale(1.06);
  background: #168a44;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-main);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(147, 84, 145, 0.12);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 290px;
  max-width: 400px;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.toast.show {
  transform: translateX(0);
}

/* Interactive Workout Checklist */
.exercise-checkbox:checked + label {
  text-decoration: line-through;
  opacity: 0.5;
}

/* Modal Large Container for Admin & Profile */
.modal-container-lg {
  max-width: 840px !important;
}

/* Admin Tabs */
.admin-tab-btn {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: #574e56;
  background: transparent;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.admin-tab-btn.active {
  background: #ffffff;
  color: var(--brand-mauve);
  border-color: rgba(147, 84, 145, 0.2);
  box-shadow: 0 2px 8px rgba(147, 84, 145, 0.08);
}

/* Attendance Toggle Buttons */
.attendance-badge-present {
  background-color: #f0f7f3;
  color: #2d6349;
  border: 1px solid #d2e8dc;
}

.attendance-badge-absent {
  background-color: #fdf2f2;
  color: #c94957;
  border: 1px solid #f8d7da;
}

.attendance-badge-pending {
  background-color: #f4edf3;
  color: #763e74;
  border: 1px solid #e6d6e5;
}

/* =========================================================
   BARRA / ANILLO DE CUPOS SEMÁFORO (VERDE -> AMARILLO -> ROJO)
   ========================================================= */
.cupos-ring-green {
  border: 3.5px solid #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22), 0 4px 12px rgba(16, 185, 129, 0.18);
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.cupos-ring-yellow {
  border: 3.5px solid #f59e0b !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25), 0 4px 12px rgba(245, 158, 11, 0.18);
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.cupos-ring-red {
  border: 3.5px solid #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.35), 0 4px 14px rgba(239, 68, 68, 0.28);
  animation: pulse-ring-red 2s infinite ease-in-out;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

@keyframes pulse-ring-red {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.4), 0 4px 12px rgba(239, 68, 68, 0.25);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.15), 0 6px 18px rgba(239, 68, 68, 0.4);
  }
}

/* Barra de progreso de cupos */
.cupos-bar-green {
  background: linear-gradient(90deg, #10b981, #34d399);
}
.cupos-bar-yellow {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.cupos-bar-red {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

/* =========================================================
   CURSOS & TALLERES ONLINE (LOCKED / UNLOCKED)
   ========================================================= */
.course-card {
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
  border: 1px solid rgba(147, 84, 145, 0.16);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(147, 84, 145, 0.15);
  border-color: rgba(147, 84, 145, 0.35);
}

.course-lock-badge {
  background: rgba(37, 29, 36, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.course-unlocked-badge {
  background: #10b981;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* PWA Floating Install Pill */
.pwa-floating-btn {
  position: fixed;
  bottom: 84px;
  left: 20px;
  background: #ffffff;
  color: var(--brand-mauve);
  border: 1.5px solid var(--brand-mauve);
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 20px rgba(147, 84, 145, 0.18);
  z-index: 80;
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

@media (min-width: 640px) {
  .pwa-floating-btn {
    bottom: 24px;
    left: 24px;
    padding: 10px 18px;
    font-size: 12px;
  }
}

.pwa-floating-btn:hover {
  background: var(--brand-mauve);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(147, 84, 145, 0.3);
}



/* Botones del panel de la profesora: visibles solo para cuentas admin */
body:not(.is-admin) .admin-only { display: none !important; }


/* =========================================================
   REDISEÑO "SIMPLE & AESTHETIC" — capa final de ajustes
   Más aire, bordes más suaves, menos ruido visual.
   ========================================================= */
:root {
  --bg-page: #fdf7f2;
  --radius-lg: 1.75rem;
  --shadow-card: 0 8px 30px -12px rgba(118, 62, 116, 0.14);
  --shadow-card-hover: 0 18px 40px -14px rgba(118, 62, 116, 0.22);
  --border-mauve-light: rgba(147, 84, 145, 0.10);
  --border-mauve-medium: rgba(147, 84, 145, 0.22);
}

body {
  background-image:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(244, 237, 243, 0.9) 0%, transparent 70%),
    radial-gradient(ellipse 50% 35% at 100% 55%, rgba(246, 239, 244, 0.8) 0%, transparent 70%);
  letter-spacing: 0.005em;
}

/* Encabezado liviano */
header.sticky {
  background: rgba(252, 250, 248, 0.82) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(147, 84, 145, 0.10) !important;
}
.nav-link {
  position: relative;
  padding: 0.25rem 0;
  color: #5b4f5a;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--brand-mauve);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover { color: var(--brand-mauve); }
.nav-link:hover::after { transform: scaleX(1); }

/* Secciones con más respiro */
main > section { padding-top: 4.5rem; padding-bottom: 4.5rem; scroll-margin-top: 4.5rem; }
main > section#inicio { padding-top: 2.5rem; }
@media (min-width: 768px) {
  main > section { padding-top: 6rem; padding-bottom: 6rem; }
  main > section#inicio { padding-top: 4rem; }
}
main > section h2.font-serif { letter-spacing: -0.01em; line-height: 1.1; }
main > section[class*="bg-[#fbf6fb]"] {
  background: linear-gradient(180deg, #fbf6fb 0%, #fcf9fb 100%) !important;
  border-top-color: transparent !important;
  border-bottom-color: transparent !important;
}

/* Tarjetas y botones más suaves */
.card-delicate, .slot-card, .course-card {
  border-color: var(--border-mauve-light) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-card);
}
.slot-card:hover, .course-card:hover { box-shadow: var(--shadow-card-hover); }

.btn-delicate-primary {
  background: linear-gradient(135deg, #a05f9e 0%, #935491 55%, #7f4580 100%);
  box-shadow: 0 8px 20px -8px rgba(147, 84, 145, 0.55);
  letter-spacing: 0.02em;
}
.btn-delicate-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(147, 84, 145, 0.6); }
.btn-delicate-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-delicate-secondary {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(147, 84, 145, 0.22);
  color: var(--brand-mauve-deep);
  border-radius: 9999px;
}
.btn-delicate-secondary:hover { background: #fff; border-color: var(--brand-mauve); }

/* Portada: video con esquinas amplias y sombra suave */
.hero-video-wrapper {
  border-radius: 2.5rem !important;
  box-shadow: 0 30px 60px -25px rgba(118, 62, 116, 0.35);
}

/* Botón flotante de instalación más discreto en celular */
.pwa-floating-btn { opacity: 0.92; font-size: 0.7rem; padding: 0.45rem 0.8rem; }

/* Foco accesible y visible */
:focus-visible { outline: 2px solid var(--brand-mauve); outline-offset: 2px; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  * { transition-duration: 120ms !important; transition-property: color, background-color, border-color, opacity, box-shadow !important; }
}

/* =========================================================
   REFINAMIENTO PROFESIONAL
   Legibilidad, jerarquía tipográfica, pie de página y detalles.
   ========================================================= */

/* Textos un poco más grandes: antes casi todo era de 10-12px. */
html body .text-xs { font-size: 0.8125rem; line-height: 1.5; }
html body .text-\[11px\] { font-size: 0.75rem; }
html body .text-\[10px\] { font-size: 0.6875rem; }
html body .text-\[9px\] { font-size: 0.625rem; }

/* Títulos de sección: misma jerarquía en toda la página */
main > section h2.font-serif {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 500;
  color: #2a2029;
}
main > section h2.font-serif + p,
main > section h2.font-serif ~ p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #6b606a;
}
main > section .uppercase.tracking-wider {
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Portada */
#inicio h1 { font-size: clamp(2.6rem, 5.6vw, 4.5rem); letter-spacing: -0.02em; }
#inicio p { font-size: 1.05rem; line-height: 1.75; color: #5f545e; }

/* Fondo alternado muy suave entre secciones para ordenar la lectura */
#disciplinas, #rutinas-section, #cursos-section { background: rgba(251, 246, 251, 0.6); }
#planes, #videoteca { background: transparent; }

/* Navegación */
header.sticky { box-shadow: 0 1px 0 rgba(147, 84, 145, 0.06); }
header .nav-link { font-size: 0.8125rem; letter-spacing: 0.01em; }

/* Botón flotante de instalar: solo en celular */
@media (min-width: 640px) { .pwa-floating-btn { display: none !important; } }

/* Pie de página */
.site-footer {
  background: #fff;
  border-top: 1px solid rgba(147, 84, 145, 0.12);
  padding: 4rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-title {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-mauve);
  margin-bottom: 1rem;
}
.footer-list { list-style: none; display: grid; gap: 0.7rem; font-size: 0.9rem; color: #6b606a; line-height: 1.5; }
.footer-list a { color: #4d424c; transition: color 0.2s ease; }
.footer-list a:hover { color: var(--brand-mauve); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(147, 84, 145, 0.10);
  font-size: 0.78rem; color: #9a8f99;
}

/* Mapa y tarjetas de contacto */
#ubicacion iframe { filter: saturate(0.85) contrast(0.98); }

/* Pantallas chicas: menos relleno vertical */
@media (max-width: 640px) {
  main > section { padding-top: 3.25rem; padding-bottom: 3.25rem; }
  #inicio p { font-size: 1rem; }
}

/* El acceso a instalar la app queda en el menú; el botón flotante tapaba el contenido */
.pwa-floating-btn { display: none !important; }

