:root {
  --verde: #3B8E7D;
  --verde-dark: #2F3A38;
  --verde-light: #e8f5f2;
  --gris: #f5f5f7;
  --border: #e0e6ed;
  --texto: #3C3C43;
  --texto-light: #6b7a8d;
  --sombra: 0 4px 20px rgba(0,0,0,0.08);
  --rojo: #e74c3c;
}


.panel-login-wrap {
  min-height: 60vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 90px 20px;
}

.panel-login-card {
  background: #fff;

  border-radius: 20px;

  padding: 2.5rem;

  width: 100%;
  max-width: 380px;

  box-shadow: var(--sombra);

  text-align: center;
}


.panel-login-card .login-icon {
  width: 64px;
  height: 64px;

  margin: 0 auto 1rem;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 18px;

  background: var(--verde-light);

  box-shadow:
    0 10px 25px rgba(59, 142, 125, .12),
    inset 0 1px 0 rgba(255, 255, 255, .9);

  font-size: 0;
}

.medical-cross {
  position: relative;

  width: 30px;
  height: 30px;

  display: block;

  background: transparent;
}


.medical-cross::before {
  content: "";

  position: absolute;

  width: 10px;
  height: 30px;

  top: 0;
  left: 50%;

  transform: translateX(-50%);

  background: var(--verde);

  border-radius: 3px;
}


.medical-cross::after {
  content: "";

  position: absolute;

  width: 30px;
  height: 10px;

  top: 50%;
  left: 0;

  transform: translateY(-50%);

  background: var(--verde);

  border-radius: 3px;
}


.panel-login-card h2 {
  color: var(--verde);

  font-size: 1.4rem;

  margin-bottom: .3rem;
}

.panel-login-card p {
  color: var(--texto-light);

  font-size: .9rem;

  margin-bottom: 1.5rem;
}


.panel-input {
  width: 100%;

  padding: 12px 14px;

  border: 1.5px solid var(--border);

  border-radius: 10px;

  font-family: inherit;

  font-size: .95rem;

  margin-bottom: 12px;

  transition: border-color .2s;
}

.panel-input:focus {
  outline: none;

  border-color: var(--verde);

  box-shadow: 0 0 0 3px rgba(59,142,125,.1);
}


.panel-btn {
  width: 100%;

  padding: 13px;

  background: var(--verde);

  color: #fff;

  border: none;

  border-radius: 12px;

  font-family: inherit;

  font-size: 1rem;

  font-weight: 700;

  cursor: pointer;

  transition: background .2s;
}

.panel-btn:hover {
  background: #327a6b;
}

.panel-wrap {
  max-width: 700px;

  margin: 40px auto 80px;

  padding: 0 16px;

  display: none;
}

.panel-header {
  background: var(--verde);

  border-radius: 18px;

  padding: 24px;

  color: #fff;

  margin-bottom: 20px;

  display: flex;
  align-items: center;

  gap: 16px;

  flex-wrap: wrap;
}

.panel-avatar {
  width: 56px;
  height: 56px;

  border-radius: 50%;

  background: rgba(255,255,255,.2);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.4rem;

  font-weight: 800;

  flex-shrink: 0;
}

.panel-header h2 {
  font-size: 1.2rem;

  margin-bottom: 2px;
}

.panel-header p {
  font-size: .85rem;

  opacity: .8;
}

.panel-header-actions {
  margin-left: auto;
}


.btn-salir {
  background: rgba(255,255,255,.2);

  color: #fff;

  border: none;

  border-radius: 8px;

  padding: .5rem 1rem;

  font-family: inherit;

  font-size: .85rem;

  cursor: pointer;
}

.btn-salir:hover {
  background: rgba(255,255,255,.3);
}

.panel-tabs {
  display: flex;

  margin-bottom: 20px;

  border-bottom: 2px solid var(--border);

  overflow-x: auto;
}

.panel-tab {
  padding: 10px 18px;

  border: none;

  background: none;

  font-family: inherit;

  font-size: .9rem;

  font-weight: 700;

  color: #888;

  cursor: pointer;

  border-bottom: 3px solid transparent;

  margin-bottom: -2px;

  transition: all .2s;

  white-space: nowrap;
}

.panel-tab:hover {
  color: var(--verde);
}

.panel-tab.active {
  color: var(--verde);

  border-bottom-color: var(--verde);
}

