/* ============================
   RESET / BASE
   ============================ */
* { box-sizing: border-box; }
html,body {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(180deg, #efe6f6 0%, #e6deef 50%, #eddff6 100%);
  color: #4a2b57;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* ============================
   CONTENEDOR PRINCIPAL (FORMULARIOS)
   ============================ */
.container {
  max-width: 520px;
  margin: 44px auto;
  background: linear-gradient(180deg,#ffffff 0%, #fbf7ff 100%);
  padding: 28px;
  border-radius: 14px;
  border: 2px solid rgba(109,76,133,0.14);
  box-shadow: 0 10px 30px rgba(76,45,102,0.12);
}

/* ============================
   TITULOS
   ============================ */
h2 {
  color: #5e3470;            
  text-align: center;
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.2px;
  font-size: 22px;
}

/* TITULO DEL PANEL */
.panel-box h2 {
  color: #5e3470;
  text-align: center;
  margin-bottom: 18px;
  font-size: 22px;
  font-weight: 800;
}

/* ============================
   CAMPOS DE TEXTO
   ============================ */
label {
  display: block;
  margin-top: 12px;
  font-weight: 700;
  color: #5e3470;
  font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border: 1px solid rgba(109,76,133,0.22);
  border-radius: 10px;
  font-size: 14px;
  color: #4a2b57;
  background: #fffafc;
  transition: box-shadow .18s ease, transform .12s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #6D4C85;
  box-shadow: 0 6px 20px rgba(109,76,133,0.12);
  transform: translateY(-1px);
}

/* Campo solo lectura */
.readonly-field {
  background: #f6f0fa;
  color: #5e3470;
}

/* ============================
   IMÁGENES
   ============================ */
.img-row {
  display:flex;
  justify-content:center;
  gap:12px;
  margin:18px 0;
}
.img-row img {
  width:165px;height:160px;object-fit:cover;border-radius:8px;border:2px solid #6D4C85;
}

/* ============================
   BOTONES
   ============================ */
.btns {
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:18px;
  align-items:center;
}

.btn-primary, .btn-secondary {
  display:inline-block;
  padding:12px 18px;
  border-radius:10px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
  border:none;
}

/* Botón morado */
.btn-primary {
  background: linear-gradient(180deg,#6D4C85 0%, #5b3a73 100%);
  color: #fff;
  box-shadow: 0 8px 0 rgba(88,60,110,0.16);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(88,60,110,0.12); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 4px 0 rgba(88,60,110,0.12); }

/* Botón lila */
.btn-secondary {
  background: linear-gradient(180deg,#d6c2e9 0%, #cbb1e5 100%);
  color: #2b1b35;
  padding:10px 14px;
}

/* Botón cerrar sesión */
.btn-logout {
  display:block;
  text-align:center;
  margin-top:22px;
  padding:12px 18px;
  background: linear-gradient(180deg,#6D4C85 0%, #5b3a73 100%);
  color:#fff;
  border-radius:10px;
  font-weight:800;
  text-decoration:none;
  box-shadow:0 8px 16px rgba(76,45,102,0.18);
  transition:transform .12s ease;
}
.btn-logout:hover { transform: translateY(-2px); }

/* ============================
   MENSAJES
   ============================ */
.msg { margin-top:10px; font-size:14px; color:#b00020; }

/* ============================
   TABLAS PARA EL PANEL
   ============================ */
.panel-box {
  max-width: 520px;
  margin: 36px auto;
  padding: 0 12px;
}

table {
  width:100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 12px;
  overflow:hidden;
  border: 2px solid rgba(109,76,133,0.16);
  box-shadow: 0 8px 20px rgba(76,45,102,0.06);
}

th, td {
  padding:14px 12px;
  border-bottom:1px solid rgba(109,76,133,0.08);
  font-size:15px;
  color:#4a2b57;
  text-align:left;
}

th {
  background: linear-gradient(180deg,#bfa0d9 0%, #bda3d4 100%);
  color: #2f2036;
  font-weight:800;
}

/* hover */
tr:hover td { background: rgba(109,76,133,0.03); }

/* ============================
   TARJETAS ESTADISTICAS
   ============================ */
.stats-box {
  display:flex; gap:12px; margin-bottom:18px; align-items:stretch;
}
stat-card {
  flex:1;
  background:#fff;
  border-radius:10px;
  padding:14px;
  border:2px solid rgba(109,76,133,0.12);
  text-align:center;
}
.stat-card h3 { margin:0; color:#5e3470; font-size:13px; font-weight:700; }
.stat-number { color:#5e3470; font-weight:900; font-size:22px; margin-top:8px; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 760px) {
  .container { margin:18px; padding:18px; }
  .img-row img { width:120px;height:110px; }
  .stats-box { flex-direction:column; }
}

/* --- Restaurar separación amplia del panel --- */
.panel-box {
    padding: 25px;
    margin-top: 40px;
    border-radius: 15px;
}
.panel-box table tr { height: 55px; }
.panel-box table th,
.panel-box table td { padding: 14px 20px; }
.panel-box table { border-spacing: 0px 12px; }
.panel-box table tr { background: #ffffff10; border-radius: 10px; }
.panel-box table th { width: 160px; }

/* ============================
   LOGIN BLOQUEADO
   ============================ */
.btn-logout-small {
    display:block;
    width:100%;
    text-align:center;
    margin-top:16px;
    padding:10px 14px;
    background: linear-gradient(180deg,#d6c2e9 0%, #cbb1e5 100%);
    color:#2b1b35;
    border-radius:10px;
    font-weight:800;
    text-decoration:none;
    box-shadow:0 6px 12px rgba(76,45,102,0.12);
    transition:transform .12s ease;
}
.btn-logout-small:hover { transform: translateY(-2px); }

/* ============================
   BOTONES DEL PANEL
   ============================ */
.panel-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
}
.btn-back {
    display: inline-block;
    padding: 8px 14px;
    width: auto;
    background: linear-gradient(180deg,#d6c2e9 0%, #cbb1e5 100%);
    color:#2b1b35;
    border-radius:10px;
    font-weight:800;
    text-decoration:none;
    text-align:center;
    box-shadow:0 6px 12px rgba(76,45,102,0.12);
    transition:transform .12s ease;
    white-space: nowrap;
}
.btn-back:hover { transform: translateY(-2px); }
.panel-buttons .btn-logout { flex: 1; margin-top: 0; }



/* ==========================================================
   🔥 NUEVAS CLASES PARA LOS CAMPOS ESPECIALES DEL PANEL
   ========================================================== */

/* Usuario y contraseña → rojo oscuro */
th.p-user,
th.p-pass {
    background: #9d3643 !important;
    color: #fff !important;
}

/* Comprobante de pago → verde */
th.p-comprob {
    background: #41c873 !important;
    color: #fff !important;
}
/* ============================
   LOGO EN PANEL
   ============================ */
.panel-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.panel-logo img {
    max-width: 160px;
    height: auto;
    display: block;
}
.btn-danger {
    background-color: #e74c3c;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    margin-top: 20px;
}

.btn-danger:hover {
    background-color: #c0392b;
}
