/* ============================================================
   BCN SURF SCHOOL — styles.css maestro v3.0
   Un único archivo para toda la app.
   Incluye: variables, reset, tipografía, layout base,
   loader, toasts, botones, modales, formularios,
   calendario, dashboard, clases, navegación.
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Variables corporativas ───────────────────────────────── */
:root {
  /* Colores principales */
  --azul-oscuro:   #0f3863;
  --azul-medio:    #419197;
  --verde-agua:    #78D6C6;
  --blanco:        #ffffff;
  --fondo-app:     #0a0f1e;

  /* Colores por tipo de clase */
  --color-surf:             #419197;
  --color-surfskate:        #D2A679;
  --color-sup:              #F7C948;
  --color-entreno:          #FF8C00;
  --color-entrenofuncional: #FF8C00;
  --color-natacion:         #1E90FF;

  /* Superficies glass */
  --glass-1:  rgba(255,255,255,0.05);
  --glass-2:  rgba(255,255,255,0.08);
  --glass-3:  rgba(255,255,255,0.12);
  --border-1: rgba(255,255,255,0.08);
  --border-2: rgba(255,255,255,0.13);
  --border-3: rgba(255,255,255,0.20);

  /* Texto */
  --text-primary:   rgba(255,255,255,0.95);
  --text-secondary: rgba(255,255,255,0.55);
  --text-tertiary:  rgba(255,255,255,0.30);

  /* Radios */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-xxl:  24px;
  --r-pill: 999px;

  /* Transiciones */
  --t-fast:   0.15s ease;
  --t-normal: 0.25s ease;

  /* Gradientes */
  --gradient-cta:  linear-gradient(135deg, var(--verde-agua), var(--azul-medio));
  --gradient-icon: linear-gradient(45deg, #ffffff, #78D6C6, var(--azul-oscuro));

  /* Layout */
  --vh: 1vh;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: url('surfer.jpg') no-repeat center center fixed;
  background-size: cover;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
}

/* Overlay oscuro base sobre la foto */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,18,40,0.80) 0%,
    rgba(15,56,99,0.70) 50%,
    rgba(65,145,151,0.60) 100%
  );
  z-index: 0;
  pointer-events: none;
}

body > * { position: relative; z-index: 1; }

/* ── Tipografía ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

a {
  color: var(--verde-agua);
  text-decoration: none;
  transition: opacity var(--t-fast);
}
a:hover { opacity: 0.8; }

input, select, textarea, button {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
}

/* ── Loader / Wave Spinner ────────────────────────────────── */
#loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,15,30,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
}

.wave-spinner {
  display: flex;
  gap: 5px;
  align-items: center;
}

.wave-bar {
  width: 4px;
  height: 28px;
  border-radius: var(--r-pill);
  background: linear-gradient(to bottom, var(--verde-agua), var(--azul-medio));
  background-size: 100% 200%;
  animation: wave 1.4s infinite ease-in-out, waveColor 2.8s infinite;
}

.wave-bar:nth-child(1) { animation-delay: -0.8s; }
.wave-bar:nth-child(2) { animation-delay: -0.6s; }
.wave-bar:nth-child(3) { animation-delay: -0.4s; }
.wave-bar:nth-child(4) { animation-delay: -0.2s; }
.wave-bar:nth-child(5) { animation-delay: 0s; }

@keyframes wave {
  0%, 40%, 100% { transform: scaleY(0.35); }
  20%            { transform: scaleY(1); }
}

@keyframes waveColor {
  0%, 100% { background-position: top; }
  50%       { background-position: bottom; }
}

/* ── Toast notifications ──────────────────────────────────── */
#toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  width: 90%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 13px 16px;
  border-radius: var(--r-lg);
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--t-normal), transform var(--t-normal);
  text-align: center;
  pointer-events: auto;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success, .toast[class*="success"] {
  background: rgba(120,214,198,0.12);
  border: 1px solid rgba(120,214,198,0.25);
  color: #78D6C6;
}