.p-page {
  display: none;
}

.p-page.active {
  display: block;
}


.p-card {
  background: #fff;

  border-radius: 16px;

  padding: 20px;

  box-shadow: var(--sombra);

  margin-bottom: 16px;
}

.p-card-title {
  font-size: .75rem;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: .8px;

  color: var(--verde);

  margin-bottom: 16px;
}

.turno-proximo {
  background: var(--verde);

  border-radius: 14px;

  padding: 20px;

  color: #fff;

  margin-bottom: 10px;

  display: flex;
  align-items: center;

  gap: 16px;

  flex-wrap: wrap;
}

.tp-icon {
  font-size: 1.8rem;

  flex-shrink: 0;
}

.tp-tipo {
  font-size: .72rem;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: .8px;

  opacity: .75;

  margin-bottom: 2px;
}

.tp-fecha {
  font-size: .88rem;

  opacity: .85;

  margin-bottom: 2px;
}

.tp-hora {
  font-size: 1.3rem;

  font-weight: 800;

  margin-bottom: 2px;
}

.tp-desc {
  font-size: .82rem;

  opacity: .8;

  margin-bottom: 2px;
}

.tp-os {
  font-size: .78rem;

  opacity: .7;
}

.btn-cancelar-turno {
  background: rgba(255,255,255,.15);

  color: #fff;

  border: 1.5px solid rgba(255,255,255,.35);

  border-radius: 8px;

  padding: .4rem .85rem;

  font-family: inherit;

  font-size: .78rem;

  font-weight: 700;

  cursor: pointer;

  transition: background .2s;

  white-space: nowrap;

  margin-top: 6px;
}

.btn-cancelar-turno:hover {
  background: rgba(231,76,60,.6);

  border-color: transparent;
}

.turno-card {
  border-left: 4px solid var(--verde);

  padding: 12px 16px;

  border-radius: 0 12px 12px 0;

  background: var(--verde-light);

  margin-bottom: 8px;
}

.turno-card.cancelado {
  border-left-color: var(--rojo);

  background: #fdeaea;
}

.turno-card.sesion-card {
  border-left-color: #5ba8d4;

  background: #eaf4fb;
}

.tc-tipo {
  font-size: .7rem;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: .6px;

  color: #5ba8d4;

  margin-bottom: 2px;
}

.tc-fecha {
  font-size: .82rem;

  color: var(--texto-light);

  margin-bottom: 2px;
}

.tc-hora {
  font-size: .95rem;

  font-weight: 800;

  color: var(--verde-dark);
}

.turno-card.cancelado .tc-hora {
  color: var(--rojo);
}

.tc-desc {
  font-size: .8rem;

  color: #666;

  margin-top: 3px;
}

.tc-os {
  font-size: .75rem;

  color: #999;

  margin-top: 2px;
}

.badge {
  display: inline-block;

  padding: .18rem .6rem;

  border-radius: 20px;

  font-size: .7rem;

  font-weight: 700;

  margin-top: 4px;
}

.badge-verde {
  background: var(--verde-light);

  color: var(--verde);

  border: 1px solid rgba(59,142,125,.2);
}

.badge-rojo {
  background: #fdeaea;

  color: var(--rojo);
}

.badge-gris {
  background: #f0f0f0;

  color: #888;
}

.badge-azul {
  background: #eaf4fb;

  color: #3a85b3;

  border: 1px solid rgba(90,168,212,.2);
}

.sesiones-header {
  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-bottom: 16px;

  flex-wrap: wrap;

  gap: 8px;
}

.sesiones-progress {
  display: flex;

  align-items: center;

  gap: 10px;
}

.progress-bar-wrap {
  flex: 1;

  min-width: 120px;

  height: 8px;

  background: #e0e6ed;

  border-radius: 99px;

  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;

  background: var(--verde);

  border-radius: 99px;

  transition: width .4s ease;
}

.progress-label {
  font-size: .82rem;

  font-weight: 700;

  color: var(--verde);

  white-space: nowrap;
}


.sesion-item {
  display: flex;

  align-items: flex-start;

  gap: 14px;

  padding: 16px 0;

  border-bottom: 1px solid var(--border);
}

.sesion-item:last-child {
  border-bottom: none;
}

