﻿/* =========================
   EPT / ElProfeTino - Reservas UI
   ========================= */

:root{
  --bg: #0b0f19;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.09);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --border: rgba(255,255,255,.12);

  --green: #1bd96a;
  --yellow:#ffd34d;
  --red:   #ff4d4d;
  --gray:  #9aa4b2;
}

.ept-modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  display: none;
  z-index: 9999;
}

.ept-modal-backdrop.show{ display: block; }

.ept-modal{
  position: fixed;
  inset: 0;
  display: none; /* 👈 antes era grid siempre */
  place-items: center;
  z-index: 10000;
  pointer-events: none;
}

.ept-modal.show{
  display: grid;
}

.ept-modal .ept-panel{
  width: min(1200px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: linear-gradient(180deg, rgba(20,24,38,.98), rgba(10,12,20,.98));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 70px rgba(0,0,0,.6);
  padding: 16px;
  pointer-events: auto;
  color: var(--text);
}

.ept-modal header{
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ept-modal header .title{
  display:flex;
  flex-direction: column;
}
.ept-modal header .title h3{
  margin:0;
  font-size: 18px;
  letter-spacing: .2px;
}
.ept-modal header .title small{
  color: var(--muted);
}

.ept-close{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 12px;
  cursor:pointer;
}
.ept-close:hover{ background: rgba(255,255,255,.10); }

.ept-grid-3{
  display:grid;
  grid-template-columns: 1.1fr 1.1fr 0.8fr;
  gap: 12px;
}

@media (max-width: 980px){
  .ept-grid-3{ grid-template-columns: 1fr; }
}

.ept-col{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}

.ept-col h4{
  margin: 0 0 8px 0;
  font-size: 15px;
}
.ept-col .hint{
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}

.ept-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 980px){
  .ept-row{ grid-template-columns: 1fr; }
}

.ept-field label{
  font-size: 12px;
  color: var(--muted);
  display:block;
  margin-bottom: 4px;
}
.ept-field input, .ept-field select{
  width: 100%;
  padding: 10px 10px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
}
.ept-field input:focus, .ept-field select:focus{
  border-color: rgba(255,255,255,.28);
}

.ept-actions{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.ept-btn{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
}
.ept-btn:hover{ background: rgba(255,255,255,.10); }
.ept-btn.primary{
  background: rgba(27,217,106,.18);
  border-color: rgba(27,217,106,.45);
}
.ept-btn.primary:hover{ background: rgba(27,217,106,.26); }

.ept-btn.warn{
  background: rgba(255,211,77,.16);
  border-color: rgba(255,211,77,.42);
}
.ept-btn.danger{
  background: rgba(255,77,77,.14);
  border-color: rgba(255,77,77,.40);
}
.ept-btn.ghost{
  background: transparent;
}

.ept-step{
  display:none;
}
.ept-step.active{ display:block; }

.ept-calendar{
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
}

.ept-cal-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.ept-cal-head strong{ font-size: 14px; }
.ept-cal-head .nav{
  display:flex;
  gap: 6px;
}

.ept-cal-grid{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.ept-dow{
  font-size: 11px;
  color: var(--muted);
  text-align:center;
  padding: 4px 0;
}

.ept-day{
  padding: 10px 0;
  border-radius: 12px;
  text-align:center;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  cursor:pointer;
  user-select:none;
  font-weight: 700;
  font-size: 13px;
}
.ept-day:hover{ background: rgba(255,255,255,.09); }

.ept-day.disabled{
  opacity: .35;
  cursor: not-allowed;
}
.ept-day.selected{
  outline: 2px solid rgba(255,255,255,.35);
}

.ept-day.green{ border-color: rgba(27,217,106,.45); }
.ept-day.yellow{ border-color: rgba(255,211,77,.45); }
.ept-day.red{ border-color: rgba(255,77,77,.45); }

.ept-slots{
  margin-top: 10px;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ept-slot{
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  cursor:pointer;
  font-weight: 700;
  font-size: 12px;
}
.ept-slot.green{ border-color: rgba(27,217,106,.45); }
.ept-slot.yellow{ border-color: rgba(255,211,77,.45); }
.ept-slot.red{ border-color: rgba(255,77,77,.45); cursor:not-allowed; opacity:.35;}
.ept-slot.gray{ border-color: rgba(154,164,178,.45); opacity:.55; cursor:not-allowed; }

.ept-slot.selected{
  outline: 2px solid rgba(255,255,255,.35);
}

.ept-summary{
  font-size: 13px;
  color: var(--text);
}
.ept-summary .muted{ color: var(--muted); font-size: 12px; }
.ept-badge{
  display:inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  margin-right: 6px;
  font-size: 11px;
  color: var(--muted);
}