.toast.error, .toast[class*="error"] {
  background: rgba(255,80,80,0.1);
  border: 1px solid rgba(255,80,80,0.2);
  color: #ff7070;
}

.toast.warning, .toast[class*="warning"] {
  background: rgba(255,200,0,0.1);
  border: 1px solid rgba(255,200,0,0.2);
  color: #ffc800;
}

.toast.info, .toast:not(.success):not(.error):not(.warning) {
  background: rgba(10,20,45,0.92);
  border: 1px solid rgba(120,214,198,0.2);
  color: var(--verde-agua);
}

/* ── Botones ──────────────────────────────────────────────── */
/* Botón primario CTA */
.btn-principal,
#inscribirseClase,
#confirmar-inscripcion,
.btn-cta {
  width: 100%;
  padding: 15px;
  border-radius: var(--r-lg);
  border: none;
  background: var(--gradient-cta);
  color: var(--azul-oscuro);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--t-normal), box-shadow var(--t-normal);
  letter-spacing: 0.01em;
}

.btn-principal:hover,
#inscribirseClase:hover,
#confirmar-inscripcion:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(120,214,198,0.35);
}

.btn-principal:active { transform: scale(0.98); }

/* Botón flotante Dashboard */
#btnDashboard {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: var(--r-xl);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2000;
  transition: all var(--t-normal);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: bubbleFadeIn 0.5s ease both;
}

#btnDashboard:hover {
  background: rgba(120,214,198,0.2);
  border-color: rgba(120,214,198,0.4);
  transform: scale(1.06);
}

#btnDashboard i {
  font-size: 1.4em;
  background: var(--gradient-icon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes bubbleFadeIn {
  from { opacity: 0; transform: scale(0.6) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Botón cerrar modal */
.btn-cerrar-modal,
#btnCerrarModal {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: var(--glass-2);
  border: 1px solid var(--border-1);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
  padding: 0;
  line-height: 1;
}

.btn-cerrar-modal:hover,
#btnCerrarModal:hover {
  background: var(--glass-3);
  color: var(--text-primary);
  transform: rotate(90deg);
}

/* Botones del dashboard panel */
.btn-dashboard {
  background: var(--glass-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all var(--t-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.btn-dashboard:hover {
  background: var(--glass-3);
  border-color: var(--border-2);
  transform: translateY(-2px);
}

.btn-dashboard:active { transform: scale(0.97); }

.btn-dashboard i { font-size: 1.4em; }

.btn-dashboard p {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0;
  letter-spacing: 0.02em;
}

.dashboard-botones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

/* ── Inputs y formularios ─────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-2);
  background: var(--glass-2);
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: border-color var(--t-normal), background var(--t-normal);
  -webkit-appearance: none;
}

input::placeholder, textarea::placeholder {
  color: var(--text-tertiary);
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(120,214,198,0.5);
  background: rgba(120,214,198,0.06);
  box-shadow: 0 0 0 3px rgba(120,214,198,0.08);
}

select option {
  background: var(--azul-oscuro);
  color: var(--text-primary);
}

/* Evitar zoom en iOS */
input, select, textarea { font-size: 16px; }

/* Toggle switch */
.toggle-switch {
  width: 46px;
  height: 26px;
  border-radius: var(--r-pill);
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  position: relative;
  transition: background var(--t-normal);
  border: 1px solid var(--border-2);
  flex-shrink: 0;
}

.toggle-switch::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blanco);
  transition: transform var(--t-normal);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.toggle-switch:checked {
  background: var(--gradient-cta);
  border-color: transparent;
}

.toggle-switch:checked::before { transform: translateX(20px); }

/* Switch alternativo (slider) */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
  flex-shrink: 0;
}

.switch-toggle input { opacity: 0; width: 0; height: 0; }

.slider.round {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,0.15);
  border-radius: var(--r-pill);
  transition: background var(--t-normal);
  border: 1px solid var(--border-2);
}

.slider.round::before {
  content: '';
  position: absolute;
  height: 12px;
  width: 12px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--t-normal);
}

input:checked + .slider.round {
  background: var(--gradient-cta);
  border-color: transparent;
}