.sesion-num-badge {
  width: 34px;
  height: 34px;

  border-radius: 50%;

  display: flex;

  align-items: center;
  justify-content: center;

  font-size: .82rem;

  font-weight: 800;

  flex-shrink: 0;

  margin-top: 2px;
}

.sesion-num-badge.completada {
  background: var(--verde);

  color: #fff;
}

.sesion-num-badge.pendiente {
  background: #f0f0f0;

  color: #aaa;

  border: 2px dashed #ddd;
}

.sesion-num-badge.proxima {
  background: var(--verde-light);

  color: var(--verde);

  border: 2px solid var(--verde);
}

.sesion-body {
  flex: 1;
}

.ses-header-row {
  display: flex;

  align-items: center;

  gap: 8px;

  flex-wrap: wrap;

  margin-bottom: 4px;
}

.ses-titulo {
  font-weight: 800;

  color: var(--verde-dark);

  font-size: .95rem;
}

.sesion-estado {
  font-size: .7rem;

  font-weight: 700;

  padding: .15rem .55rem;

  border-radius: 10px;
}

.sesion-estado.completada {
  background: var(--verde-light);

  color: var(--verde);
}

.sesion-estado.pendiente {
  background: #f0f0f0;

  color: #aaa;
}

.sesion-estado.proxima {
  background: #fff3cd;

  color: #856404;
}

.ses-turno-box {
  display: flex;

  align-items: center;

  gap: 8px;

  background: var(--gris);

  border-radius: 8px;

  padding: 8px 12px;

  margin-top: 8px;

  margin-bottom: 4px;

  flex-wrap: wrap;
}

.ses-turno-box .st-icon {
  font-size: 1rem;
}

.ses-turno-box .st-info {
  font-size: .82rem;

  color: var(--verde-dark);
}

.ses-turno-box .st-hora {
  font-weight: 800;

  color: var(--verde);

  font-size: .88rem;
}

.ses-evol {
  font-size: .85rem;

  color: #555;

  background: #fffbf0;

  border-left: 3px solid #f0c040;

  border-radius: 0 8px 8px 0;

  padding: 8px 12px;

  margin-top: 8px;
}

.ses-evol-label {
  font-size: .7rem;

  font-weight: 800;

  color: #b8860b;

  text-transform: uppercase;

  letter-spacing: .5px;

  margin-bottom: 3px;
}

.ses-sin-turno {
  font-size: .78rem;

  color: #bbb;

  margin-top: 6px;

  font-style: italic;
}

.info-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 14px;
}

.info-item span {
  font-size: .72rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: .5px;

  color: var(--texto-light);
}

.info-item p {
  margin-top: 3px;

  font-size: .92rem;

  font-weight: 600;

  color: var(--verde-dark);
}

.vacio {
  text-align: center;

  padding: 30px;

  color: #bbb;

  font-size: .9rem;
}

.vacio .vacio-icon {
  font-size: 2.5rem;

  margin-bottom: 8px;
}


.modal-overlay-p {
  position: fixed;

  inset: 0;

  background: rgba(0,0,0,.45);

  display: flex;

  align-items: center;

  justify-content: center;

  z-index: 9999;

  padding: 1rem;
}

.modal-box-p {
  background: #fff;

  border-radius: 18px;

  padding: 2rem;

  max-width: 360px;

  width: 100%;

  text-align: center;

  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.modal-box-p h3 {
  font-size: 1.1rem;

  font-weight: 800;

  color: #1a1a2e;

  margin-bottom: .5rem;
}

.modal-box-p p {
  color: #666;

  font-size: .9rem;
}

.mactions {
  display: flex;

  gap: .75rem;

  justify-content: center;

  margin-top: 1.5rem;
}

.mbtn {
  padding: .65rem 1.25rem;

  border: none;

  border-radius: 10px;

  font-family: inherit;

  font-size: .9rem;

  font-weight: 700;

  cursor: pointer;
}

.mbtn-primary {
  background: var(--verde);

  color: #fff;
}

.mbtn-secondary {
  background: #f0f0f0;

  color: #333;
}


@media (max-width: 480px) {

  .info-grid {
    grid-template-columns: 1fr;
  }

  .turno-proximo {
    flex-direction: column;

    align-items: flex-start;
  }

  .panel-login-card {
    padding: 2rem 1.5rem;
  }

  .panel-login-wrap {
    padding: 30px 16px;
  }

  .panel-header {
    padding: 20px;
  }

}