/* --------------------------------------------------
RESET BÁSICO
-------------------------------------------------- */

*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}

html, body {
height: 100%;
}

/* --------------------------------------------------
TIPOGRAFÍA Y FONDO GENERAL
-------------------------------------------------- */

body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background: #f4f3ef; /* gris cálido */
color: #37352f; /* marrón/gris suave */
line-height: 1.5;
}

/* Links generales */

a {
color: inherit;
text-decoration: none;
}

a:hover {
text-decoration: none;
}

/* Texto tenue / muted */

.muted {
color: #8b8574;
font-size: 0.9rem;
}

/* --------------------------------------------------
CONTENEDOR GENERAL (para páginas centradas)
-------------------------------------------------- */

main,
.dashboard {
max-width: 1080px;
margin: 24px auto 40px;
padding: 0 20px 40px;
}

/* --------------------------------------------------
HEADER / MENÚ SUPERIOR
-------------------------------------------------- */

header,
.site-header {
background: #ffffff;
border-bottom: 1px solid rgba(0, 0, 0, 0.03);
box-shadow: 0 6px 18px rgba(63, 74, 47, 0.12); /* sombra olivo */
padding: 14px 40px;
display: flex;
align-items: center;
justify-content: space-between;
position: sticky;
top: 0;
z-index: 100;
}

/* Marca Be Studio */
header .logo,
.site-header .logo,
header > a:first-child,
header > span:first-child {
font-size: 20px;
font-weight: 700;
letter-spacing: 0.18em;
text-transform: uppercase;
color: #3f4a2f; /* verde olivo oscuro */
}

/* Navegación */
header nav,
.site-nav {
display: flex;
gap: 20px;
align-items: center;
flex-wrap: wrap;
}

header nav a,
.site-nav a,
header a {
font-size: 14px;
color: #7b8074; /* gris/marrón */
position: relative;
padding-bottom: 2px;
transition: color 0.2s ease, transform 0.15s ease;
}

header nav a:hover,
.site-nav a:hover {
color: #3f4a2f;
transform: translateY(-1px);
}

header nav a::after,
.site-nav a::after {
content: "";
position: absolute;
left: 0;
bottom: -2px;
width: 0;
height: 2px;
background: #3f4a2f; /* subrayado olivo */
border-radius: 999px;
transition: width 0.2s ease;
}

header nav a:hover::after,
.site-nav a:hover::after {
width: 100%;
}

/* --------------------------------------------------
CABECERA DEL DASHBOARD
-------------------------------------------------- */

.dashboard-header {
margin-bottom: 24px;
}

.dashboard-title {
font-size: 28px;
font-weight: 700;
margin-bottom: 4px;
color: #3f4a2f;
}

.dashboard-subtitle {
color: #8b8574;
font-size: 14px;
}

/* --------------------------------------------------
SECCIONES DEL DASHBOARD (tarjetas grandes)
-------------------------------------------------- */

