/* ============================================
   Control de Horario v2.0 — Glassmorphism Design
   henry186.com
   ============================================ */

/* ---------- FONDO & ORBES ---------- */

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

:root {
  --glass-bg: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --glass-blur: blur(16px);
  --glass-inner: rgba(255, 255, 255, 0.05);
  --grad-btn: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --grad-btn-hover: linear-gradient(135deg, #7c91f0 0%, #8a5cb8 100%);
  --grad-danger: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.45);
  --accent-blue: #667eea;
  --accent-purple: #764ba2;
  --accent-pink: #f093fb;
  --radius-card: 24px;
  --radius-btn: 50px;
  --radius-input: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  height: 100%;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #282903 0%, #2d0d05 40%, #24243e 70%, #162609 100%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  
}

.foto{
padding-left: 10%;
padding-right: 20%;
border-radius: 50% ;
 box-shadow:  rgba(220, 211, 211, 0.6);
  
  margin-top:60px;
 

    }
.foto2{
  border-radius: 200% ;
}







/* Orbes de fondo */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #764ba2 0%, transparent 70%);
  top: -10%; left: -8%;
  animation: float1 20s ease-in-out infinite;
}
.orb-2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, #667eea 0%, transparent 70%);
  top: 30%; right: -10%;
  animation: float2 18s ease-in-out infinite;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #f093fb 0%, transparent 70%);
  bottom: -8%; left: 15%;
  animation: float3 22s ease-in-out infinite;
}
.orb-4 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #5425c5 0%, transparent 70%);
  top: 20%; left: 50%;
  animation: float1 15s ease-in-out infinite reverse;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -40px); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-25px, 35px); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

/* ---------- TARJETA GLASS ---------- */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.1);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  /* Aislar contexto de apilamiento para que ::before no cubra el contenido */
  isolation: isolate;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
  border-radius: var(--radius-card);
  z-index: -1;
}

/* Fallback para navegadores sin backdrop-filter */
@supports not (backdrop-filter: blur(16px)) {
  .glass-card {
    background: rgba(255, 255, 255, 0.18);
  }
}

/* ---------- PANTALLA LOGIN ---------- */

.pantalla-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.pantalla-login.oculto {
  display: none !important;
}

.card-login {
  width: 100%;
  max-width: 400px;
  padding: 40px 32px 32px;
  text-align: center;
  /* Login card un poco más visible */
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.login-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
}
.login-avatar svg {
  width: 100%;
  height: 100%;
}

.login-titulo {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.login-subtitulo {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-weight: 300;
}

.login-msg {
  font-size: 0.82rem;
  padding: 10px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  display: none;
}
.login-msg.msg-err {
  background: rgba(245, 87, 108, 0.15);
  border: 1px solid rgba(245, 87, 108, 0.3);
  color: #f5a5b5;
}
.login-msg.msg-ok {
  background: rgba(102, 210, 144, 0.15);
  border: 1px solid rgba(102, 210, 144, 0.3);
  color: #8aebb0;
}
.login-msg.msg-warn {
  background: rgba(255, 193, 87, 0.15);
  border: 1px solid rgba(255, 193, 87, 0.3);
  color: #ffc157;
}

/* ---------- INPUTS GLASS ---------- */

.input-group {
  margin-bottom: 22px;
  text-align: left;
  
}

.input-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.input-field {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  padding: 8px 0 4px;
  letter-spacing: 0.01em;
}
.input-field::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}

.input-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.08));
  margin-top: 2px;
  transition: var(--transition);
}
.input-group:focus-within .input-line {
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  box-shadow: 0 0 12px rgba(118, 75, 162, 0.3);
}

.password-wrap {
  position: relative;
}
.password-wrap .input-field {
  padding-right: 42px;
}

.btn-ojo {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  opacity: 0.6;
  transition: var(--transition);
}
.btn-ojo:hover {
  opacity: 1;
}

/* ---------- BOTONES ---------- */

.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-btn);
  background: var(--grad-btn);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.03em;
  box-shadow: 0 4px 15px rgba(118, 75, 162, 0.35);
}
.btn-gradient:hover {
  background: var(--grad-btn-hover);
  box-shadow: 0 6px 25px rgba(118, 75, 162, 0.5);
  transform: translateY(-1px);
}
.btn-gradient:active {
  transform: translateY(0);
}

.btn-gradient-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius-btn);
  background: var(--grad-btn);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.btn-gradient-sm:hover {
  background: var(--grad-btn-hover);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
}

.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline-sm:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-danger-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border: 1px solid rgba(245, 87, 108, 0.25);
  border-radius: var(--radius-btn);
  background: rgba(245, 87, 108, 0.08);
  color: #f5a5b5;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  cursor: pointer;
  transition: var(--transition);
}
.btn-danger-sm:hover {
  background: rgba(245, 87, 108, 0.18);
  border-color: rgba(245, 87, 108, 0.4);
}

