.detail-wrapper { padding: 8px 0 24px; }
.detail-breadcrumb { color: #6d5b58; cursor: pointer; margin-bottom: 8px; display:inline-flex; align-items:center; gap:6px;    text-decoration: none; }
.detail-title { font-family: var(--font-heading); font-size: 24px; font-weight: 700; margin: 8px 0 16px; color: var(--figma-text); }
.section-card { border: 1px solid #efe7e4; border-radius: 14px; overflow: hidden; background:#fff; }
.section-card__head { background: var(--figma-secondary); color:#fff; padding: 10px 14px; font-weight: 700; }
.section-card__sub { font-size: 12px; color:#f3ecea; font-weight: 400; }
.section-card__body { padding: 16px; }
.form-grid { display:grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }
.avatar-box { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; }
.avatar-circle { width: 140px; height: 140px; border-radius: 50%; background:#dde2e8; }
.avatar-actions { display:flex; gap:8px; }
.avatar-actions .btn { padding: 4px 10px; border-radius: 8px; }
.avatar-actions .btn-outline-danger { border:1px solid #e0b3b3; color:#b85454; }
.avatar-actions .btn-outline-danger:hover { background:#f9e3e3;border:#f9e3e3; }
.avatar-actions .btn-outline-primary { border:1px solid var(--figma-primary); color: var(--figma-primary); }
.avatar-actions .btn-outline-primary:hover { background:#f7eceb;border:#f7eceb; }
.modal .cropper-container { max-width: 100% !important; }
.detail-actions { display:flex; justify-content:flex-end; padding: 12px 0; }
/* Tokenización basada en Figma (fácil de ajustar). Sustituye los valores por los del diseño definitivo. */
:root {
  /* Colores principales (Figma) */
  --figma-primary: #AC8685;      /* Vino suave */
  --figma-primary-600: #6b403d;
  --figma-secondary: #c79a8b;    /* Rosa terracota */
  --figma-accent: #e4c7b7;       /* Arena */
  --figma-bg: #fcf7f4;           /* Marfil */
  --figma-surface: #ffffff;      /* Blanco */
  --figma-text: #2f2a28;         /* Marrón oscuro */
  --figma-muted: #8b817d;        /* Gris cálido */
  --figma-success: #2e7d32;
  --figma-danger: #c62828;
  --figma-warning: #b26a00;
  --figma-info: #2f5d8a;

  /* Radios y sombras */
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 6px 14px rgba(0,0,0,.08);
  --shadow-lg: 0 18px 40px rgba(0,0,0,.12);

  /* Tipografías (según Figma: Playfair Display para títulos, Roboto para texto) */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html, body {
  background: var(--figma-bg);
  color: var(--figma-text);
  font-family: var(--font-body);
}

/* ======= LOGIN FULLPAGE ======= */
.login-hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 16px;
  background: var(--figma-bg) url('/img/bg-login.png') center/cover no-repeat fixed;
}

.login-card-confirm {
  width: 100%;
  max-width: 800px;
  min-height: 600px;
  align-content: center;
  background: var(--figma-surface);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  padding: 60px 100px 80px;

}

.login-card {
  width: 100%;
  max-width: 800px;
  background: var(--figma-surface);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  padding: 60px 100px 80px;
}
.login-brand { display:flex; align-items:center; justify-content:center; gap:8px; color:#6d5b58; margin-bottom:4px; font-weight:700; text-transform: lowercase; }
.login-logo { width: 150px; height: 60px; object-fit: contain; }

.login-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 26px;
  text-align: center;
  color: var(--figma-text);
  margin: 35px 0 15px;
}

.login-subtitle {
  font-size: 10px;
  text-align: center;
  color: var(--figma-muted);
  margin-bottom: 24px;
}
.login-link {
  color: var(--figma-secondary);
  text-decoration: underline;
  font-weight: 500;
}
.login-link:hover {
  text-decoration: none;
  color: #bb8e7f;
}

.login-form { margin-top: 8px; }

.field { margin-bottom: 14px; }
.field-label {
  display: block;
  font-size: 11px;
  color: var(--figma-muted);
  margin-bottom: 6px;
}
.field-input {
  width: 100%;
  height: 36px;
  padding: 6px 12px;
  border-radius: 9px;
  border: 1.6px solid #e9dcd6;
  background: #fff;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.field-input:focus {
  border-color: var(--figma-secondary);
  box-shadow: 0 0 0 4px rgba(199,154,139,.18);
}

/* Error state (wrong password) */
.login-card.is-error .field-input { border-color: var(--figma-danger); box-shadow: 0 0 0 4px rgba(198,40,40,.08); }
.login-error { color: var(--figma-danger); text-align: center; font-size: 12px; margin: 4px 0 10px; }

.login-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 16px;
}
.remember {
  font-size: 12px;
  color: var(--figma-muted);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.forgot { font-size: 12px; color: var(--figma-secondary); text-decoration: none; }
.forgot:hover { text-decoration: underline; }
.login-redirect {
  display: block;
  padding-top: 7px;
  width: 100%;
  margin: 0 auto;
  height: 40px;
  border-radius: 30px;
  background: var(--figma-secondary);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 100;
  letter-spacing: .2px;
  transition: transform .06s ease, background .2s ease;
}
.login-submit {
  display: block;
  width: 100%;
  margin: 0 auto;
  height: 40px;
  border-radius: 30px;
  background: var(--figma-secondary);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 100;
  letter-spacing: .2px;
  transition: transform .06s ease, background .2s ease;
}
.login-submit:hover { background: #bb8e7f; }
.login-submit:active { transform: translateY(1px); }

/* Ocultar navbar y footer en login para igual que el diseño plano */
body:has(.login-hero) .navbar,
body:has(.login-hero) .footer { display: none !important; }
body:has(.login-hero) .alert { display: none !important; }

/* ======= PÁGINA PÚBLICA: PRIMERA SESIÓN ======= */
.public-hero { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; background: var(--figma-bg) url('/img/bg-login.png') center/cover no-repeat fixed; }
.public-card { width: 100%; max-width: 1160px; background: #FCFCFC; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 54px; }
.public-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: center; }
.public-title { font-family: 'Playfair Display', serif; color: var(--figma-text); font-size: 50px; font-weight: 600; letter-spacing: 0.2px; margin: 0 0 50px; }
.info-title { margin-bottom: 30px; }
.public-subtitle { font-family: 'Roboto', sans-serif; font-weight: 700; color: var(--figma-text); font-size: 20px; margin: 0 0 30px; }
.public-paragraph { font-family: 'Roboto', sans-serif; color: var(--figma-muted); font-size: 16px; line-height: 1.85; margin: 0 0 16px; }
.public-actions { display:flex; gap:16px; margin-top: 28px; }
.public-primary { font-family: 'Roboto', sans-serif; display:inline-block; background: var(--figma-primary); color:#fff; padding: 12px 38px; border-radius: 12px; text-decoration:none; box-shadow: var(--shadow-sm); transition: background .2s ease, transform .06s ease; font-size: 18px; }
.public-primary:hover { background: var(--figma-primary-600); }
.public-primary:active { transform: translateY(1px); }
.public-secondary { display:inline-block; background:#e9dfdb; color:#8a7a75; padding: 10px 18px; border-radius: 10px; text-decoration:none; }
.public-secondary:hover { background:#e3d7d2; }
.public-illustration { width: 100%; max-width: 350px; display:block; margin: 0 auto; }
@media (max-width: 992px) { .public-grid { grid-template-columns: 1fr; } .public-right { order: -1; } .public-card { padding: 32px; } .public-title { font-size: 36px; } .public-subtitle { font-size: 18px; } .public-paragraph { font-size: 14px; } .public-primary { font-size: 16px; padding: 10px 24px; } }

/* ======= FORGOT / RESET ======= */
.forgot-hero, .reset-hero { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; background: var(--figma-bg) url('/img/bg-login.png') center/cover no-repeat fixed; }
.forgot-card, .reset-card { width: 100%; max-width: 720px; background: var(--figma-surface); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 44px 48px 36px; }
.forgot-title, .reset-title { font-family: var(--font-heading); font-weight: 600; font-size: 22px; text-align: center; color: var(--figma-text); margin: 6px 0 10px; }
.forgot-subtitle, .reset-subtitle { font-size: 12px; text-align: center; color: var(--figma-muted); margin-bottom: 24px; }
.forgot-submit, .reset-submit { display: block; width: 240px; margin: 8px auto 0; height: 32px; border-radius: 8px; background: var(--figma-secondary); border: none; color: #fff; font-weight: 600; }
.forgot-submit:hover, .reset-submit:hover { background: #bb8e7f; }
body:has(.forgot-hero) .navbar, body:has(.forgot-hero) .footer, body:has(.reset-hero) .navbar, body:has(.reset-hero) .footer { display: none !important; }
/* Mostrar alertas en forgot/reset */

/* Medidor de fuerza simple */
.strength-wrapper { height: 6px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 10px; }
.strength-bar { height: 5px; border-radius: 999px; background: #eae3df; }
.strength-bar.active-1 { background: #d98c8c; }
.strength-bar.active-2 { background: #e0b06f; }
.strength-bar.active-3 { background: #75b17e; }

/* Label de seguridad de contraseña */
.password-strength-label {
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}

/* Página éxito */
.success-hero { min-height: 100vh; display: grid; place-items: center; background: var(--figma-bg); padding: 40px 16px; }
.success-card { width: 100%; max-width: 720px; background: var(--figma-surface); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 56px; text-align: center; }
.success-title { font-family: var(--font-heading); color: var(--figma-text); font-size: 24px; margin-bottom: 6px; }
.success-subtitle { color: var(--figma-muted); font-size: 12px; margin-bottom: 16px; }
.success-back { background: var(--figma-secondary); color: #fff; border: none; border-radius: 8px; height: 32px; padding: 0 16px; }

/* Navbar */
.navbar {
  background: var(--figma-primary) !important;
  box-shadow: var(--shadow-md);
}
.navbar-brand { font-family: var(--font-heading); letter-spacing: .2px; }

/* Titulares */
h1, h2, h3, .h1, .h2, .h3 { font-family: var(--font-heading); color: var(--figma-primary); }

/* Cards */
.card { border-radius: var(--radius-lg); border: none; box-shadow: var(--shadow-sm); }
.card-header { background: var(--figma-surface); border-bottom: 1px solid #efe7e4; }

/* Botones */
.btn {font-size: 12px;font-weight: 400; border-radius: var(--radius-md); }


.btn-primary { background: var(--figma-primary);border: 1px solid var(--figma-primary);font-size: 12px;font-weight: 400; }
.btn-primary:hover { background: var(--figma-primary-600);border: 1px solid var(--figma-primary) }
.btn-outline-primary { color: var(--figma-primary); border: 1px solid var(--figma-primary); }
.btn-outline-primary:hover { color: #fff; background: var(--figma-primary); border-color: var(--figma-primary); }

/* Formularios */
.form-control, .form-select { border-radius: var(--radius-md); border: 2px solid #efebe9; }
.form-control:focus, .form-select:focus { border-color: var(--figma-primary); box-shadow: 0 0 0 .2rem rgba(122, 75, 71, .12); }

/* Tablas */
.table thead th { background: #fbf5f2; text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; }
.table tbody tr:hover { background: #fff8f6; }

/* Orden: flechas arriba/abajo */
.sort-arrows { display:inline-flex; flex-direction:column; margin-left:6px; line-height:0.85; vertical-align:middle; }
.sort-arrow { font-size:.7rem; color:#9aa3ad; text-decoration:none; }
.sort-arrow.is-active { color:#58677c; font-weight:700; }

/* Badges de estado */
.badge-pendiente, .badge-Pendiente { background: linear-gradient(135deg, var(--figma-warning), #e19927); }
.badge-confirmada, .badge-Confirmada { background: linear-gradient(135deg, var(--figma-success), #3fa243); }
.badge-cancelada, .badge-Cancelada { background: linear-gradient(135deg, var(--figma-danger), #e44343); }
.badge-completada, .badge-Completada { background: linear-gradient(135deg, var(--figma-info), #3c79b2); }

/* Alerts */
.alert { border: none; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }

/* Footer */
.footer { background: #2b2322; }

/* ======= ADMIN LAYOUT ======= */
.admin-main { background: #fff; }
.admin-body { background: var(--figma-bg); }
.admin-shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.admin-sidebar { background: #fff; border-right: 1px solid #efe7e4; padding: 20px 14px; position: sticky; top: 0; height: 100vh; }
.admin-sidebar.admin-scroll { display: flex; flex-direction: column; overflow: hidden; }
.admin-sidebar .brand { font-family: var(--font-heading); color: var(--figma-primary); font-size: 20px; margin-bottom: 18px; display:flex; align-items:center; }
.admin-sidebar.admin-scroll .brand { flex-shrink: 0; }
.menu { display: grid; gap: 6px; }
.admin-sidebar.admin-scroll .menu { overflow-y: auto; min-height: 0; scrollbar-width: thin; scrollbar-color: transparent transparent; transition: scrollbar-color 0.2s ease; }
.admin-sidebar.admin-scroll .menu::-webkit-scrollbar { width: 6px; }
.admin-sidebar.admin-scroll .menu::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar.admin-scroll .menu::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; transition: background 0.2s ease; }
.admin-sidebar.admin-scroll .menu:hover, .admin-sidebar.admin-scroll .menu:focus { scrollbar-color: #cbd5e0 transparent; }
.admin-sidebar.admin-scroll .menu:hover::-webkit-scrollbar-thumb, .admin-sidebar.admin-scroll .menu:focus::-webkit-scrollbar-thumb { background: #cbd5e0; }
.admin-sidebar.admin-scroll .menu:active { scrollbar-color: #9ca3af transparent; }
.admin-sidebar.admin-scroll .menu:active::-webkit-scrollbar-thumb { background: #9ca3af; }
.menu-item { display: block; padding: 10px 12px; border-radius: 10px; color: var(--figma-text); text-decoration: none; font-weight: 500; }
.menu-item:hover { background: #fbf5f2; }
.menu-item.active { background: #fbf5f2; color: var(--figma-primary); }
.sidebar-footer { position: absolute; bottom: 16px; left: 14px; right: 14px; }
.admin-sidebar.admin-scroll .sidebar-footer { position: static; margin-top: auto; padding-top: 16px; flex-shrink: 0; }
.admin-topbar { height: 100px; margin: 0 50px; display: flex; align-items: end; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid black; background: #fff; position: sticky; top: 0; z-index: 5; }
.admin-topbar .page-title { font-weight: 600; font-size: 22px;padding-bottom: 10px; }
.admin-content { padding: 18px 55px; }
.admin-content .container { max-width: 100%;padding: 0 30px;}
.user-mini strong { font-size: 15px; }
.user-mini small { font-size: 12px; color: #8b817d; }

.dropdown-toggle::after { padding-bottom:10px; }
/* ======= LIST CONTROLS (filtros/orden) ======= */
.list-controls { margin-bottom: 8px; width: 100%;}
.list-controls__bar { display:flex; align-items:center; gap:12px; }
.list-controls__search { display:flex; align-items:center; gap:8px; background:#e6e7e9; border:1px solid #e6e7e9; padding:4px 10px; border-radius:15px; min-width:350px; }
.list-controls__search input { border:none; outline:none; width:220px;background:transparent; font-size: 15px; }
.list-controls__filters-toggle { 
  border:0px solid #efe7e4; 
  background:#fff; 
  padding:6px 10px; 
  border-radius:10px; 
  display:flex; 
  align-items:center; 
  justify-content:center;
  position:relative;
  color:#58677c;
  transition:all 0.2s ease;
  min-width:40px;
  height:40px;
}
.list-controls__filters-toggle:hover { 
  background:#f8f9fa; 
  color:#39424e;
  border-color:#d1d5db;
}
.list-controls__filters-toggle i { 
  font-size:14px; 
}
.filter-indicator {
  position:absolute;
  top:4px;
  right:4px;
  width:6px;
  height:6px;
  background:#007bff;
  border-radius:50%;
}
.list-controls__spacer { flex:1; }
.list-controls__panel { background:#fff; border:1px solid #efe7e4; border-radius:12px; padding:12px; margin-top:10px; }
.list-controls__panel[hidden] { display:none !important; }

/* Email config helpers */
.email-grid .form-label{font-weight:600;color:#39424e}
.email-grid .alert{background:#fafbfc}

.list-controls__footer { display:flex; justify-content:space-between; align-items:center; margin-top:12px; border-top:1px solid #e2dcd9; padding-top:10px; }
.list-controls__footer .pager { margin: 0 auto; }
.pager { display:flex; gap:10px; align-items:center; }
.pager__link { color:#58677c; text-decoration:none; padding:2px 6px; border-radius:8px; }
.pager__link.is-active { background:#eef2f7; font-weight:600; }
.pager__link.is-disabled { pointer-events:none; opacity:.5; }
.pager__gap { color:#9aa3ad; }
.page-size { display:flex; align-items:center; gap:8px; }
.page-size__select { border:1px solid #d1dae6; border-radius:12px; padding:2px 10px; background:#fff; }
.page-size__label { color:#6d7a8b; font-size:.9rem; }


/* Cards "pixel" */
.card { border-radius: 0px; box-shadow: none; border: none; text-align: center; }
.card-header { background: #fff; border-bottom: 1px solid #efe7e4; }
.card-body{padding: 0px;}

/* Flecha de navegación en detalle */
.detail-breadcrumb .fa-arrow-left {
  width: 25px;
  height: 25px;
  font-size: 25px;
}

/* Header de admin en edición */
.admin-header {
  display: flex;
  flex-direction: column;
  align-items: start;
  text-align: center;
  padding-left: 10px;
}
.admin-id {
  font-size: 18px;
  font-weight: bold;
  color: white;
  margin-bottom: 4px;
}
.admin-subtitle {
  font-size: 14px;
  color: white;
  opacity: 0.9;
}

/* Layout de dos columnas para admin */
.admin-form-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.admin-form-left {
  flex: 1;
  min-width: 0;
}

.admin-form-left .form-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px 24px !important;
  padding-left: 10px;
}

.admin-form-left .col-6 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  grid-column: span 1;
  min-width: 350px;
}

.admin-form-left .col-3 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  grid-column: span 1;
  min-width: 350px;
}

.admin-form-right {
  padding-top: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top:30px;
}

.profile-photo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: #dde2e8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 48px;
}

.photo-actions {
  padding-top: 30px;
  display: flex;
  flex-direction: row;
  gap: 100px;
  align-items: center;
}

.photo-link {
  color: #616e7c;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.photo-link:hover {
  text-decoration: underline;
}

.photo-link.disabled {
  color: #6c757d;
  cursor: not-allowed;
}

.photo-link.disabled:hover {
  text-decoration: none;
}

/* Mensajes en formularios */
#errorMessage, #successMessage {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

#errorMessage i, #successMessage i {
  font-size: 16px;
}

/* Modal de confirmación para eliminar foto */
.modal-header {
  background-color: var(--figma-secondary);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.modal-title {
  color: white;
  font-weight: 600;
}

.btn-close {
  filter: invert(1);
}

/* Campo de última conexión (solo lectura) */
.form-control[readonly] {
  background-color: #f8f9fa;
  border-color: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
}

.form-control[readonly]:focus {
  background-color: #f8f9fa;
  border-color: #e9ecef;
  box-shadow: none;
}

/* Tablas admin */
.table { border-color: #efe7e4; }
.table thead tr { background: #DAC3BE; }
.table thead th { background: #DAC3BE; font-size: 12px; letter-spacing: .04em; color: black; border-bottom: 1px solid #efe7e4; font-weight: 400; }
.table thead th:first-child { border-radius: 10px 0 0 10px; }
.table thead th:last-child { border-radius: 0 10px 10px 0; }
.table tbody td { border-top-color: #efe7e4; font-size: 14px; }
.table tbody tr:hover { background: #fff; }

/* Estadísticas del dashboard */
.stats-card { background:#fff; border:1px solid #efe7e4; border-radius: 14px; padding: 16px; text-align:center; }
.stats-number { font-weight: 700; font-size: 24px; color: var(--figma-primary); }
.stats-label { font-size: 12px; color: var(--figma-muted); }
/* Badge de nota global */
.section-card__head-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.section-card__head-text {
  flex: 1;
}

.section-card__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.nota-global-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e4c7b7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  flex-shrink: 0;
}

.nota-global-score {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1;
}
/* ======= PASO AGENDA (simulado) ======= */
.schedule-hero { min-height: 100vh; display:grid; place-items:center; padding:40px 16px; background: var(--figma-bg) url('/img/bg-login.png') center/cover no-repeat fixed; }
.schedule-card { width: 100%; max-width: 1280px; background: #FCFCFC; border-radius: 15px; box-shadow: 0 19.4px 38.8px rgba(0, 0, 0, .25), 0 13.8574px 13.8574px rgba(0, 0, 0, .22); padding: 40px; box-sizing: border-box; }
.schedule-grid { display:grid; grid-template-columns: 280px 1fr 280px; gap: 24px; align-items:start; }
.schedule-title { display: none; }
.schedule-sidebar .meta-item { font-size: 12px; color:#8a7a75; margin-bottom: 10px; }
.schedule-sidebar .meta-item span { color:#6d5b58; font-weight:700; margin-right:6px; }
.schedule-sidebar .meta-pill { font-size: 12px; color:#8a7a75; margin-bottom: 10px; }
.schedule-calendar { background: none; border-radius:0; padding: 16px 40px; box-shadow: none; border-left: 1px solid #3F342EB2; border-right: 1px solid #3F342EB2; }
.schedule-times { display:flex; flex-direction:column; gap:12px; }
.times-header { font-weight:700; color:#6d5b58; padding:8px 0; }
.times-scroll { display:flex; flex-direction:column; gap:8px; }
.times-nav { display:flex; justify-content:center; }
.times-nav button { width:32px; height:32px; border-radius:8px; background:#fff; border:none; color:#6d5b58; }
.times-list { display:flex; flex-direction:column; gap:20px; max-height: 260px; overflow:hidden; }
.time-btn { font-family: 'Roboto', sans-serif; background:#EDEDED; border:1px solid #E3E3E3; border-radius:8px; height:49px; display:flex; align-items:center; justify-content:center; max-width: 180px; margin: 0 auto; padding:0 50px; text-align:center; font-size:20px; color:#000; box-sizing:border-box; flex: 0 0 49px; }
.time-btn.selected { background:#EAA9A9; color:#fff; border-color:#EAA9A9; }
.times-actions { margin-top:auto; display:flex; justify-content:center; }
.btn-next { font-family: 'Roboto', sans-serif; display:inline-block; text-align:center; background: var(--figma-primary-600); color:#fff; padding:12px 38px; border-radius:12px; text-decoration:none; box-shadow: var(--shadow-sm); font-size:18px; font-weight:500; margin: 6px auto 0; border: none; }
.info-actions .btn-next { margin: 0; text-align: center; }
.btn-next[aria-disabled="true"] { opacity:.5; pointer-events:none; }
.btn-next.is-active { opacity:1; }

/* Mini calendario */
#fc { --gap: 8px; }
#fc .fc-bar { display:flex; align-items:center; margin-bottom: 10px; }
#fc .title { font-family: 'Roboto', sans-serif; font-weight:700; color:#633B48; flex: 1 1 auto; }
#fc .nav { background:#fff; border:none; border-radius:0; width:42px; height:42px; line-height:40px; text-align:center; color:#633B48; font-size:18px; margin-left:8px; }
#fc .fc-grid { display:grid; grid-template-columns: repeat(7, 1fr); gap: var(--gap); }
#fc .dow { font-family: 'Roboto', sans-serif; text-align:center; font-size: 14px; color:#EAA9A9; padding:6px 0; }
#fc .day { font-family: 'Roboto', sans-serif; background: none; border: none; border-radius:999px; width:58px; height:58px; display:grid; place-items:center; margin: 0 auto; color:#294059; cursor:pointer; font-weight:400; font-size:18px; transition: all 0.2s ease; }
#fc .day.available { background: #f0f8ff; color:#294059; cursor:pointer; }
#fc .day.available:hover { background: #e6f3ff; transform: scale(1.05); }
#fc .day.disabled { background: #f5f5f5; opacity:.4; cursor:not-allowed; color:#999; }
#fc .day.disabled.past { background: #f0f0f0; opacity:.3; color:#ccc; }
#fc .day.disabled.no-availability { 
    background: #e8e8e8; 
    opacity:.5; 
    color:#888; 
    text-decoration: line-through;
    position: relative;
}
#fc .day.disabled.no-availability::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #999;
    transform: translateY(-50%);
}
#fc .day.disabled.weekend { background: #f8f8f8; opacity:.3; color:#bbb; }
#fc .day.selected { background:#EAA9A9; color:#fff; border-color:#EAA9A9; box-shadow: 0 2px 8px rgba(234, 169, 169, 0.3); }

body:has(.schedule-hero) .navbar, body:has(.schedule-hero) .alert { display:none !important; }

/* ======= PASO INFO ======= */
.info-head { margin-bottom: 18px; position:relative; }
.info-head-cobro { margin-bottom: 50px; position:relative; }
.info-sub { color:#8a7a75; font-size: 14px; margin: 0 0 10px; max-width: 760px; }
.info-badge { position:absolute; right: 12px; top: -10px; background:#fff; color:#AC8685; border:1px solid rgba(138,95,88,.34); border-radius: 999px; padding: 6px 10px; font-weight:600; box-shadow: var(--shadow-sm); }
.info-form { margin-top: 40px; }
.info-form .row { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 16px; align-items:end; }
.info-form .col { display:flex; flex-direction:column; gap:8px; }
.info-form .col-check { align-items: flex-start; }
.info-label { color:#6d5b58; font-weight: 600; font-size: 12px; }
.info-input { height: 35px; border-radius: 10px; border: 2px solid #C09A92; background:#fff; padding: 8px 12px; outline:none; }
.info-input:focus { border-color:#AC8685; box-shadow: 0 0 0 4px rgba(172,134,133,.15); }
.info-input.is-invalid { border-color: var(--figma-danger); box-shadow: 0 0 0 3px rgba(198,40,40,.12); }
.info-errors { background: #fdecea; color: #b3261e; border:1px solid #f5c2c0; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; }
.info-errors ul { margin-bottom: 0; }
.info-legal { margin: 8px 0 18px; font-size: 14px; color:#8a7a75; }
.info-check { display:flex; align-items:center; gap:8px; font-size:14px; color:#8a7a75; }
.info-check input { width: 18px; height: 18px; accent-color: var(--figma-primary); border-radius: 4px; }
.info-actions { display:flex; justify-content:flex-end; gap:45px; width:100%; }
.btn-prev { display:inline-block; background:#FBF0E7; color:#6d5b58; padding:12px 38px; border-radius:12px; text-decoration:none; box-shadow: var(--shadow-sm); font-size:18px; font-weight:500; }

/* ======= Responsive: Agenda e Info ======= */
/* Romper a una columna antes de 1280px para evitar cortes horizontales */
@media (max-width: 1279px) {
  .schedule-grid { grid-template-columns: 1fr !important; gap: 20px; }
  .schedule-section { background: none; border: none; border-radius: 12px; padding: 12px; }
  .schedule-title { display:block; font-size: 14px; font-weight: 700; color:#6d5b58; margin: 0 0 8px; }
}
@media (max-width: 992px) {
  .schedule-card { padding: 28px; }
  .schedule-grid { grid-template-columns: 1fr !important; gap: 20px; }
  .schedule-calendar { padding: 12px 20px; }
  .schedule-section { background: none; border: none; border-radius: 12px; padding: 12px; }
  .schedule-title { display:block; font-size: 14px; font-weight: 700; color:#6d5b58; margin: 0 0 8px; }
  #fc .nav { width: 36px; height: 36px; line-height: 34px; font-size: 16px; }
  #fc .day { width: 46px; height: 46px; font-size: 16px; }
  .times-list { max-height: 220px; }
  .time-btn { height: 44px; font-size: 18px; padding: 0 36px; }
  .btn-next, .btn-prev { font-size: 16px; padding: 10px 24px; }
}

@media (max-width: 600px) {
  .public-card { padding: 22px; }
  .public-title { font-size: 30px; }
  .public-subtitle { font-size: 16px; }
  .public-paragraph { font-size: 13px; }
  .public-illustration { max-width: 300px; }

  .schedule-hero { padding: 16px; background-attachment: scroll; background-position: center top; }
  .schedule-card { padding: 16px; box-sizing: border-box; margin: 0 auto; }
  .schedule-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .schedule-calendar { padding: 10px 16px; }
  .schedule-hero #fc { --gap: 6px; }
  .schedule-hero #fc .title { font-size: 16px; }
  .schedule-hero #fc .dow { font-size: 11px; }
  .schedule-hero #fc .nav { width: 20px; height: 20px; line-height: 18px; font-size: 14px; margin-left: 6px; }
  .schedule-hero #fc .nav img { width: 20px; height: 20px; }
  .schedule-hero #fc .day { width: 30px; height: 30px; font-size: 12px; }
  .times-list { max-height: 200px; }
  .time-btn { height: 40px; font-size: 15px; padding: 0 22px; }
  .times-nav button { width: 26px; height: 26px; }
  .schedule-section { background: none; border: none; border-radius: 12px; padding: 10px; }
  .schedule-title { display:block; font-size: 13px; }

  .info-form .row { grid-template-columns: 1fr; }
  .info-actions { justify-content: center; gap: 24px; }
}

/* Ultra-compact phones (~360-400px) */
@media (max-width: 400px) {
  .schedule-hero .schedule-calendar { padding: 10px 16px !important; max-width: 100%; }
  .schedule-hero #fc { --gap: 6px; }
  .schedule-hero #fc .nav { width: 20px; height: 20px; line-height: 18px; font-size: 13px; margin-left: 4px; }
  .schedule-hero #fc .title { font-size: 13px; }
  .schedule-hero #fc .dow { font-size: 10px; }
  .schedule-hero #fc .day { width: 30px; height: 30px; font-size: 12px; }
  .time-btn { height: 40px; font-size: 15px; padding: 0 20px; }
}

/* Very small width (<=360px) */
@media (max-width: 360px) {
  .schedule-hero { padding: 12px; }
  .schedule-card { padding: 12px; }
  .schedule-section { padding: 8px; }
  .schedule-calendar { padding: 8px 16px; }
  #fc { --gap: 5px; }
  .schedule-hero #fc .title { font-size: 12px; }
  .schedule-hero #fc .nav { width: 24px; height: 24px; line-height: 22px; font-size: 12px; margin-left: 4px; }
  .schedule-hero #fc .dow { font-size: 9px; }
  .schedule-hero #fc .day { width: 30px; height: 30px; font-size: 12px; }
}

/* ======= MODAL NUEVA CITA ======= */
.nueva-cita-modal {
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.nueva-cita-modal .modal-header {
  background: var(--figma-surface);
  border-bottom: 1px solid #efe7e4;
  border-radius: 12px 12px 0 0;
  padding: 20px 24px;
}

.nueva-cita-modal .modal-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--figma-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--figma-primary);
}

.nueva-cita-modal .modal-body {
  padding: 24px;
  background: var(--figma-surface);
}

.nueva-cita-modal .modal-footer {
  background: var(--figma-surface);
  border-top: 1px solid #efe7e4;
  border-radius: 0 0 12px 12px;
  padding: 16px 24px;
}

/* Inputs del modal */
.nueva-cita-input {
  height: 36px;
  border-radius: 8px;
  border: 1.6px solid #e9dcd6;
  background: #f8f9fa;
  font-size: 14px;
  transition: all 0.2s ease;
}

.nueva-cita-input:focus {
  border-color: var(--figma-secondary);
  box-shadow: 0 0 0 4px rgba(199,154,139,.18);
  background: #fff;
}

.nueva-cita-input-small {
  width: 60px;
  height: 32px;
  border-radius: 6px;
  border: 1.6px solid #e9dcd6;
  background: #f8f9fa;
  font-size: 12px;
  text-align: center;
}

.nueva-cita-select-small {
  width: 100px;
  height: 32px;
  border-radius: 6px;
  border: 1.6px solid #e9dcd6;
  background: #f8f9fa;
  font-size: 12px;
}

/* Botones de días de la semana */
.dia-semana-btn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  transition: all 0.2s ease !important;
  border: 1px solid #e9dcd6 !important;
  background: #f8f9fa !important;
  color: #6c757d !important;
}

.dia-semana-btn:hover:not(.active) {
  background: rgba(172, 134, 133, 0.1) !important;
  border-color: var(--figma-primary) !important;
  color: var(--figma-primary) !important;
  transform: scale(1.05);
}

.dia-semana-btn.active {
  background: #EAA9A9 !important;
  border-color: #EAA9A9 !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(234, 169, 169, 0.3);
}

.dia-semana-btn.active:hover {
  background: #d99a9a !important;
  border-color: #d99a9a !important;
  transform: scale(1.05);
}

/* Sección de repetición */
.repetir-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  margin-top: 8px;
}

/* Anotaciones verdes */
.anotacion-verde {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: #28a745;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: bold;
  cursor: help;
  z-index: 10;
  line-height: 1;
}

/* Botón principal */
.nueva-cita-btn {
  background: #AC8685 !important;
  border: 1px solid #AC8685 !important;
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: all 0.2s ease !important;
}

.nueva-cita-btn:hover {
  background: #6b403d !important;
  border-color: #6b403d !important;
  transform: translateY(-1px);
}

.nueva-cita-btn:active {
  transform: translateY(0);
}

/* Labels */
.nueva-cita-modal .form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--figma-text);
  margin-bottom: 6px;
}

/* Texto de ayuda */
.text-muted.small {
  font-size: 11px;
  color: #8b817d;
}

/* Enlace para quitar fecha */
#quitarFechaFin {
  font-size: 11px;
  text-decoration: none;
}

#quitarFechaFin:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .nueva-cita-modal .modal-body {
    padding: 16px;
  }
  
  .nueva-cita-modal .modal-header,
  .nueva-cita-modal .modal-footer {
    padding: 12px 16px;
  }
  
  .dia-semana-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    font-size: 10px !important;
  }
}

/* ======= CALENDARIO PRINCIPAL ======= */
.calendar-container {
  background: #f5f5f5;
  padding: 0;
}

.calendar-header {
  background: #fff;
  padding: 12px 30px 8px 30px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.calendar-title-section {
  flex: 1;
}

.calendar-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--figma-text);
  margin: 0;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: flex-end;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background: #e0e0e0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--figma-text);
  margin: 0;
}

.user-role {
  font-size: 14px;
  color: var(--figma-muted);
  margin: 0;
}

.action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.btn-nueva-cita {
  background: #AC8685 !important;
  border: 1px solid #AC8685 !important;
  color: #fff !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.btn-nueva-cita:hover {
  background: #6b403d !important;
  border-color: #6b403d !important;
  transform: translateY(-1px);
}

.btn-editar-disponibilidad {
  background: #f8f9fa !important;
  border: 1px solid #e0e0e0 !important;
  color: var(--figma-text) !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.btn-editar-disponibilidad:hover {
  background: #e9ecef !important;
  border-color: #d0d0d0 !important;
  transform: translateY(-1px);
}

.btn-formato-lista {
  background: #f8f9fa !important;
  border: 1px solid #e0e0e0 !important;
  color: var(--figma-text) !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 140px !important;
  width: 140px !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.btn-formato-lista:hover {
  background: #e9ecef !important;
  border-color: #d0d0d0 !important;
  transform: translateY(-1px);
}

.btn-formato-calendario {
  background: #f8f9fa !important;
  border: 1px solid #e0e0e0 !important;
  color: var(--figma-text) !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 140px !important;
  width: 140px !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.btn-formato-calendario:hover {
  background: #e9ecef !important;
  border-color: #d0d0d0 !important;
  transform: translateY(-1px);
}

.calendar-navigation {
  background: #fff;
  padding: 20px 30px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-box {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 6px 10px;
  min-width: 200px;
  height: 28px;
}

.search-icon {
  color: #6c757d;
  margin-right: 6px;
  font-size: 12px;
}

.search-input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-size: 14px;
}

.search-input::placeholder {
  color: #6c757d;
}

.filter-btn {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 6px 8px;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 28px;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-btn:hover {
  background: #e9ecef;
  border-color: #d0d0d0;
}

.date-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 6px 8px;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: #e9ecef;
  border-color: #d0d0d0;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.nav-today {
  background: #AC8685 !important;
  border-color: #AC8685 !important;
  color: #fff !important;
  font-weight: 500;
  min-width: 50px;
  font-size: 12px;
  padding: 6px 10px;
}

.nav-today:hover {
  background: #6b403d !important;
  border-color: #6b403d !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(172, 134, 133, 0.3);
}

.nav-today:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(172, 134, 133, 0.3);
}

.date-range {
  font-size: 13px;
  font-weight: 600;
  color: var(--figma-text);
  min-width: 180px;
  text-align: center;
}

.view-selector {
  display: flex;
  align-items: center;
}

.view-select {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 6px 10px;
  color: var(--figma-text);
  font-size: 12px;
  cursor: pointer;
  outline: none;
  height: 28px;
}

.view-select:focus {
  border-color: #AC8685;
  box-shadow: 0 0 0 2px rgba(172, 134, 133, 0.2);
}

.calendar-main {
  background: #fff;
  margin: 0 30px 30px 30px;
  overflow: hidden;
  padding: 16px;
}

#calendar {
  padding: 8px;
  background: #fff;
  min-height: 600px;
}

/* Mejorar el espaciado del calendario */
.fc-timegrid {
  font-size: 14px;
}

.fc-timegrid-slot {
  min-height: 80px;
}



.fc-timegrid-event-harness {
  max-width: calc(100% - 4px);
  min-height: 40px;
  height: auto;
  margin-bottom: 2px;
  display: flex;
  flex-direction: column;
}

/* Asegurar que los eventos no se desborden */
.fc-timegrid-event .fc-event-title {
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.4;
  font-size: 12px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  padding: 0;
  margin: 0;
  overflow: visible;
  display: block;
  width: 100%;
  flex: 1;
}

/* Estilo Google Calendar para el contenedor principal */
.fc .fc-scroller {
  overflow-y: auto;
  overflow-x: hidden;
}

.fc .fc-scroller::-webkit-scrollbar {
  width: 8px;
}

.fc .fc-scroller::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.fc .fc-scroller::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.fc .fc-scroller::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Estilos específicos de FullCalendar - Estilo Google Calendar */
.fc {
  font-family: var(--font-body);
  background: #fff;
}

/* Ocultar encabezados de días en vista mensual */
.fc-dayGridMonth-view .fc-col-header {
  display: none !important;
}

.fc-dayGridMonth-view .fc-scrollgrid-sync-table {
  margin-top: 0 !important;
}

.fc-dayGridMonth-view .fc-scrollgrid {
  border-top: none !important;
}

.fc-dayGridMonth-view .fc-scrollgrid-sync-table .fc-scrollgrid-sync-table {
  border-top: 1px solid #e0e0e0 !important;
}

/* Estilos específicos para vista mensual */
.fc-daygrid-day {
  background: #fff;
  border: 1px solid #e0e0e0;
  min-height: 120px;
}

.fc-daygrid-day:hover {
  background: #f8f9fa;
}

.fc-daygrid-day.fc-day-today {
  background: #e3f2fd;
  border-color: #1976d2;
}

.fc-daygrid-day-number {
  font-weight: 600;
  color: var(--figma-text);
  padding: 8px;
  font-size: 14px;
  text-decoration: none !important;
}

.fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
  color: #1976d2;
  font-weight: 700;
  text-decoration: none !important;
}

/* Quitar subrayado de todos los elementos en vista mensual */
.fc-daygrid-day * {
  text-decoration: none !important;
}

.fc-daygrid-day a {
  text-decoration: none !important;
}

.fc-daygrid-day .fc-daygrid-day-number {
  text-decoration: none !important;
}

.fc-daygrid-day .fc-daygrid-day-top {
  text-decoration: none !important;
}

.fc-daygrid-day .fc-daygrid-day-events {
  text-decoration: none !important;
}

.fc-daygrid-event {
  border-radius: 4px;
  border: none;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  margin: 1px 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: all 0.2s ease;
}

.fc-daygrid-event:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.16);
  transform: translateY(-1px);
}

.fc-daygrid-event-title {
  font-weight: 500;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-daygrid-more-link {
  color: #1976d2;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 3px;
  background: #e3f2fd;
  transition: all 0.2s ease;
}

.fc-daygrid-more-link:hover {
  background: #bbdefb;
  color: #0d47a1;
}

.fc-theme-standard td, .fc-theme-standard th {
  border-color: #e0e0e0;
}



.fc-col-header-cell {
  background: #f8f9fa;
  font-weight: 400;
  color: #8b817d;
  padding: 12px 8px;
  font-size: 12px;
  border-bottom: 1px solid #e0e0e0;
  text-align: center;
  line-height: 1.2;
}

.fc-col-header-cell.fc-day-today {
  background: #c79a8b;
  color: #fff;
  font-weight: 400;
}

/* Estilo para el formato de encabezado de días */
.fc-col-header-cell .fc-col-header-cell-cushion {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 8px 4px;
}

.fc-col-header-cell .fc-col-header-cell-cushion-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Día de la semana (arriba) */
.dia-semana {
  font-size: 11px;
  font-weight: 400;
  color: #8b817d;
  text-transform: capitalize;
  line-height: 1;
}

/* Número del día (abajo) */
.dia-numero {
  font-size: 16px;
  font-weight: 700;
  color: var(--figma-text);
  line-height: 1;
  text-decoration: none !important;
}

/* Estilo para el día actual */
.fc-col-header-cell.fc-day-today .dia-semana {
  color: #fff;
  opacity: 0.9;
}

.fc-col-header-cell.fc-day-today .dia-numero {
  color: #fff;
  font-weight: 700;
  text-decoration: none !important;
}

/* Quitar subrayado de todos los elementos de encabezado */
.fc-col-header-cell * {
  text-decoration: none !important;
}

.fc-col-header-cell a {
  text-decoration: none !important;
}

.fc-col-header-cell .fc-col-header-cell-cushion {
  text-decoration: none !important;
}

.fc-col-header-cell .fc-col-header-cell-cushion-inner {
  text-decoration: none !important;
}

.fc-timegrid-slot {
  height: 65px;
  border-bottom: 1px solid #f0f0f0;
}

.fc-timegrid-slot-label {
  font-size: 12px;
  color: #5f6368;
  font-weight: 400;
  padding: 0 8px;
}

.fc-timegrid-slot-label.fc-timegrid-slot-label-minor {
  color: #9aa0a6;
}

.fc-timegrid-axis {
  background: #f8f9fa;
  border-right: 1px solid #e0e0e0;
}

.fc-timegrid-body {
  background: #fff;
}


.fc-timegrid-event:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.16);
}

.fc-event-title {
  font-weight: 500;
  line-height: 1.4;
  font-size: 13px;
  word-wrap: break-word;
  white-space: normal;
  overflow: visible;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  flex: 1;
}

.fc-timegrid-event-harness {
  margin: 1px 2px;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 28px;
}

/* Estilo Google Calendar para eventos */
.google-calendar-event {
  border-left: 4px solid;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 8px;
  margin: 1px 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 28px;
  display: flex;
  align-items: center;
}

.google-calendar-event:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.16);
  transform: translateY(-1px);
}

/* Indicador de hora actual */
.fc-timegrid-now-indicator-line {
  border-color: #ea4335;
  border-width: 2px;
  z-index: 10;
}

.fc-timegrid-now-indicator-arrow {
  border-color: #ea4335;
  border-width: 2px;
}

/* Scrollbar personalizado */
.fc-scroller::-webkit-scrollbar {
  width: 8px;
}

.fc-scroller::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.fc-scroller::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.fc-scroller::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Clases específicas para tipos de eventos - Estilo Google Calendar */
.disponibilidad-completa {
  background: #EBFFEE !important;
  color: #009951 !important;
  border-left: 4px solid #4caf50 !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
}

.primera-sesion {
  background: #fce4ec !important;
  color: #880e4f !important;
  border-left: 4px solid #e91e63 !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
}

.sesion-normal {
  background: #fff3e0 !important;
  color: #e65100 !important;
  border-left: 4px solid #ff9800 !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
}

.festivo {
  background: #f5f5f5 !important;
  color: #424242 !important;
  border-left: 4px solid #9e9e9e !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
}

.all-day-event {
  background: #f5f5f5 !important;
  color: #424242 !important;
  border-left: 4px solid #9e9e9e !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
  text-align: center !important;
  padding: 8px !important;
}

/* Efectos hover para eventos */
.disponibilidad-completa:hover {
  background: #c8e6c9 !important;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3) !important;
}

.primera-sesion:hover {
  background: #f8bbd9 !important;
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3) !important;
}

.sesion-normal:hover {
  background: #ffcc80 !important;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3) !important;
}

.festivo:hover {
  background: #e0e0e0 !important;
  box-shadow: 0 2px 8px rgba(158, 158, 158, 0.3) !important;
}

/* Responsive */
@media (max-width: 1200px) {
  .calendar-controls {
    gap: 20px;
  }
  
  .action-buttons {
    gap: 8px;
  }
  
  .btn-nueva-cita,
  .btn-editar-disponibilidad,
  .btn-formato-lista {
    padding: 6px 12px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 992px) {
  .calendar-header {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  
  .calendar-navigation {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  
  .search-section {
    width: 100%;
  }
  
  .search-box {
    min-width: 250px;
  }
  
  .calendar-main {
    margin: 0 15px 15px 15px;
  }
}

@media (max-width: 768px) {
  .calendar-header {
    padding: 15px 20px;
  }
  
  .calendar-navigation {
    padding: 15px 20px;
  }
  
  .user-info {
    gap: 8px;
  }
  
  .user-avatar {
    width: 40px;
    height: 40px;
  }
  
  .user-name {
    font-size: 14px;
  }
  
  .user-role {
    font-size: 12px;
  }
  
  .action-buttons {
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .btn-nueva-cita,
  .btn-editar-disponibilidad,
  .btn-formato-lista {
    padding: 6px 10px !important;
    font-size: 12px !important;
  }
  
  .search-box {
    min-width: 200px;
  }
  
  .date-range {
    font-size: 14px;
    min-width: 150px;
  }
}

/* ======= BOTONES DE DÍAS DE LA SEMANA ======= */
/* Estilos para botones de días en modales de disponibilidad */
.dia-btn, .edit-dia-btn {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  transition: all 0.2s ease !important;
}

/* Asegurar que los botones seleccionados muestren el texto blanco */
.dia-btn.btn-primary, .edit-dia-btn.btn-primary {
  color: white !important;
  background-color: var(--figma-primary) !important;
  border-color: var(--figma-primary) !important;
}

/* Asegurar que los botones mantengan su forma circular */
.dia-btn:focus, .edit-dia-btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(172, 134, 133, 0.25) !important;
}

/* Hover effect para botones no seleccionados */
.dia-btn:hover:not(.btn-primary), .edit-dia-btn:hover:not(.btn-primary) {
  background-color: rgba(172, 134, 133, 0.1) !important;
  border-color: var(--figma-primary) !important;
  transform: scale(1.05);
}

/* Hover effect para botones seleccionados */
.dia-btn.btn-primary:hover, .edit-dia-btn.btn-primary:hover {
  background-color: var(--figma-primary-600) !important;
  border-color: var(--figma-primary-600) !important;
  transform: scale(1.05);
}

/* ======= BADGES DE DÍAS EN TABLA ======= */
/* Estilos para badges de días en la tabla de disponibilidad */
.day-badge {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  margin: 1px !important;
  flex-shrink: 0 !important;
}

/* Estilos para el panel de próxima cita */
.next-appointment-panel {
  margin: 20px 15px;
  background: transparent;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  overflow: hidden;
}

.next-appointment-header {
  background: transparent;
  padding: 10px 40px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.next-appointment-content {
  padding: 0 15px;
}

.appointment-date {
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  font-size: 14px;
  padding: 0px 30px;
}

.appointment-details {
  margin-bottom: 10px;
}

.appointment-person {
  font-size: 13px;
  color: #666;
  margin-bottom: 3px;
}

.appointment-status {
  text-align: center;
}

.appointment-status .badge {
  font-size: 11px;
  padding: 4px 8px;
}

.next-appointment-panel.no-appointments {
  border-color: #dee2e6;
}

.next-appointment-panel.no-appointments .next-appointment-header {
  background: transparent;
}

.no-appointments-text {
  text-align: center;
  color: #6c757d;
  font-style: italic;
  font-size: 13px;
}

/* Estilos para alerta de disponibilidad en modal */
.alert-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  margin-top: 0.5rem;
}

.alert-sm .fas {
  font-size: 0.75rem;
}