.panel-section {
background: linear-gradient(135deg, #ffffff, #f0eee7); /* blanco + beige */
border-radius: 20px;
padding: 24px 26px 26px;
margin-bottom: 24px;
box-shadow: 0 14px 30px rgba(63, 74, 47, 0.10);
}

.panel-title {
font-size: 18px;
letter-spacing: 0.16em;
text-transform: uppercase;
color: #3f4a2f; /* títulos olivo */
margin-bottom: 6px;
}

.panel-description {
font-size: 14px;
color: #8b8574; /* gris/marrón suave */
margin-bottom: 18px;
}

/* Tarjetas internas (paquetes, membresía, etc.) */

.panel-card {
background: #ffffff;
border-radius: 14px;
padding: 14px 16px 16px;
margin-bottom: 14px;
box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}

.card-title {
font-size: 15px;
font-weight: 700;
letter-spacing: 0.14em;
text-transform: uppercase;
margin-bottom: 4px;
color: #3f4a2f;
}

/* --------------------------------------------------
BOTONES (estilo Be Studio)
-------------------------------------------------- */

.btn-primary,
.btn-secondary,
.btn-pill,
.btn-pill-outline,
.btn-primary.btn-small {
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 999px;
border: none;
cursor: pointer;
font-size: 13px;
letter-spacing: 0.12em;
text-transform: uppercase;
padding: 10px 26px;
text-decoration: none;
transition:
transform 0.15s ease,
box-shadow 0.2s ease,
background 0.2s ease,
color 0.2s ease;
}

/* Principal verde olivo */
.btn-primary,
.btn-primary.btn-small {
background: #3f4a2f;
color: #ffffff;
box-shadow: 0 8px 18px rgba(63, 74, 47, 0.35);
}

.btn-primary.btn-small {
font-size: 12px;
padding: 8px 18px;
}

.btn-primary:hover,
.btn-primary.btn-small:hover {
transform: translateY(-1px);
box-shadow: 0 12px 24px rgba(63, 74, 47, 0.45);
}

/* Secundario */
.btn-secondary {
background: #ffffff;
color: #3f4a2f;
border: 1px solid rgba(63, 74, 47, 0.28);
}

.btn-secondary:hover {
background: #f3f1eb;
}

/* Botones tipo pastilla (membresías) */
.btn-pill {
background: #3f4a2f;
color: #ffffff;
padding-inline: 24px;
font-size: 12px;
}

.btn-pill-outline {
background: transparent;
color: #3f4a2f;
border: 1px solid rgba(63, 74, 47, 0.35);
}

.btn-pill:hover {
transform: translateY(-1px);
}

.btn-pill-outline:hover {
background: #3f4a2f;
color: #ffffff;
}

/* --------------------------------------------------
PASTILLAS DE DISCIPLINAS (colores por clase)
-------------------------------------------------- */

.discipline-pills {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 18px;
}

.pill {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 8px 18px;
border-radius: 999px;
font-size: 12px;
letter-spacing: 0.16em;
text-transform: uppercase;
font-weight: 600;
border: 1px solid rgba(148, 163, 184, 0.35);
background: #f9fafb;
color: #111827 !important;
box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* --------------------------------------------------
CALENDARIO DE CLASES (manteniendo el diseño actual)
-------------------------------------------------- */

.calendar-wrapper {
overflow-x: auto;
margin-top: 4px;
}

/* Grid: columna de hora + 6 días (Lun–Sáb) */
.calendar-grid {
display: grid;
grid-template-columns: 80px repeat(6, minmax(130px, 1fr));
grid-auto-rows: minmax(72px, auto);
border-radius: 18px;
background: #f3f1eb; /* beige claro */
box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}

/* Cabeceras */
.calendar-header-cell {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.16em;
color: #7f7a6e;
padding: 10px 12px;
border-bottom: 1px solid rgba(0,0,0,0.05);
border-right: 1px solid rgba(0,0,0,0.03);
background: rgba(255,255,255,0.75);
}

.calendar-hour-col {
border-top-left-radius: 18px;
}

/* Columna de la hora (izquierda) */
.calendar-hour-cell {
font-size: 11px;
color: #a39b8d;
padding: 10px 8px;
border-right: 1px solid rgba(0,0,0,0.03);
border-bottom: 1px solid rgba(0,0,0,0.02);
}

/* Cada celda de día/hora */
.calendar-cell {
border-right: 1px solid rgba(0,0,0,0.02);
border-bottom: 1px solid rgba(0,0,0,0.02);
padding: 6px 6px;
position: relative;
}

/* Tarjeta de clase (base) */
.calendar-class-card {
border-radius: 14px;
padding: 6px 9px 8px;
display: flex;
flex-direction: column;
justify-content: space-between;
box-shadow: 0 10px 22px rgba(0,0,0,0.18);
color: #1e2438;
}

/* Texto interno de la tarjeta */
.class-discipline {
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.14em;
font-weight: 600;
margin-bottom: 2px;
}

.class-title {
font-size: 13px;
font-weight: 700;
margin-bottom: 3px;
}

.class-meta {
font-size: 10px;
color: #1e2438;
display: flex;
flex-direction: column;
gap: 1px;
margin-bottom: 4px;
}

/* Aseguramos que el botón se quede adentro y no expanda otras filas */
.calendar-class-card .btn-primary.btn-small {
align-self: flex-start;
}

/* --------------------------------------------------
TABLA DE RESERVAS
-------------------------------------------------- */

.table-reservas {
width: 100%;
border-collapse: collapse;
margin-top: 8px;
font-size: 14px;
}

.table-reservas th,
.table-reservas td {
padding: 8px 10px;
border-bottom: 1px solid rgba(0,0,0,0.04);
text-align: left;
}

.table-reservas th {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.16em;
color: #7b8074;
}

/* Estados visuales básicos */
.estado-confirmed {
color: #2f855a;
font-weight: 600;
}

.estado-pending,
.estado-pendiente {
color: #b7791f;
font-weight: 500;
}

.estado-cancelled,
.estado-canceled {
color: #c53030;
}

/* --------------------------------------------------
RESPONSIVE BÁSICO
-------------------------------------------------- */

@media (max-width: 768px) {
header,
.site-header {
padding: 12px 16px;
flex-direction: column;
align-items: flex-start;
gap: 8px;
}

main,
.dashboard {
padding: 0 14px 30px;
}

.panel-section {
padding: 18px 16px 20px;
}

.discipline-pills {
gap: 6px;
}

.pill {
font-size: 10px;
padding: 6px 12px;
}

.calendar-grid {
min-width: 760px;
}
}

.alert-success {
background: #e8f3ec;
color: #2f5d3f;
padding: 14px 20px;
border-radius: 10px;
margin-bottom: 20px;
border: 1px solid #a8cbb3;
font-weight: 600;
}

.alert-error {
background: #fbecec;
color: #842029;
padding: 14px 20px;
border-radius: 10px;
margin-bottom: 20px;
border: 1px solid #f1b0b7;
font-weight: 600;
}

/* ================================
PÁGINA DE LOGIN / AUTH
================================ */

.auth-body {
margin: 0;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
background: #f5f3f0;
}

.auth-page {
display: flex;
min-height: 100vh;
}

/* Columna izquierda (imagen/hero) */
.auth-hero {
flex: 1.1;
position: relative;
background: url('login/fondo.jpg') center center / cover no-repeat;
background-color: #c4b7a6;
background-image:
linear-gradient(135deg, rgba(48,60,52,0.7), rgba(156,175,136,0.7)),
url('images/login-hero.jpg');
color: #fff;
}

.auth-hero-overlay {
position: absolute;
inset: 0;
padding: 2.5rem 3rem;
display: flex;
flex-direction: column;
justify-content: space-between;
}

.auth-brand {
display: flex;
align-items: center;
gap: 0.75rem;
}

.auth-logo-circle {
width: 40px;
height: 40px;
border-radius: 999px;
background: rgba(245,243,240,0.15);
border: 1px solid rgba(245,243,240,0.4);
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 1.3rem;
}

.auth-logo-text {
font-weight: 600;
font-size: 1.2rem;
letter-spacing: 0.08em;
text-transform: uppercase;
}

.auth-hero-text h1 {
font-size: 2.4rem;
margin-bottom: 0.75rem;
}

.auth-hero-text p {
max-width: 320px;
font-size: 0.98rem;
line-height: 1.6;
}

/* Columna derecha (formulario) */
.auth-panel {
flex: 0.9;
display: flex;
align-items: center;
justify-content: center;
padding: 2rem;
}

.auth-card {
width: 100%;
max-width: 420px;
background: #ffffff;
border-radius: 24px;
box-shadow: 0 20px 45px rgba(0,0,0,0.06);
padding: 2.5rem 2.25rem;
}

.auth-card-header h2 {
margin: 0 0 0.5rem;
font-size: 1.7rem;
color: #303c34;
}

.auth-card-header p {
margin: 0;
font-size: 0.95rem;
color: #7b7b7b;
}

.auth-alert {
margin-top: 1.3rem;
}

/* Formularios de login */
.auth-form {
margin-top: 1.8rem;
display: flex;
flex-direction: column;
gap: 1rem;
}

.auth-form .form-group {
display: flex;
flex-direction: column;
gap: 0.35rem;
}

.auth-form label {
font-size: 0.9rem;
font-weight: 500;
color: #4f4f4f;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
border-radius: 999px;
border: 1px solid #d3d0cb;
padding: 0.7rem 1rem;
font-size: 0.95rem;
outline: none;
background-color: #faf8f6;
transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
border-color: #6e7f5b;
background-color: #ffffff;
box-shadow: 0 0 0 3px rgba(110,127,91,0.15);
}

/* Botón principal reutilizando tu .btn-primary */
.btn-full {
width: 100%;
}

/* Pie del formulario */
.auth-footer-links {
margin-top: 0.8rem;
display: flex;
align-items: center;
gap: 0.35rem;
font-size: 0.85rem;
}

.link-muted {
color: #8a8278;
text-decoration: none;
}

.link-muted:hover {
text-decoration: underline;
}

.auth-small-note {
margin-top: 2rem;
font-size: 0.8rem;
color: #a39a90;
text-align: center;
}

/* Alertas genéricas */
.alert {
border-radius: 999px;
padding: 0.6rem 1rem;
font-size: 0.87rem;
}

.alert-success {
background: #edf7ee;
color: #2f6b3a;
}

.alert-error {
background: #fdeaea;
color: #8b3131;
}

/* Responsive: en móviles ocultamos la columna de imagen */
@media (max-width: 900px) {
.auth-page {
flex-direction: column;
}

.auth-hero {
display: none;
}

.auth-panel {
flex: 1;
padding: 2rem 1.25rem;
}

.auth-card {
box-shadow: none;
border-radius: 0;
max-width: 480px;
margin: 0 auto;
}
}

/* ============================= */
/* PÁGINA DE LOGIN */
/* ============================= */

body.login-page {
margin: 0;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
background: #f4f1ec;
color: #1d1d1b;
}

.login-layout {
min-height: 100vh;
display: flex;
}

/* Columna izquierda: imagen */
.login-hero {
flex: 1;
min-height: 100vh;
background: url('images/login-hero.jpg') center center / cover no-repeat;
position: relative;
}

.login-hero::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.2));
}