input:checked + .slider.round::before { transform: translateX(16px); }

/* ── Navegación / Header ──────────────────────────────────── */
.header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 500px;
  background: rgba(15,56,99,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r-pill);
  padding: 5px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border: 1px solid var(--border-2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.tab {
  flex: 1;
  text-align: center;
  cursor: pointer;
  padding: 9px 10px;
  border-radius: var(--r-pill);
  transition: all var(--t-normal);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.tab:hover { color: var(--text-primary); background: var(--glass-1); }

.tab.active {
  background: var(--blanco);
  color: var(--azul-oscuro);
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

/* ── Contenedor principal ─────────────────────────────────── */
.main-container {
  position: absolute;
  top: 68px;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 600px;
  background: rgba(10,18,40,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r-xxl);
  padding: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-1);
}

.content-section {
  flex: 1;
  overflow-y: auto;
  padding: 8px 2px;
  scrollbar-width: none;
}
.content-section::-webkit-scrollbar { display: none; }

.contenido-activo  { display: block; }
.contenido-oculto  { display: none !important; }

/* ── Modales ──────────────────────────────────────────────── */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,18,40,0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#modal-overlay.activo { display: flex; }

#detallesClase,
.modal-contenido {
  background: rgba(12,26,60,0.96);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xxl);
  padding: 22px;
  max-width: 480px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  scrollbar-width: none;
  position: relative;
}

#detallesClase::-webkit-scrollbar,
.modal-contenido::-webkit-scrollbar { display: none; }

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(18px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

#modal-editar-clase {
  position: fixed;
  inset: 0;
  background: rgba(10,18,40,0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

#modal-editar-clase.activo { display: flex; }

.modal-contenido.grande {
  max-width: 520px;
  max-height: 90vh;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-1);
}

/* ── Cards de clases ──────────────────────────────────────── */
.clase-card-min,
.clase-card {
  background: var(--glass-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 12px 14px;
  margin: 6px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--t-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.3s ease both;
}

.clase-card-min::before,
.clase-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 0;
}

.clase-card-min:hover,
.clase-card:hover {
  background: var(--glass-3);
  transform: translateX(3px);
  border-color: var(--border-2);
}

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

/* ── Listado alumnos ──────────────────────────────────────── */
.alumno-asistencia {
  display: flex;
  align-items: center;
  padding: 10px 2px;
  border-bottom: 1px solid var(--border-1);
  cursor: pointer;
  transition: all var(--t-fast);
  border-radius: var(--r-sm);
}

.alumno-asistencia:last-child { border-bottom: none; }

.alumno-asistencia:hover {
  background: var(--glass-1);
  padding-left: 6px;
}

.foto-alumno {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border-2);
  transition: border-color var(--t-fast);
}

.foto-alumno img { width: 100%; height: 100%; object-fit: cover; }
.foto-alumno.borde-rojo { border-color: rgba(255,80,80,0.6); }

.info-alumno { flex: 1; margin-left: 12px; }

.nombre-alumno {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.badge-personas {
  background: rgba(120,214,198,0.15);
  color: var(--verde-agua);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
}

.precio-pendiente {
  color: #ff6060;
  font-weight: 600;
  font-size: 13px;
}

.inscripcion-cancelada {
  opacity: 0.35;
  pointer-events: none;
  transform: scale(0.96);
  transition: all var(--t-normal);
}

/* ── Perfil / Dashboard alumno ────────────────────────────── */
.dashboard-container {
  width: 88%;
  max-width: 440px;
  margin: 0 auto;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.profile-pic {
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 3px solid rgba(120,214,198,0.35);
  object-fit: cover;
  cursor: pointer;
  transition: all var(--t-normal);
  box-shadow: 0 0 0 5px rgba(120,214,198,0.08);
}

.profile-pic:hover {
  border-color: var(--verde-agua);
  box-shadow: 0 0 0 8px rgba(120,214,198,0.12), 0 8px 32px rgba(120,214,198,0.25);
}

.logout-button {
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 6px;
}

.logout-button i {
  font-size: 1.5em;
  color: var(--text-secondary);
  transition: all var(--t-fast);
}

.logout-button:hover i {
  color: #ff8080;
  transform: scale(1.1);
}

/* Grid de acciones */
.actions-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.action-item {
  background: var(--glass-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--t-normal);
}

.action-item:hover {
  background: var(--glass-3);
  border-color: rgba(120,214,198,0.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.action-item i {
  font-size: 2em;
  background: var(--gradient-icon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform var(--t-normal);
}

.action-item:hover i { transform: scale(1.12) rotate(4deg); }

.action-item p {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  color: var(--text-secondary);
}

.action-item:hover p { color: var(--text-primary); }

/* ── Menú flotante ────────────────────────────────────────── */
.floating-menu {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 1100;
  cursor: grab;
}

.menu-contenedor {
  background: rgba(15,56,99,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.bubble-menu {
  background: var(--gradient-cta);
  border-radius: 50%;
  border: none;
  width: 52px; height: 52px;
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(120,214,198,0.3);
  transition: all var(--t-normal);
  color: var(--azul-oscuro);
}

.bubble-menu:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(120,214,198,0.4);
}

.menu-opciones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.menu-opciones a {
  background: rgba(255,255,255,0.95);
  color: var(--azul-oscuro);
  border-radius: var(--r-pill);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  transition: all var(--t-normal);
  white-space: nowrap;
}

.menu-opciones a:hover {
  background: var(--verde-agua);
  color: var(--azul-oscuro);
  transform: translateX(-3px);
}

.oculto { display: none !important; }

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

.menu-opciones.mostrar {
  animation: aparecerMenu 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ── Navegación footer alumno ─────────────────────────────── */
footer.actions-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15,56,99,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-2);
  padding: 10px 20px max(env(safe-area-inset-bottom, 10px), 10px);
  display: flex;
  justify-content: space-around;
  z-index: 1000;
}

footer.actions-menu .action-item {
  background: none;
  border: none;
  border-radius: var(--r-md);
  padding: 8px 12px;
  transform: none;
  box-shadow: none;
  gap: 4px;
}

footer.actions-menu .action-item:hover {
  background: var(--glass-1);
  transform: translateY(-1px);
}

footer.actions-menu .action-item i {
  font-size: 1.4em;
}

footer.actions-menu .action-item p {
  font-size: 10px;
  letter-spacing: 0.04em;
}

/* ── Banderas idioma ──────────────────────────────────────── */
.flag {
  width: 26px; height: 18px;
  border-radius: 4px;
  opacity: 0.55;
  cursor: pointer;
  transition: transform 0.25s, opacity 0.25s;
  border: 1.5px solid transparent;
}

.flag:hover { transform: scale(1.15); opacity: 0.85; }

#language-selector a.active .flag {
  opacity: 1;
  border-color: var(--verde-agua);
  box-shadow: 0 0 8px rgba(120,214,198,0.4);
}

/* ── Calendario FullCalendar ──────────────────────────────── */
#calendar {
  background: rgba(255,255,255,0.97);
  border-radius: var(--r-xl);
  padding: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}

.fc-event {
  border: none !important;
  font-size: 11px !important;
  border-radius: var(--r-sm) !important;
}

.fc .fc-button {
  background: var(--azul-oscuro) !important;
  border-color: transparent !important;
  border-radius: var(--r-md) !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.fc .fc-toolbar-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px !important;
  font-weight: 700;
  color: var(--azul-oscuro);
  letter-spacing: -0.02em;
}

.fc-col-header-cell-cushion {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--azul-oscuro);
  font-weight: 600;
  font-size: 12px;
}

.fc-daygrid-day-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #bbb;
  font-weight: 400;
  font-size: 9px!important;
  text-decoration: none;
}

.fc-dayGridMonth-view .fc-event:not(.fc-bg-event) { display: none !important; }
.fc-timeGridDay-view .fc-bg-event { display: none !important; }

/* ── Estrellas evaluación ─────────────────────────────────── */
.star {
  font-size: 22px;
  cursor: pointer;
  color: rgba(255,255,255,0.2);
  transition: color var(--t-fast), transform var(--t-fast);
}

.star:hover, .star.selected { color: #F7C948; }
.star:hover { transform: scale(1.2); }

/* ── Utilidades ───────────────────────────────────────────── */
.hidden         { display: none !important; }
.visible        { opacity: 1 !important; }
.mensaje-verde  { color: var(--verde-agua) !important; font-weight: 500; }
.mensaje-rojo   { color: #ff6060 !important; font-weight: 500; }

hr {
  border: none;
  border-top: 1px solid var(--border-1);
  margin: 14px 0;
}

.footer-logo {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.35;
  transition: opacity var(--t-normal);
}

.footer-logo:hover { opacity: 0.6; }
.small-logo { width: 60px; }

/* iOS safe areas */
#instalacion-ios img {
  width: 22px;
  vertical-align: middle;
  margin-left: 8px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 400px) {
  .actions-menu { gap: 8px; }
  .dashboard-botones { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 600px) {
  .actions-menu { grid-template-columns: repeat(4, 1fr); }
}

/* ── Campana de notificaciones ────────────────────────────── */
.campanita-flotante {
  position: fixed;
  top: max(env(safe-area-inset-top, 16px), 16px);
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1100;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.campanita-flotante:hover {
  background: rgba(255,255,255,0.14);
  transform: scale(1.05);
}

.icono-campana {
  width: 20px;
  height: 20px;
  color: rgba(255,255,255,0.75);
  stroke: rgba(255,255,255,0.75);
}

.noti-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #78D6C6;
  border: 1.5px solid #0a0f1e;
}

@keyframes pulso {
  0%, 100% { box-shadow: 0 0 0 0 rgba(120,214,198,0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(120,214,198,0); }
}

.campanita-flotante.pulso {
  animation: pulso 1.5s ease-in-out infinite;
  border-color: rgba(120,214,198,0.4);
}

/* ── Modal notificaciones ─────────────────────────────────── */
.modal-notificaciones {
  position: fixed;
  inset: 0;
  background: rgba(10,15,30,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  transition: opacity 0.3s;
}

.modal-notificaciones.hidden {
  display: none;
}

.modal-notificaciones .modal-contenido {
  background: rgba(12,26,60,0.97);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px 24px 20px 20px;
  padding: 24px 20px 32px;
  width: 100%;
  max-width: 480px;
  max-height: 75vh;
  overflow-y: auto;
  scrollbar-width: none;
  position: relative;
  animation: modalIn 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}

.modal-notificaciones .modal-contenido::-webkit-scrollbar { display: none; }

.titulo-modal {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.lista-notis {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.noti-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.noti-titulo {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 3px;
}

.noti-subtitulo {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin: 0;
  line-height: 1.4;
}

/* ─── Swipe estilo iOS ─────────────────────────────────────── */
/* Fondo rojo que queda debajo al deslizar */
.noti-item .swipe-bg {
  position: absolute;
  inset: 0;
  background: #e0354b;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 14px;
  z-index: 0;
}

/* Capa de contenido que se desliza (lleva el padding, sin márgenes negativos) */
.noti-item .swipe-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  background: #0c1a3c;
  border-radius: 14px;
  padding: 12px 14px;
  transition: transform 0.25s ease;
  touch-action: pan-y;
}

.noti-item.swiped .swipe-content { transform: translateX(-80px); }

@keyframes fade-out {
  to { opacity: 0; transform: translateX(-100%); }
}
.noti-item.fade-out { animation: fade-out 0.3s ease forwards; }

/* ─── Cabecera con botón "Borrar todas" ────────────────────── */
.noti-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.noti-header .titulo-modal { margin: 0; }

.btn-borrar-todas {
  background: rgba(224,53,75,0.12);
  border: 1px solid rgba(224,53,75,0.3);
  color: #ff6b7d;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background 0.2s;
}
.btn-borrar-todas:hover { background: rgba(224,53,75,0.2); }
.btn-borrar-todas:disabled { opacity: 0.35; cursor: default; }

.btn-cerrar {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.btn-cerrar:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}