.btn-link {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  cursor: pointer;
  padding: 10px 0 0;
  text-align: center;
  transition: var(--transition);
}
.btn-link span {
  color: var(--accent-blue);
  font-weight: 500;
}
.btn-link:hover span {
  color: var(--accent-pink);
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.btn-row .btn-gradient,
.btn-row .btn-gradient-sm { flex: 1; min-width: 100px; }
.btn-row .btn-outline,
.btn-row .btn-outline-sm { flex: 0.7; min-width: 80px; }

/* ---------- LOGIN LINKS ---------- */

.login-links {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- APP HEADER ---------- */

.app-contenido {
  position: relative;
  z-index: 1;
  padding: 0 16px 32px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-logo {
  width: 28px;
  height: 28px;
}
.header-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: red;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-badge {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
}
.btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: var(--transition);
}
.btn-logout:hover {
  background: rgba(245, 87, 108, 0.15);
  border-color: rgba(245, 87, 108, 0.3);
}

/* ---------- APP MSG ---------- */

.app-msg {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: slideDown 0.3s ease-out;
}
.app-msg.msg-ok {
  background: rgba(102, 210, 144, 0.15);
  border: 1px solid rgba(102, 210, 144, 0.3);
  color: #8aebb0;
}
.app-msg.msg-err {
  background: rgba(245, 87, 108, 0.15);
  border: 1px solid rgba(245, 87, 108, 0.3);
  color: #f5a5b5;
}
.app-msg.msg-warn {
  background: rgba(255, 193, 87, 0.15);
  border: 1px solid rgba(255, 193, 87, 0.3);
  color: #ffc157;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---------- APP GRID ---------- */

.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .app-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .app-grid {
    grid-template-columns: 1fr 1fr;
  }
  .app-grid .glass-card:nth-child(1) {
    grid-column: 1 / -1;
  }
}

/* ---------- CARD HEADER ---------- */

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.card-icon {
  width: 22px;
  height: 22px;
  opacity: 0.8;
}
.card-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card-body {
  position: relative;
  z-index: 1;
}

/* ---------- FORMULARIOS ---------- */

.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input-glass {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-input);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  outline: none;
  transition: var(--transition);
}
.input-glass:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 12px rgba(118, 75, 162, 0.15);
}
.input-glass::placeholder {
  color: var(--text-muted);
}

select.input-glass,
.select-glass {
  width: auto;
  min-width: 56px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 26px;
}

select.input-glass option,
.select-glass option {
  background: #1a1a2e;
  color: #fff;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.time-colon {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-muted);
  padding: 0 2px;
}

.dia-semana {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--accent-blue);
  font-weight: 500;
  margin-bottom: 8px;
}

.adv-12am {
  font-size: 0.78rem;
  color: #ffc157;
  background: rgba(255, 193, 87, 0.1);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 193, 87, 0.2);
}

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 6px;
}
.check-label input[type="checkbox"],
.check-label input[type="radio"] {
  accent-color: var(--accent-purple);
  width: 16px;
  height: 16px;
}

/* ---------- STATS ---------- */

.stat-row {
  display: flex;
  justify-content: space-around;
  gap: 8px;
}

.stat-item {
  text-align: center;
  flex: 1;
  padding: 12px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}
.stat-normal {
  border: 1px solid rgba(102, 210, 144, 0.15);
}
.stat-extra {
  border: 1px solid rgba(240, 147, 251, 0.15);
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-normal .stat-value {
  color: #8aebb0;
}
.stat-extra .stat-value {
  color: var(--accent-pink);
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- LISTA ---------- */

.lista-container {
  max-height: 260px;
  overflow-y: auto;
  margin-top: 8px;
}
.lista-container::-webkit-scrollbar {
  width: 4px;
}
.lista-container::-webkit-scrollbar-track {
  background: transparent;
}
.lista-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.lista-item {
  padding: 10px 14px;
  margin-bottom: 4px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}
.lista-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}
.lista-item.selected {
  border-color: var(--accent-blue);
  background: rgba(102, 126, 234, 0.1);
  color: var(--text-primary);
}
.lista-item.domingo {
  border-left: 3px solid #ffc157;
}
.lista-item.feriado {
  border-left: 3px solid var(--accent-pink);
}

/* ---------- MODAL ---------- */

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 16px;
}
.modal-overlay.active {
  display: flex;
}

.card-modal {
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.3s ease-out;
}

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

.btn-close {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-close:hover {
  background: rgba(245, 87, 108, 0.15);
  border-color: rgba(245, 87, 108, 0.3);
  color: #f5a5b5;
}

/* ---------- DATE INPUT FIX ---------- */

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8);
  cursor: pointer;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 480px) {
  .card-login {
    padding: 30px 20px 24px;
  }
  .login-titulo {
    font-size: 1.3rem;

    
  }
  .app-header {
    padding: 10px 14px;
    border-radius: 12px;
  }
  .header-title {
    font-size: 0.88rem;
  }
  .glass-card {
    padding: 22px 18px;
    border-radius: 18px;
  }
  .stat-value {
    font-size: 1.3rem;
  }
  .form-row {
    flex-wrap: wrap;
  }
  .select-glass {
    min-width: 48px;
    font-size: 0.8rem;
  }
}