.login-hero-overlay {
position: absolute;
left: 3rem;
bottom: 3rem;
color: #ffffff;
max-width: 260px;
}

.login-brand {
font-size: 1.1rem;
letter-spacing: 0.15em;
text-transform: uppercase;
margin-bottom: 0.75rem;
font-weight: 500;
opacity: 0.9;
}

.login-brand span {
font-weight: 700;
}

.login-claim {
margin: 0 0 0.75rem;
font-size: 2.2rem;
line-height: 1.1;
font-weight: 700;
}

.login-hero-text {
margin: 0;
font-size: 0.95rem;
line-height: 1.5;
opacity: 0.9;
}

/* Columna derecha: formulario */
.login-panel {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: 3rem 2.5rem;
}

.login-card {
width: 100%;
max-width: 420px;
background: #fbf9f6;
border-radius: 18px;
padding: 2.5rem 2.25rem;
box-shadow:
0 18px 45px rgba(0,0,0,0.14),
0 2px 8px rgba(0,0,0,0.06);
}

.login-card h2 {
margin: 0 0 0.35rem;
font-size: 1.5rem;
font-weight: 700;
color: #1f1f1e;
}

.login-subtitle {
margin: 0 0 1.5rem;
font-size: 0.95rem;
color: #6b6b67;
}

.alert {
padding: 0.8rem 1rem;
border-radius: 999px;
font-size: 0.9rem;
margin-bottom: 1.4rem;
}

.alert-error {
background: #ffe6e6;
color: #9b1c1c;
border: 1px solid #f5b5b5;
}

.login-form .form-group {
margin-bottom: 1.1rem;
}

.login-form label {
display: block;
font-size: 0.85rem;
margin-bottom: 0.35rem;
color: #4d4d48;
}

.login-form input[type="email"],
.login-form input[type="password"] {
width: 100%;
padding: 0.7rem 0.9rem;
border-radius: 999px;
border: 1px solid #d9d5ce;
background: #f9f7f4;
font-size: 0.94rem;
outline: none;
transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
border-color: #556147;
background: #ffffff;
box-shadow: 0 0 0 2px rgba(85, 97, 71, 0.18);
}

.btn-primary.btn-block {
width: 100%;
margin-top: 0.5rem;
}

/* reutilizamos tu estilo de botón primario (olivo) si ya existe */
.btn-primary {
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 999px;
padding: 0.7rem 1.6rem;
border: none;
cursor: pointer;
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
font-size: 0.85rem;
background: #556147;
color: #ffffff;
box-shadow: 0 10px 20px rgba(0,0,0,0.12);
transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary:hover {
background: #48543c;
transform: translateY(-1px);
box-shadow: 0 14px 30px rgba(0,0,0,0.16);
}

.btn-primary:active {
transform: translateY(0);
box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.login-helper {
margin-top: 0.9rem;
font-size: 0.8rem;
color: #8a8881;
}

.login-footer {
margin-top: 1.6rem;
font-size: 0.78rem;
color: #a09c93;
text-align: center;
}

/* Responsive: en pantallas chicas imagen arriba y formulario abajo */
@media (max-width: 900px) {
.login-layout {
flex-direction: column;
}

.login-hero {
min-height: 40vh;
}

.login-hero-overlay {
left: 1.8rem;
bottom: 1.8rem;
}

.login-panel {
padding: 2rem 1.5rem 2.5rem;
}

.login-card {
padding: 2rem 1.7rem;
}
}

/* ==== Calendario: vista tipo "chip" por clase ==== */

.calendar-cell-classes {
display: flex;
flex-direction: column;
gap: 0.5rem;
}

/* Card base ya existe; solo ajustamos detalles */
.calendar-class-chip {
position: relative;
cursor: pointer;
padding: 8px 10px;
}

/* Solo mostrar el nombre de la disciplina al inicio */
.calendar-class-chip .chip-label {
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
font-size: 11px;
}

/* Detalles ocultos hasta hover/click */
.calendar-class-chip .chip-details {
margin-top: 6px;
display: none;
font-size: 12px;
}

/* Mostrar detalles al pasar el cursor */
.calendar-class-chip:hover .chip-details {
display: block;
}

/* Mostrar detalles al hacer clic (clase .is-open desde JS) */
.calendar-class-chip.is-open .chip-details {
display: block;
}

/* Desactivar visualmente clases pasadas */
.calendar-class-chip.class-disabled {
opacity: 0.5;
cursor: default;
}

.calendar-class-chip.class-disabled .btn-primary {
pointer-events: none;
opacity: 0.6;
}

/* --- Tarjetas de clases en calendario (segunda definición base) --- */
.calendar-class-card {
position: relative;
margin-bottom: 6px;
border-radius: 14px;
padding: 6px 8px;
font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
font-size: 11px;
line-height: 1.3;
cursor: pointer;
box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
overflow: hidden;
transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.calendar-class-card:hover {
transform: translateY(-2px);
box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
}

/* Cabecera compacta: disciplina + instructor */
.class-chip-header {
display: flex;
flex-direction: column;
gap: 2px;
font-weight: 600;
text-transform: none;
}

.chip-discipline {
font-size: 11px;
letter-spacing: 0.06em;
text-transform: uppercase;
}

.chip-instructor {
font-size: 10px;
opacity: 0.85;
}

/* Detalles inicialmente ocultos */
.class-chip-details {
margin-top: 4px;
border-top: 1px solid rgba(255, 255, 255, 0.28);
padding-top: 4px;
display: none;
font-size: 10px;
}

.class-chip-details .meta-line {
display: block;
margin-bottom: 2px;
}

/* Mostrar detalles cuando la tarjeta está expandida (clic, móvil/tablet) */
.calendar-class-card.is-expanded .class-chip-details {
display: block;
}

/* En pantallas con mouse, mostrar también al pasar el cursor */
@media (hover: hover) and (pointer: fine) {
.calendar-class-card:hover .class-chip-details {
display: block;
}
}

/* ===== Mejora de legibilidad en días y horarios del calendario ===== */

/* Fila de encabezado (días) */
.calendar-header-cell {
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
color: #374151;
padding: 10px 8px;
text-align: center;
border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

/* Columna de "Hora" */
.calendar-hour-col {
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
color: #4b5563;
padding: 10px 6px;
background: rgba(248, 250, 252, 0.85);
border-right: 1px solid rgba(148, 163, 184, 0.35);
}

/* Celdas de hora (06:00, 07:00, etc.) */
.calendar-hour-cell {
font-size: 11px;
font-weight: 600;
color: #4b5563;
padding: 6px 6px;
text-align: right;
background: rgba(248, 250, 252, 0.85);
border-right: 1px solid rgba(148, 163, 184, 0.25);
}

/* Ligeras líneas horizontales para guiar la vista sin romper el diseño */
.calendar-cell {
border-top: 1px dashed rgba(148, 163, 184, 0.15);
}

/* ============================= */
/* RECEPCIÓN */
/* ============================= */

.reception-classes-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 1.5rem;
margin-top: 1.2rem;
}

.reception-class-card {
background: #fbf9f6;
border-radius: 18px;
padding: 1.2rem 1.1rem 1.1rem;
box-shadow: 0 10px 24px rgba(0,0,0,0.08);
border: 1px solid rgba(0,0,0,0.03);
}

.reception-class-header {
display: flex;
gap: 0.9rem;
margin-bottom: 0.8rem;
}

.reception-class-time {
font-weight: 700;
font-size: 1.1rem;
padding: 0.35rem 0.6rem;
border-radius: 12px;
background: rgba(0,0,0,0.04);
align-self: flex-start;
}

.reception-class-title {
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.12em;
font-weight: 600;
margin-bottom: 0.1rem;
}

.reception-class-subtitle {
font-size: 0.95rem;
font-weight: 500;
margin-bottom: 0.1rem;
}

.reception-class-instructor {
font-size: 0.82rem;
color: #77736a;
}

/* Tabla compacta para asistencia */
.table-compact {
font-size: 0.83rem;
}

.table-compact th,
.table-compact td {
padding: 0.35rem 0.4rem;
}

/* Botoncitos tipo pill para asistencia */
.inline-form {
margin: 0;
}

.pill-outline {
border-radius: 999px;
border: 1px solid #b0aa9f;
padding: 0.25rem 0.75rem;
font-size: 0.78rem;
cursor: pointer;
background: #f3efe8;
color: #555148;
transition: all 0.15s ease;
}

.pill-outline:hover {
background: #e8e2d7;
}

.pill-success {
background: #d5e9d2;
border-color: #7ca16f;
color: #305224;
}

.pill-success:hover {
background: #c6dfc1;
}

/* Combos de formulario inline en pagos en efectivo */
.card-inline-form .form-row {
display: flex;
flex-wrap: wrap;
gap: 1rem;
}

.card-inline-form .form-group {
flex: 1 1 220px;
}

.card-inline-form input,
.card-inline-form select {
width: 100%;
}

.form-group-button {
display: flex;
align-items: flex-end;
}

@media (max-width: 800px) {
.card-inline-form .form-row {
flex-direction: column;
}
}

/* ================================
ADMIN DASHBOARD – GRID Y TARJETAS
================================ */

.admin-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
gap: 1.5rem;
margin-top: 1.5rem;
}

/* La tarjeta completa es clicable */
.admin-card-link {
display: block;
text-decoration: none;
color: inherit;
background: #ffffff;
border-radius: 24px;
padding: 1.4rem 1.6rem;
box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.admin-card-link:hover {
transform: translateY(-2px);
box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
}

.admin-card-link .card-title {
margin-bottom: 0.35rem;
}

.admin-card-link .muted {
font-size: 0.9rem;
}

/* =====================================
PASTILLAS DE DISCIPLINAS (CALENDARIO)
===================================== */

.discipline-pills {
display: flex;
flex-wrap: wrap;
gap: 0.6rem;
margin: 0.6rem 0 1.2rem 0;
}

.pill {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.3rem 0.9rem;
border-radius: 999px;
font-size: 0.78rem;
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
border: 1px solid rgba(148, 163, 184, 0.35);
background: #f9fafb;
color: #111827;
}

/* Colores fuertes por disciplina (chips y base de tarjetas) */
.pill-pilates,
.disc-pilates {
background: #4f46e5;
border-color: #312e81;
color: #ffffff;
}

.pill-yoga,
.disc-yoga {
background: #059669;
border-color: #047857;
color: #ffffff;
}

.pill-barre,
.disc-barre {
background: #a855f7;
border-color: #7e22ce;
color: #ffffff;
}

.pill-kpop,
.disc-kpop {
background: #fb7185;
border-color: #e11d48;
color: #ffffff;
}

.pill-ballet,
.disc-ballet {
background: #facc15;
border-color: #eab308;
color: #422006;
}

.pill-dancefit,
.disc-dancefit {
background: #0ea5e9;
border-color: #0369a1;
color: #ffffff;
}

.disc-default {
background: #6b7280;
border-color: #4b5563;
color: #ffffff;
}

/* ===========================
TARJETAS DENTRO DEL CALENDARIO
=========================== */

.calendar-class-card {
position: relative;
border-radius: 12px;
padding: 0.35rem 0.55rem;
margin-bottom: 4px;
cursor: pointer;
font-size: 0.72rem;
line-height: 1.2;
box-shadow: 0 2px 5px rgba(15, 23, 42, 0.06);
overflow: hidden;
}

/* cabecera compacta (disciplina + instructor) */
.class-chip-header {
display: flex;
justify-content: space-between;
gap: 0.25rem;
font-weight: 600;
margin-bottom: 0.1rem;
}

.chip-discipline {
font-size: 0.7rem;
}

.chip-instructor {
font-size: 0.68rem;
opacity: 0.9;
}

/* detalles que se expanden en hover/click */
.class-chip-details {
margin-top: 0.25rem;
font-size: 0.68rem;
display: none;
}

.calendar-class-card.is-expanded .class-chip-details {
display: block;
}

/* líneas de meta dentro del detalle */
.class-chip-details .meta-line {
display: block;
margin-bottom: 0.1rem;
}

/* GRID DE MÓDULOS PARA USUARIO (similar a admin) */
.user-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
gap: 1.5rem;
margin: 1rem 0 2rem;
}

.user-card-link {
display: block;
text-decoration: none;
color: inherit;
background: #ffffff;
border-radius: 24px;
padding: 1.4rem 1.6rem;
box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.user-card-link:hover {
transform: translateY(-2px);
box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
}

.user-card-active {
box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
border: 1px solid rgba(15, 23, 42, 0.05);
}

/* =========================================
OVERRIDE FINAL: COLORES DE TARJETAS POR DISCIPLINA
(ganan en la cascada)
========================================= */

.calendar-class-card.disc-pilates {
background: #4f46e5;
border-left: 3px solid #312e81;
color: #ffffff;
}

.calendar-class-card.disc-yoga {
background: #059669;
border-left: 3px solid #047857;
color: #ffffff;
}

.calendar-class-card.disc-barre {
background: #a855f7;
border-left: 3px solid #7e22ce;
color: #ffffff;
}

.calendar-class-card.disc-kpop {
background: #fb7185;
border-left: 3px solid #e11d48;
color: #ffffff;
}

.calendar-class-card.disc-ballet {
background: #facc15;
border-left: 3px solid #eab308;
color: #422006;
}

.calendar-class-card.disc-dancefit {
background: #0ea5e9;
border-left: 3px solid #0369a1;
color: #ffffff;
}

.calendar-class-card.disc-default {
background: #6b7280;
border-left: 3px solid #4b5563;
color: #ffffff;
}

/* ================================
TOPBAR (Admin/User/Reception) + BOTÓN VOLVER
================================ */

.topbar {
background: #ffffff;
border-bottom: 1px solid rgba(0, 0, 0, 0.03);
box-shadow: 0 6px 18px rgba(63, 74, 47, 0.12);
padding: 14px 40px;
display: flex;
align-items: center;
justify-content: space-between;
position: sticky;
top: 0;
z-index: 100;
gap: 14px;
}

.topbar-left {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}

.topbar-brand {
font-size: 20px;
font-weight: 700;
letter-spacing: 0.18em;
text-transform: uppercase;
color: #3f4a2f;
}

.topbar-tag {
font-size: 11px;
letter-spacing: 0.14em;
text-transform: uppercase;
color: #8b8574;
padding: 6px 10px;
border-radius: 999px;
border: 1px solid rgba(63, 74, 47, 0.22);
background: #f7f6f1;
}

.topbar-nav {
display: flex;
gap: 18px;
align-items: center;
flex-wrap: wrap;
}

.topbar-nav a {
font-size: 14px;
color: #7b8074;
position: relative;
padding-bottom: 2px;
transition: color 0.2s ease, transform 0.15s ease;
}

.topbar-nav a:hover {
color: #3f4a2f;
transform: translateY(-1px);
}

.topbar-nav a::after {
content: "";
position: absolute;
left: 0;
bottom: -2px;
width: 0;
height: 2px;
background: #3f4a2f;
border-radius: 999px;
transition: width 0.2s ease;
}

.topbar-nav a:hover::after {
width: 100%;
}

/* Link estilo botón (para "Volver al Panel Admin") */
.topbar-nav .nav-btn {
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 999px;
padding: 8px 14px;
border: 1px solid rgba(63, 74, 47, 0.28);
background: #ffffff;
color: #3f4a2f;
font-size: 12px;
letter-spacing: 0.10em;
text-transform: uppercase;
box-shadow: 0 8px 18px rgba(63, 74, 47, 0.10);
}

.topbar-nav .nav-btn:hover {
background: #f3f1eb;
transform: translateY(-1px);
}

/* Responsive topbar */
@media (max-width: 768px) {
.topbar {
padding: 12px 16px;
flex-direction: column;
align-items: flex-start;
}
}

/* ================================
FORMULARIOS (Admin: crear clase, etc.)
================================ */

.form-grid {
margin-top: 10px;
}

.form-row {
display: grid;
grid-template-columns: repeat(3, minmax(180px, 1fr));
gap: 14px;
margin-bottom: 12px;
}

.form-group label {
display: block;
font-size: 0.85rem;
color: #6f6a5f;
margin-bottom: 6px;
}

.form-group input,
.form-group select {
width: 100%;
border-radius: 14px;
border: 1px solid rgba(0,0,0,0.12);
background: #fff;
padding: 10px 12px;
outline: none;
}

.form-group input:focus,
.form-group select:focus {
border-color: rgba(63,74,47,0.55);
box-shadow: 0 0 0 3px rgba(63,74,47,0.12);
}

/* checkboxes alineados */
.form-inline {
display: flex;
align-items: center;
gap: 10px;
padding-top: 28px;
}

/* ================================
TABLAS RESPONSIVE
================================ */

.table-wrap {
overflow-x: auto;
width: 100%;
-webkit-overflow-scrolling: touch;
}

.table-wrap table {
min-width: 760px;
}

/* Responsive: form en 1 columna */
@media (max-width: 900px) {
.form-row {
grid-template-columns: 1fr;
}
}

/* ================================
BOTÓN VOLVER PANEL ADMIN (FIX FINAL)
================================ */

.nav-back {
display: inline-flex;
align-items: center;
gap: 8px;
}

/* Evita símbolos heredados (::before / ::after) */
.nav-back::before,
.nav-back::after {
content: none !important;
}

/* Icono flecha */
.nav-back-icon {
font-size: 14px;
line-height: 1;
transform: translateY(-1px);
}

/* Texto */
.nav-back-text {
font-size: 12px;
letter-spacing: 0.10em;
text-transform: uppercase;
}

/* Hover elegante */
.nav-back:hover .nav-back-icon {
transform: translateX(-2px);
}

/* ================================
ADMIN HEADER – BOTÓN VOLVER LIMPIO
================================ */

.topbar-nav a::before,
.topbar-nav a::after {
content: none !important;
}

.nav-back {
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 999px;
padding: 8px 16px;
border: 1px solid rgba(63, 74, 47, 0.28);
background: #ffffff;
color: #3f4a2f;
font-size: 12px;
letter-spacing: 0.12em;
text-transform: uppercase;
box-shadow: 0 8px 18px rgba(63, 74, 47, 0.10);
}

.nav-back:hover {
background: #f3f1eb;
transform: translateY(-1px);
}

/* ================================
RESPONSIVE: USER DASHBOARD
(pegalo al final de style.css)
================================ */

/* Texto de ayuda bajo secciones */
.panel-hint {
margin-top: 10px;
margin-bottom: 14px;
font-size: 13px;
color: #8b8574;
}

/* Botones de membresía */
.membership-buttons {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 12px;
}

/* En móvil: botones de membresía a una columna */
@media (max-width: 600px) {
.membership-buttons {
flex-direction: column;
align-items: stretch;
}
.membership-buttons .btn-pill,
.membership-buttons .btn-pill-outline {
width: 100%;
justify-content: center;
}
}

/* Grid de módulos (user-grid) más compacto en móvil */
@media (max-width: 768px) {
.user-grid {
grid-template-columns: 1fr !important;
gap: 12px;
margin: 0.8rem 0 1.4rem;
}

.user-card-link {
padding: 1.05rem 1.1rem;
border-radius: 18px;
}
}

/* Tablas: que no revienten en móvil */
.table-wrapper {
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
border-radius: 12px;
}

/* Mantén ancho mínimo para que las columnas no se aplasten */
.table-reservas {
min-width: 720px;
}

/* Link de cancelar más claro en móvil */
.link-cancel-reserva {
text-decoration: underline;
font-size: 13px;
color: #3f4a2f;
}

/* Calendario: en pantallas pequeñas, más aire y mejor tacto */
@media (max-width: 768px) {
.calendar-class-card {
padding: 8px 10px;
border-radius: 14px;
}

.class-chip-details {
font-size: 11px;
}

.calendar-hour-cell {
font-size: 12px;
}
}

/* ================================
RESPONSIVE: INSTRUCTOR DASHBOARD
(pegalo al final de style.css)
================================ */

/* (Si ya lo pegaste por user dashboard, no pasa nada repetirlo) */
.table-wrapper {
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
border-radius: 12px;
}

/* Evita que tablas se aplasten demasiado */
.table-reservas {
min-width: 640px;
}

/* Formulario de disponibilidad: en móvil apilar */
@media (max-width: 800px) {
.instructor-availability-form .form-row {
flex-direction: column;
align-items: stretch;
gap: 0.75rem;
}

.instructor-availability-form .form-group {
flex: 1 1 auto;
}

.instructor-availability-form .form-group-button {
align-items: stretch;
}

.instructor-availability-form .btn-primary {
width: 100%;
justify-content: center;
}
}

/* En pantallas muy pequeñas: reduce un poquito padding general */
@media (max-width: 480px) {
.panel-section {
padding: 16px 14px 18px;
}
.panel-card {
padding: 12px 12px 14px;
}
}

/* ================================
LOGO OFICIAL (Topbar/Header)
================================ */

.brand {
display: inline-flex;
align-items: center;
gap: 12px;
min-width: 0;
}

.brand-logo {
height: 40px; /* ajusta 34–46 según te guste */
width: auto;
display: block;
object-fit: contain;
}

.brand-text {
display: flex;
flex-direction: column;
line-height: 1.05;
}

.brand-name {
font-size: 18px;
font-weight: 700;
letter-spacing: 0.18em;
text-transform: uppercase;
color: #3f4a2f;
white-space: nowrap;
}

.brand-tag {
margin-top: 4px;
font-size: 11px;
letter-spacing: 0.14em;
text-transform: uppercase;
color: #8b8574;
padding: 6px 10px;
border-radius: 999px;
border: 1px solid rgba(63, 74, 47, 0.22);
background: #f7f6f1;
width: fit-content;
}

/* Responsive: en móvil achicamos logo y evitamos que se rompa */
@media (max-width: 768px) {
.brand-logo { height: 34px; }
.brand-name { font-size: 16px; }
}

.logo {
display: flex;
align-items: center;
}

.logo-img {
height: 42px; /* puedes subir a 48px si lo quieres más protagónico */
width: auto;
display: block;
}

/* ===========================
LOGO BE (SVG firma) - RESPONSIVO
=========================== */

.be-logo-wrap{
display:flex;
align-items:center;
gap:10px;
}

.be-logo {
display:inline-flex;
align-items:center;
justify-content:center;
line-height:0;
}

/* 4x más grande (ajusta si quieres más) */
.be-logo svg {
width: 160px; /* <- 4x aprox */
height: auto;
max-width: 42vw; /* responsivo en móvil */
}

/* Si en desktop quieres limitar para que no rompa header */
@media (min-width: 900px){
.be-logo svg{
max-width: 220px;
}
}

/* Animación draw */
@keyframes beDraw {
to { stroke-dashoffset: 0; }
}

/* ===== HEADER ===== */

.topbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 20px;
background: #f7f6f2;
}

.topbar-left {
display: flex;
align-items: center;
gap: 14px;
}

.topbar-tag {
font-size: 12px;
padding: 4px 10px;
border-radius: 999px;
background: #e5e3da;
color: #555;
}

.topbar-nav {
display: flex;
gap: 16px;
}

.topbar-nav a {
text-decoration: none;
color: #333;
font-weight: 500;
}

/* ===== LOGO ===== */

.be-logo svg {
width: 160px; /* 4x grande */
max-width: 40vw;
height: auto;
}

/* Contenedor del logo */
.be-logo-wrapper {
display: flex;
justify-content: center;
align-items: center;
margin: 2rem auto;
}

/* SVG responsivo y GRANDE */
.be-logo-svg {
width: min(80vw, 420px); /* móvil / desktop */
height: auto;
}

/* Animación tipo firma */
.be-path {
stroke-dasharray: 2000;
stroke-dashoffset: 2000;
animation: drawSignature 3.5s ease-out forwards;
}

@keyframes drawSignature {
to {
stroke-dashoffset: 0;
}
}

/* Opcional: efecto suave al terminar */
.be-logo-svg {
opacity: 0;
animation: fadeInLogo 0.6s ease-out forwards;
animation-delay: 0.2s;
}

@keyframes fadeInLogo {
to {
opacity: 1;
}
}

.main-header{
display:flex;
align-items:center;
justify-content:space-between;
gap:16px;
padding:14px 18px;
}

.be-logo-wrapper{
display:flex;
align-items:center;
text-decoration:none;
line-height:0;
}

/* Logo responsivo (mucho más grande) */
.be-logo-wrapper svg{
width:auto;
height:clamp(70px, 10vw, 220px); /* “hasta 4x” según pantalla */
max-width:80vw;
}

/* Evita que el header se rompa en móvil */
.main-nav{
display:flex;
gap:16px;
flex-wrap:wrap;
justify-content:flex-end;
align-items:center;
}

/* Animación tipo firma dibujándose */
.be-logo-wrapper svg path,
.be-logo-wrapper svg line,
.be-logo-wrapper svg polyline{
stroke-dasharray: 1400;
stroke-dashoffset: 1400;
animation: beDraw 2.2s ease forwards;
}

/* Si tu SVG trae fills, NO los borres; solo añadimos esto */
@keyframes beDraw{
to { stroke-dashoffset: 0; }
}

.main-header{
display:flex;
align-items:center;
justify-content:space-between;
gap:16px;
padding:14px 18px;
}

.be-logo-link{
display:flex;
align-items:center;
text-decoration:none;
}

.be-logo-img{
height:96px; /* ~4x vs 24px aprox */
width:auto;
max-width:min(360px, 55vw);
object-fit:contain;
display:block;
}

/* Responsive: baja tamaño en pantallas chicas */
@media (max-width: 768px){
.be-logo-img{
height:72px;
max-width:60vw;
}
}

@media (max-width: 420px){
.main-header{
flex-direction:column;
align-items:flex-start;
}
.main-nav{
width:100%;
display:flex;
flex-wrap:wrap;
gap:12px;
}
.be-logo-img{
height:64px;
max-width:80vw;
}
}

/* ===== HEADER ===== */
.main-header {
display: flex;
align-items: center;
justify-content: space-between; /* logo izquierda, nav derecha */
padding: 14px 28px;
}

/* Logo a la izquierda */
.be-logo-wrapper {
display: flex;
align-items: center;
justify-content: flex-start;
}

/* Tamaño del logo */
.be-logo-img {
height: 56px; /* puedes subir a 64px si lo quieres más protagonista */
width: auto;
display: block;
}

/* Navegación */
.main-nav {
display: flex;
gap: 20px;
align-items: center;
}

@media (max-width: 768px) {
.main-header {
padding: 12px 16px;
}

.be-logo-img {
height: 44px;
}

.main-nav {
gap: 14px;
font-size: 14px;
}
}

/* ✅ Grid responsive para checkboxes/switches de disciplinas */
.disciplines-grid{
display:grid;
gap:12px;
grid-template-columns: repeat(3, minmax(0, 1fr));
align-items:start;
}

@media (max-width: 900px){
.disciplines-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px){
.disciplines-grid{ grid-template-columns: 1fr; }
}

/* Cada item */
.disc-item{
display:flex;
align-items:center;
justify-content:space-between;
gap:12px;
padding:12px 14px;
border-radius:16px;
border:1px solid rgba(17,24,39,.12);
background:#fff;
}

/* Texto (evita cortes raros y mala alineación) */
.disc-item span{
flex:1;
min-width:0;
line-height:1.2;
word-break:break-word;
}

/* ===========================
Instructor Profile (UI)
=========================== */

.profile-grid{
display:grid;
grid-template-columns: 320px 1fr;
gap: 18px;
align-items:start;
}

@media (max-width: 860px){
.profile-grid{ grid-template-columns: 1fr; }
}

/* Foto */
.avatar-preview{
width: 220px;
height: 220px;
border-radius: 18px;
overflow: hidden;
display:flex;
align-items:center;
justify-content:center;
background: rgba(255,255,255,0.55);
border: 1px solid rgba(0,0,0,0.06);
margin-bottom: 10px;
}

.avatar-preview img{
width: 100%;
height: 100%;
object-fit: cover;
}

.avatar-placeholder{
font-weight: 700;
opacity: .65;
}

/* Form */
.panel-card textarea{
width: 100%;
resize: vertical;
min-height: 110px;
}

.panel-card input[type="text"]{
width: 100%;
}

/* Chips / disciplinas */
.pill-group{
display:flex;
flex-wrap:wrap;
gap: 10px;
margin-top: 8px;
}

.pill{
display:inline-flex;
align-items:center;
gap: 8px;
padding: 10px 12px;
border-radius: 999px;
border: 1px solid rgba(0,0,0,0.10);
background: rgba(255,255,255,0.55);
cursor: pointer;
user-select:none;
font-weight: 600;
font-size: 13px;
}

.pill input{
width: 16px;
height: 16px;
accent-color: #2f3b2f; /* verde oscuro como tu botón */
}

/* Botón */
.btn-primary{
border-radius: 14px;
}

/* ===========================
Perfil Instructor - Look Be Studio (cards)
=========================== */

.profile-wrap{
max-width: 1100px;
}

.profile-header{
display:flex;
align-items:flex-start;
justify-content:space-between;
gap:14px;
flex-wrap:wrap;
margin-bottom: 14px;
}

.profile-header .panel-title{ margin:0; }
.profile-header .panel-description{ margin:6px 0 0; }

/* grid como admin cards */
.profile-grid{
display:grid;
grid-template-columns: 340px 1fr;
gap: 18px;
align-items:start;
}

@media (max-width: 900px){
.profile-grid{ grid-template-columns: 1fr; }
}

/* Card feel consistente */
.profile-card{
background: rgba(255,255,255,0.55);
border: 1px solid rgba(0,0,0,0.06);
border-radius: 18px;
padding: 16px;
box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* foto */
.avatar-preview{
width: 100%;
max-width: 280px;
aspect-ratio: 1/1;
border-radius: 18px;
overflow: hidden;
display:flex;
align-items:center;
justify-content:center;
background: rgba(255,255,255,0.75);
border: 1px solid rgba(0,0,0,0.06);
margin: 8px 0 12px;
}

.avatar-preview img{
width: 100%;
height: 100%;
object-fit: cover;
}

.avatar-placeholder{
font-weight: 700;
opacity: .65;
}

/* Disciplinas tipo chips */
.pill-group{
display:flex;
flex-wrap:wrap;
gap: 10px;
margin-top: 10px;
}

.pill{
display:inline-flex;
align-items:center;
gap: 8px;
padding: 10px 12px;
border-radius: 999px;
border: 1px solid rgba(0,0,0,0.10);
background: rgba(255,255,255,0.65);
cursor: pointer;
user-select:none;
font-weight: 600;
font-size: 13px;
}

.pill input{
width: 16px;
height: 16px;
accent-color: #2f3b2f;
}

.profile-actions{
display:flex;
gap:10px;
align-items:center;
flex-wrap:wrap;
margin-top: 12px;
}

/* ===========================
PERFIL INSTRUCTOR - v2 (más limpio)
=========================== */

.profile-wrap{ max-width: 1100px; }

.profile-grid{
display:grid;
grid-template-columns: 360px 1fr;
gap: 20px;
align-items:start;
}

@media (max-width: 920px){
.profile-grid{ grid-template-columns: 1fr; }
}

.profile-card{
background: rgba(255,255,255,0.62);
border: 1px solid rgba(0,0,0,0.06);
border-radius: 18px;
padding: 18px;
box-shadow: 0 14px 40px rgba(0,0,0,0.06);
backdrop-filter: blur(6px);
}

.profile-card .card-title{
margin:0 0 10px;
letter-spacing: .12em;
text-transform: uppercase;
font-size: 12px;
opacity: .75;
}

/* FOTO */
.avatar-preview{
width: 100%;
aspect-ratio: 1 / 1;
border-radius: 18px;
overflow: hidden;
background: rgba(255,255,255,0.65);
border: 1px dashed rgba(0,0,0,0.18);
display:flex;
align-items:center;
justify-content:center;
margin: 10px 0 12px;
}

.avatar-preview img{ width:100%; height:100%; object-fit:cover; }

.avatar-placeholder{
text-align:center;
font-weight:700;
opacity:.60;
}

.upload-box{
display:grid;
gap:10px;
margin-top: 10px;
}

.file-cta{
display:flex;
align-items:center;
justify-content:space-between;
gap:12px;
padding: 12px 14px;
border-radius: 14px;
background: rgba(255,255,255,0.70);
border: 1px solid rgba(0,0,0,0.08);
}

.file-cta small{ opacity:.70; }

.file-btn{
display:inline-flex;
align-items:center;
justify-content:center;
padding: 10px 12px;
border-radius: 999px;
border: 1px solid rgba(0,0,0,0.12);
background: rgba(255,255,255,0.80);
font-weight: 700;
cursor:pointer;
white-space:nowrap;
}

.file-hidden{ display:none; }

.btn-wide{
width:100%;
justify-content:center;
}

/* FORM */
.profile-form .form-group{ margin-bottom: 12px; }

.profile-form input[disabled]{
opacity: .85;
cursor: not-allowed;
}

textarea{
resize: vertical;
min-height: 110px;
}

.counter{
display:flex;
justify-content:space-between;
gap:10px;
font-size: 12px;
opacity: .70;
margin-top: 6px;
}

/* DISCIPLINAS */
.pill-grid{
display:grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
margin-top: 10px;
}

@media (max-width: 720px){
.pill-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pill{
display:flex;
align-items:center;
gap: 10px;
padding: 12px 12px;
border-radius: 14px;
border: 1px solid rgba(0,0,0,0.10);
background: rgba(255,255,255,0.70);
cursor: pointer;
user-select:none;
font-weight: 700;
font-size: 13px;
}

.pill input{
width: 16px;
height: 16px;
accent-color: #2f3b2f;
}

.pill-success{
display:inline-block;
padding:6px 10px;
border-radius:999px;
font-weight:800;
font-size:12px;
background: rgba(200,255,200,0.45);
border:1px solid rgba(80,180,80,0.35);
}
.pill-warn{
display:inline-block;
padding:6px 10px;
border-radius:999px;
font-weight:800;
font-size:12px;
background: rgba(255,230,170,0.45);
border:1px solid rgba(200,140,40,0.35);
}

/* ====== DISCIPLINAS (COLORES) ====== */

/* Píldoras de leyenda arriba */
.pill {
display:inline-flex; align-items:center; gap:8px;
padding:10px 14px; border-radius:999px;
font-weight:800; letter-spacing:.08em; text-transform:uppercase;
border:1px solid rgba(0,0,0,.10);
background: rgba(255,255,255,.55);
}
.pill-pilates { background: rgba(140, 92, 255, .18); border-color: rgba(140, 92, 255, .35); }
.pill-yoga { background: rgba(60, 195, 140, .18); border-color: rgba(60, 195, 140, .35); }
.pill-barre { background: rgba(255, 120, 160, .18); border-color: rgba(255, 120, 160, .35); }
.pill-kpop { background: rgba(255, 190, 60, .18); border-color: rgba(255, 190, 60, .35); }
.pill-ballet { background: rgba(80, 140, 255, .18); border-color: rgba(80, 140, 255, .35); }
.pill-dancefit{ background: rgba(255, 110, 60, .18); border-color: rgba(255, 110, 60, .35); }

/* Cards del calendario */
.calendar-class-card{
border-radius: 14px;
padding: 10px 10px;
margin: 6px 0;
border: 1px solid rgba(0,0,0,.08);
background: rgba(255,255,255,.50);
transition: transform .15s ease, box-shadow .15s ease;
}
.calendar-class-card:hover{
transform: translateY(-1px);
box-shadow: 0 10px 20px rgba(0,0,0,.12);
}

/* Color por disciplina (tu PHP usa disc-*) */
.calendar-class-card.disc-pilates { background: rgba(140, 92, 255, .18); border-color: rgba(140, 92, 255, .35); }
.calendar-class-card.disc-yoga { background: rgba(60, 195, 140, .18); border-color: rgba(60, 195, 140, .35); }
.calendar-class-card.disc-barre { background: rgba(255, 120, 160, .18); border-color: rgba(255, 120, 160, .35); }
.calendar-class-card.disc-kpop { background: rgba(255, 190, 60, .18); border-color: rgba(255, 190, 60, .35); }
.calendar-class-card.disc-ballet { background: rgba(80, 140, 255, .18); border-color: rgba(80, 140, 255, .35); }
.calendar-class-card.disc-dancefit{ background: rgba(255, 110, 60, .18); border-color: rgba(255, 110, 60, .35); }
.calendar-class-card.disc-default { background: rgba(255,255,255,.55); }

/* Header interno del chip (texto) */
.class-chip-header{
display:flex; align-items:center; justify-content:space-between; gap:10px;
font-weight:900;
}
.chip-discipline{
font-size: 12px;
letter-spacing: .08em;
text-transform: uppercase;
}
.chip-instructor{
font-size: 12px;
opacity: .75;
}

/* Expand/collapse (si ya tienes esto, lo respeta) */
.calendar-class-card .class-chip-details{ display:none; margin-top:10px; }
.calendar-class-card.is-expanded .class-chip-details{ display:block; }

.calendar-class-card.disc-pilates { box-shadow: inset 6px 0 0 rgba(140,92,255,.65); }
.calendar-class-card.disc-yoga { box-shadow: inset 6px 0 0 rgba(60,195,140,.65); }
.calendar-class-card.disc-barre { box-shadow: inset 6px 0 0 rgba(255,120,160,.65); }
.calendar-class-card.disc-kpop { box-shadow: inset 6px 0 0 rgba(255,190,60,.65); }
.calendar-class-card.disc-ballet { box-shadow: inset 6px 0 0 rgba(80,140,255,.65); }
.calendar-class-card.disc-dancefit{ box-shadow: inset 6px 0 0 rgba(255,110,60,.65); }

.topbar-logo img{
height: 96px;
width: auto;
display: block;
}

.topbar-left{
display:flex;
align-items:center;
gap:12px;
}

/* ====== HORARIOS BE (tabla bonita) ====== */
.be-schedule{
margin-top: 16px;
border: 1px solid var(--stroke);
background: rgba(255,255,255,.74);
border-radius: var(--radius);
box-shadow: var(--shadow);
overflow: hidden;
}

.be-schedule-head{
display:flex;
align-items:flex-end;
justify-content:space-between;
gap:12px;
padding:14px 16px;
border-bottom: 1px solid var(--stroke);
background: rgba(255,255,255,.55);
flex-wrap: wrap;
}

.be-schedule-head h3{
margin:0;
font-family:"Playfair Display", serif;
font-size: 20px;
letter-spacing:-.01em;
}

.be-schedule-head p{
margin:0;
color: var(--muted);
font-weight: 700;
font-size: 13px;
}

.be-schedule-scroll{
overflow:auto;
-webkit-overflow-scrolling: touch;
}

.be-table{
width: 100%;
min-width: 920px; /* fuerza scroll en móvil para que no se rompa */
border-collapse: separate;
border-spacing: 0;
}

.be-table th,
.be-table td{
border-bottom: 1px dashed rgba(21,19,24,.14);
border-right: 1px dashed rgba(21,19,24,.10);
vertical-align: top;
padding: 12px 12px;
background: rgba(255,255,255,.40);
}

.be-table th{
position: sticky;
top: 0;
z-index: 2;
background: rgba(255,255,255,.85);
font-size: 13px;
letter-spacing: .08em;
text-transform: uppercase;
color: rgba(21,19,24,.68);
font-weight: 900;
}

.be-table th:first-child{
left: 0;
z-index: 3;
}

.be-table td:first-child{
position: sticky;
left: 0;
z-index: 1;
background: rgba(255,255,255,.85);
font-weight: 900;
color: rgba(21,19,24,.78);
width: 120px;
}

.be-cell{
display:flex;
flex-direction: column;
gap: 8px;
min-height: 48px;
}

.be-chip{
display:inline-flex;
align-self:flex-start;
padding: 7px 10px;
border-radius: 999px;
border: 1px solid rgba(102,117,95,.22);
background: rgba(223,229,214,.55); /* olivo suave */
color: rgba(21,19,24,.85);
font-weight: 900;
font-size: 12px;
line-height: 1;
letter-spacing: .02em;
}

.be-chip.muted{
border: 1px solid rgba(21,19,24,.10);
background: rgba(255,255,255,.55);
color: rgba(21,19,24,.55);
font-weight: 800;
}

.be-divider{
height: 1px;
background: rgba(21,19,24,.08);
margin: 12px 0 0;
}

/* mobile polish */
@media (max-width: 520px){
.be-schedule-head{padding:12px 12px;}
.be-schedule-head h3{font-size: 18px;}
.be-table{min-width: 860px;}
}


