/* =======================
   RESET GLOBAL
   ======================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { width: 100%; max-width: 100%; overflow-x: hidden; }

body {
  font-family: 'Montserrat', sans-serif;
  color: #f5f5f5;
  background: #050505;
}

/* Botón menú móvil: oculto por defecto */
.mobile-menu-toggle { display: none; }

/* ======================================================================
   LOGIN PAGE
   ====================================================================== */
body.login-page{
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top left, #2c2c2c 0, #050505 40%, #000000 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

body.login-page .bg-overlay{
  position:absolute;
  inset:0;
  background-image:
    radial-gradient(circle at 0 0, rgba(212,175,55,0.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(255,255,255,0.06), transparent 55%);
  pointer-events:none;
}

body.login-page .login-wrapper{
  position:relative;
  z-index:1;
  width:100%;
  max-width:420px;
  padding:20px;
}

body.login-page .login-card{
  background: linear-gradient(145deg, rgba(10,10,10,0.96), rgba(20,20,20,0.98));
  border-radius:18px;
  padding:32px 30px 26px;
  box-shadow:
    0 18px 40px rgba(0,0,0,0.85),
    0 0 0 1px rgba(255,255,255,0.03),
    0 0 0 1px rgba(212,175,55,0.15) inset;
  border:1px solid rgba(212,175,55,0.45);
}

body.login-page .brand-section{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:20px;
}

body.login-page .logo{
  width:80px;
  height:auto;
  background:none;
  box-shadow:none;
  object-fit:contain;
}

body.login-page .brand-name{
  font-family:'Montserrat',sans-serif;
  font-weight:800;
  font-size:35px;
  letter-spacing:0.10em;
  text-transform:uppercase;
}

body.login-page .brand-sub{
  font-family:'Montserrat',sans-serif;
  font-weight:500;
  font-size:11.5px;
  letter-spacing:0.20em;
  text-transform:uppercase;
  color:#d0d0d0;
}

body.login-page .login-title{
  font-size:18px;
  margin-top:8px;
  margin-bottom:4px;
  font-weight:500;
}

body.login-page .login-desc{
  font-size:12px;
  color:#b5b5b5;
  margin-bottom:20px;
}

body.login-page .login-form{ margin-top:6px; }

body.login-page .input-group{ margin-bottom:16px; }

body.login-page label{
  display:block;
  font-size:13px;
  margin-bottom:5px;
  color:#e9e9e9;
  font-weight:400;
}

body.login-page input{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(130,130,130,0.7);
  background: rgba(10,10,10,0.95);
  color:#f5f5f5;
  font-size:14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

body.login-page input::placeholder{ color:#858585; }

body.login-page input:focus{
  outline:none;
  border-color:#f3c95f;
  box-shadow:0 0 0 1px rgba(243,201,95,0.55), 0 0 18px rgba(243,201,95,0.3);
  background: rgba(15,15,15,1);
}

body.login-page .btn-primary{
  width:100%;
  margin-top:6px;
  padding:12px;
  border-radius:10px;
  border:none;
  background: linear-gradient(135deg, #d4af37, #f1d270);
  color:#17130a;
  font-size:15px;
  font-weight:600;
  letter-spacing:0.08em;
  text-transform:uppercase;
  cursor:pointer;
  transition: transform .15s, box-shadow .15s, filter .15s;
  box-shadow:0 10px 22px rgba(0,0,0,0.8);
}

body.login-page .btn-primary:hover{
  filter:brightness(1.06);
  transform:translateY(-1px);
  box-shadow:0 14px 26px rgba(0,0,0,0.9);
}
body.login-page .btn-primary:active{
  transform:translateY(1px);
  box-shadow:0 5px 16px rgba(0,0,0,0.85);
}

body.login-page .footer-text{
  margin-top:18px;
  font-size:11px;
  text-align:center;
  color:#888888;
}

@media (max-width:480px){
  body.login-page .login-card{ padding:26px 20px 22px; border-radius:14px; }
  body.login-page .brand-name{ font-size:24px; letter-spacing:0.12em; }
  body.login-page .logo{ width:60px; }
}

/* ======================================================================
   DASHBOARD PAGE (base para todo el admin)
   ====================================================================== */
body.dashboard-page{ background:#050505; }

body.dashboard-page .layout{
  display:flex;
  min-height:100vh;
  width:100%;
}

/* ==== SIDEBAR ==== */
body.dashboard-page .sidebar{
  width:260px;
  min-width:260px;
  background: radial-gradient(circle at top, #171717 0%, #050505 60%);
  border-right:1px solid rgba(212,175,55,0.4);
  display:flex;
  flex-direction:column;
  padding:18px 16px;
}

body.dashboard-page .sidebar-header{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
}

body.dashboard-page .sidebar .logo{ width:60px; height:auto; }

body.dashboard-page .brand-text{ line-height:1.1; }

body.dashboard-page .brand-text .brand-name{
  font-weight:800;
  letter-spacing:0.12em;
  font-size:14px;
  text-transform:uppercase;
}

body.dashboard-page .brand-text .brand-sub{
  font-size:10px;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:#cccccc;
}

body.dashboard-page .sidebar-user{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 8px;
  margin-bottom:18px;
  border-radius:10px;
  background: rgba(255,255,255,0.02);
  border:1px solid rgba(255,255,255,0.05);
}

body.dashboard-page .user-circle{
  width:34px;
  height:34px;
  border-radius:50%;
  background: linear-gradient(135deg, #d4af37, #f1d270);
  color:#1a1305;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
}

body.dashboard-page .user-info{ display:flex; flex-direction:column; }

body.dashboard-page .user-name{ font-size:13px; font-weight:500; }

body.dashboard-page .user-role{ font-size:11px; color:#d4af37; }

body.dashboard-page .sidebar-menu{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-bottom:auto;
  margin-top:4px;
}

body.dashboard-page .menu-item{
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px 10px;
  border-radius:8px;
  text-decoration:none;
  color:#eaeaea;
  font-size:13px;
  transition: background .15s ease, transform .1s ease;
}

body.dashboard-page .menu-icon{ width:20px; text-align:center; opacity:.9; }

body.dashboard-page .menu-item:hover{
  background: rgba(212,175,55,0.12);
  transform: translateX(1px);
}

body.dashboard-page .menu-item.active{
  background: rgba(212,175,55,0.18);
  border:1px solid rgba(212,175,55,0.65);
}

body.dashboard-page .sidebar-footer{
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,0.06);
}

body.dashboard-page .logout-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  text-decoration:none;
  padding:6px 8px;
  border-radius:7px;
  border:1px solid rgba(212,175,55,0.6);
  background: linear-gradient(135deg, #d4af37, #b68b26);
  color:#16120a;
  font-weight:600;
  letter-spacing:0.08em;
  text-transform:uppercase;
}

/* ==== MAIN ==== */
body.dashboard-page .main{
  flex:1;
  width:100%;
  display:flex;
  flex-direction:column;
  background: radial-gradient(circle at top left, #202020 0%, #050505 55%, #000000 100%);
}

/* Topbar */
body.dashboard-page .topbar{
  padding:18px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
}

body.dashboard-page .topbar h1{ font-size:20px; font-weight:600; }
body.dashboard-page .topbar p{ font-size:12px; color:#cfcfcf; }

body.dashboard-page .badge-rol{
  padding:4px 10px;
  border-radius:20px;
  border:1px solid rgba(212,175,55,0.7);
  font-size:11px;
  letter-spacing:0.12em;
  text-transform:uppercase;
}

/* Contenido */
body.dashboard-page .content{ padding:20px 24px 24px; }

/* Panel base (para TODO el sistema, incluido dashboard) */
body.dashboard-page .panel{
  background: rgba(0,0,0,0.75);
  border-radius:14px;
  padding:18px 18px 16px;
  border:1px solid rgba(212,175,55,0.35);
  box-shadow:0 14px 32px rgba(0,0,0,0.9);
}

body.dashboard-page .panel h2{
  font-size:17px;
  margin-bottom:8px;
  font-weight:600;
}

body.dashboard-page .panel-text{
  font-size:13px;
  color:#d4d4d4;
  margin-bottom:6px;
}

/* Botones generales */
body.dashboard-page .btn-secondary{
  padding:8px 14px;
  border-radius:8px;
  border:1px solid rgba(200,200,200,0.5);
  background: transparent;
  color:#f5f5f5;
  font-size:12px;
  text-decoration:none;
  cursor:pointer;
}
body.dashboard-page .btn-secondary:hover{ background: rgba(255,255,255,0.06); }

/* Responsive dashboard */
@media (max-width:900px){
  body.dashboard-page .sidebar{ width:220px; min-width:220px; }
}

/* ============================================================
   MENÚ MÓVIL DESLIZABLE
   ============================================================ */
@media (max-width:640px){
  .mobile-menu-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    position:fixed;
    top:14px;
    left:14px;
    z-index:9999;
    width:40px;
    height:40px;
    border-radius:50%;
    border:1px solid rgba(212,175,55,0.7);
    background: rgba(0,0,0,0.92);
    color:#f5f5f5;
    font-size:22px;
    cursor:pointer;
    backdrop-filter: blur(4px);
  }

  body.dashboard-page .layout{ flex-direction:column; position:relative; }

  body.dashboard-page .sidebar{
    position:fixed;
    top:0;
    left:-260px;
    height:100vh;
    width:260px;
    overflow-y:auto;
    background: radial-gradient(circle at top, #171717 0%, #050505 60%);
    padding-bottom:50px;
    z-index:10000;
    transition:left .25s ease-in-out;
  }

  body.sidebar-open .sidebar{ left:0; }

  body.sidebar-open::before{
    content:"";
    position:fixed;
    inset:0;
    background: rgba(0,0,0,0.65);
    z-index:9000;
  }

  body.dashboard-page .topbar{ margin-top:60px; }
}

/* ======================================================================
   PUNTOS.PHP (AISLADO)  ✅ IMPORTANTE: usa .puntos-page en tu content
   ====================================================================== */
body.dashboard-page .content.puntos-page .cards-container{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap:20px;
  margin-top:20px;
  align-items:stretch;
}

body.dashboard-page .content.puntos-page .card-punto{
  background:#1e1e1e;
  border:1px solid #333;
  border-radius:12px;
  padding:20px;
  box-shadow:0 2px 6px rgba(0,0,0,0.4);
  transition:.25s ease-in-out;
  color:#e0e0e0;

  display:flex;
  flex-direction:column;
  height:auto;              /* ✅ no rompe layout */
  min-height:520px;
}

body.dashboard-page .content.puntos-page .card-punto:hover{
  transform: translateY(-4px);
  border-color:#c9a227;
  box-shadow:0 4px 15px rgba(201,162,39,0.25);
}

body.dashboard-page .content.puntos-page .card-punto h3{
  margin-top:0;
  font-size:1.3rem;
  margin-bottom:10px;
  color:#ffffff;
}

body.dashboard-page .content.puntos-page .card-punto p{
  margin:5px 0;
  font-size:.95rem;
}

/* Mapa mini */
body.dashboard-page .content.puntos-page .card-map{
  margin-top:12px;
  height:150px;
  border-radius:8px;
  overflow:hidden;
  border:1px solid #333;
  flex: 0 0 150px;
}

/* Foto mini */
body.dashboard-page .content.puntos-page .card-foto{ margin-top:12px; }
body.dashboard-page .content.puntos-page .card-foto img{
  width:100%;
  height:170px;
  object-fit:cover;
  border-radius:8px;
  border:1px solid #333;
  display:block;
}

/* Acciones abajo */
body.dashboard-page .content.puntos-page .card-actions{
  margin-top:auto;
  padding-top:12px;
  display:flex;
  gap:8px;
  flex-wrap:nowrap;
  justify-content:flex-end;
  align-items:center;
}
body.dashboard-page .content.puntos-page .card-actions form{ margin:0; }

/* Botones estandarizados */
body.dashboard-page .content.puntos-page .card-actions .btn-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:26px;
  min-width:60px;
  padding:0 10px;
  border-radius:6px;
  font-size:12px;
  font-weight:600;
  text-decoration:none;
  border:1px solid rgba(255,255,255,0.12);
  cursor:pointer;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
  white-space:nowrap;
}
body.dashboard-page .content.puntos-page .card-actions .btn-action:hover{
  filter:brightness(1.08);
  transform: translateY(-1px);
  box-shadow:0 8px 18px rgba(0,0,0,0.55);
}

body.dashboard-page .content.puntos-page .card-actions .btn-edit    { background: rgba(255,255,255,0.08); color:#f5f5f5; border-color: rgba(212,175,55,0.55); }
body.dashboard-page .content.puntos-page .card-actions .btn-view    { background:#d4a72c; color:#17130a; border-color: rgba(212,175,55,0.8); }
body.dashboard-page .content.puntos-page .card-actions .btn-block   { background:#f39c12; color:#fff; }
body.dashboard-page .content.puntos-page .card-actions .btn-unblock { background:#27ae60; color:#fff; }
body.dashboard-page .content.puntos-page .card-actions .btn-delete  { background:#e74c3c; color:#fff; }

/* ======================================================================
   VER_PUNTO.PHP - LAYOUT INFO + (FOTO/MAPA)
   ====================================================================== */
.volver-wrap{ text-align:left; margin:15px; }

.punto-layout{
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap:24px;
  margin-top:16px;
}

.punto-info p{ margin:6px 0; }

.punto-media{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.media-card{
  border:1px solid #333;
  border-radius:12px;
  background:#000;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.media-card h3{
  margin:10px 0 8px;
  text-align:center;
}

.ref-media{
  width:100%;
  height:360px;              /* 🔼 más alto */
  max-width:360px;           /* 🔽 menos ancho */
  margin: 0 auto 12px;       /* centra horizontal */
  overflow:hidden;
  border-radius:12px;
  background:#000;
}

.ref-media__img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position: top center;
}


/* Mapa */
.map-wrap{
  width:100%;
  height:240px;
  overflow:hidden;
  border-radius:12px;
  background:#000;
  margin:0 12px 12px;
}
#map-grande{
  width:100%;
  height:100%;
  border-radius:12px;
  overflow:hidden;
  border:1px solid #333;
  box-shadow:0 2px 8px rgba(0,0,0,0.4);
}

.muted-center{
  color:#bbb;
  text-align:center;
  padding: 10px 12px 14px;
}

@media (min-width:1024px){
  .media-card{ height:360px; }
  .ref-media, .map-wrap{ height:auto; flex:1; margin: 0 12px 12px; }
}

@media (max-width:900px){
  .punto-layout{ grid-template-columns: 1fr; }
}
/* ======================================================================
   DASHBOARD.PHP - CARDS DE RESUMEN
   ====================================================================== */

/* contenedor de cards */
body.dashboard-page .cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 18px 0 24px;
}

/* card individual */
body.dashboard-page .cards .card{
  background: rgba(0,0,0,0.75);
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 24px rgba(0,0,0,0.8);
}

/* título pequeño */
body.dashboard-page .card-label{
  font-size: 13px;
  color: #c8c8c8;
  margin-bottom: 6px;
}

/* número grande (cuando lo actives luego) */
body.dashboard-page .card-number{
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}

/* texto inferior */
body.dashboard-page .card-foot{
  font-size: 12px;
  color: #9a9a9a;
}
/* ===== Dashboard: lista sin bullets ===== */
body.dashboard-page .panel-list{
  list-style: none;        /* ❌ quita los puntos */
  padding-left: 0;
  margin-left: 0;
}

body.dashboard-page .panel-list li{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  line-height: 1.4;
}
/* ======================================================================
   FORMULARIOS (para TODO el admin: crear/editar punto, usuarios, etc.)
   ====================================================================== */
body.dashboard-page form {
  max-width: 820px;
}

body.dashboard-page label{
  display:block;
  font-size:13px;
  margin: 10px 0 6px;
  color:#eaeaea;
}

body.dashboard-page input[type="text"],
body.dashboard-page input[type="number"],
body.dashboard-page input[type="email"],
body.dashboard-page input[type="password"],
body.dashboard-page input[type="date"],
body.dashboard-page input[type="time"],
body.dashboard-page select,
body.dashboard-page textarea{
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(140,140,140,0.7);
  background: rgba(10,10,10,0.95);
  color: #f5f5f5;
  font-size: 13px;
  outline: none;
}

body.dashboard-page textarea{
  min-height: 120px;
  resize: vertical;
}

body.dashboard-page input:focus,
body.dashboard-page select:focus,
body.dashboard-page textarea:focus{
  border-color: #d4af37;
  box-shadow: 0 0 0 1px rgba(212,175,55,0.35), 0 0 10px rgba(212,175,55,0.20);
}

/* Inputs pequeños en una misma fila (lat/lng, estado, etc.) */
body.dashboard-page .form-row{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
body.dashboard-page .form-row > *{
  flex: 1;
  min-width: 220px;
}

/* Botones dentro de forms */
body.dashboard-page button,
body.dashboard-page input[type="submit"]{
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #f5f5f5;
  cursor: pointer;
}

body.dashboard-page button:hover,
body.dashboard-page input[type="submit"]:hover{
  filter: brightness(1.08);
}
/* ===== VER_PUNTO: bordes perfectos ===== */

/* El card es el que manda el borde */
.media-card{
  border-radius: 12px;
  overflow: hidden;
}

/* Quita bordes/márgenes internos que deforman el redondeo */
.ref-media,
.map-wrap{
  margin: 0 !important;          /* 🔑 quita el hueco interno */
  border-radius: 12 !important;   /* 🔑 el borde lo hace .media-card */
  overflow: hidden;
  width: 100%;
}

/* Imagen y mapa llenan el contenedor */
.ref-media__img{
  width: 100%;
  height: 100%;
  border-radius: 12 !important;
  display: block;
}

#map-grande{
  border-radius: 12 !important;
}
/* ===== VER_PUNTO: foto/mapa arriba junto a la info ===== */
.punto-layout{
  align-items: start;       /* 🔑 alinea arriba ambas columnas */
}

.punto-media{
  align-self: start;        /* 🔑 fuerza columna derecha arriba */
  margin-top: 0 !impor0tant;
}

/* Quita margen extra del título dentro del card */
.media-card h3{
  margin: 8px 0 8px !important;
}
/* ======================================================================
   USUARIOS.PHP – RESTAURAR ESTILO
   ====================================================================== */

/* Header usuarios */
body.dashboard-page .users-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

/* Botón nuevo usuario */
body.dashboard-page .users-header .btn-small{
  padding: 8px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #d4af37, #f1d270);
  border: 1px solid rgba(212,175,55,0.7);
  color: #17130a;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
}

/* Wrapper tabla */
body.dashboard-page .users-table-wrapper{
  margin-top: 10px;
  background: rgba(0,0,0,0.7);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 26px rgba(0,0,0,0.9);
  overflow-x: auto;
}

/* Tabla */
body.dashboard-page .users-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

body.dashboard-page .users-table thead{
  background: rgba(10,10,10,0.9);
}

body.dashboard-page .users-table th,
body.dashboard-page .users-table td{
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: left;
  white-space: nowrap;
}

body.dashboard-page .users-table th{
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #d4d4d4;
}

body.dashboard-page .users-table tbody tr:nth-child(even){
  background: rgba(255,255,255,0.02);
}

body.dashboard-page .users-table tbody tr:hover{
  background: rgba(212,175,55,0.08);
}

/* Acciones */
body.dashboard-page .link-accion{
  font-size: 12px;
  color: #f1d270;
  text-decoration: none;
}

body.dashboard-page .link-accion:hover{
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 720px){
  body.dashboard-page .users-header{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  body.dashboard-page .users-table th,
  body.dashboard-page .users-table td{
    font-size: 12px;
    padding: 6px 8px;
  }
}
/* ======================================================================
   PERSONAL.PHP – CARDS
   ====================================================================== */
body.dashboard-page .content.personal-page .cards-container{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap:20px;
  margin-top:20px;
}

body.dashboard-page .content.personal-page .card-personal{
  background:#1e1e1e;
  border:1px solid #333;
  border-radius:12px;
  padding:16px;
  box-shadow:0 2px 6px rgba(0,0,0,0.4);
  transition:.25s ease-in-out;

  display:flex;
  flex-direction:column;
}

body.dashboard-page .content.personal-page .card-personal:hover{
  transform: translateY(-4px);
  border-color:#c9a227;
  box-shadow:0 4px 15px rgba(201,162,39,0.25);
}

.personal-header{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:12px;
}

.personal-foto{
  width:80px;
  height:80px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid rgba(212,175,55,0.6);
  background:#000;
  flex-shrink:0;
}


.personal-nombre{
  font-size:15px;
  font-weight:700;
  color:#fff;
}

.personal-cargo{
  font-size:12px;
  color:#d4af37;
}

.personal-info p{
  font-size:13px;
  margin:6px 0;
  color:#dedede;
}

.badge-estado{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.badge-activo{
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  border: none;              /* ❌ elimina el borde gris */
  color: #0b2d17;
  font-weight: 700;
  box-shadow: none;          /* ❌ elimina cualquier sombra */
}


.badge-inactivo{
  background: rgba(231,76,60,0.18);
  border:1px solid rgba(231,76,60,0.55);
  color:#ffd0cb;
}

.card-actions{
  margin-top:auto;
  padding-top:12px;
  display:flex;
  gap:10px;
  justify-content:flex-end;
}
/* ===== PERSONAL CARDS – FOOTER ===== */
.card-footer{
  margin-top:auto;
  padding-top:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.card-footer .badge-estado{
  margin:0;
}

.card-footer .card-actions{
  display:flex;
  gap:10px;
}
/* Asegura layout vertical */
.card-personal{
  display:flex;
  flex-direction:column;
  min-height: 260px; /* ajusta si quieres más alto */
}

/* Empuja el footer abajo */
.card-footer{
  margin-top:auto;             /* 🔑 esto lo manda al fondo */
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:12px;
}

/* El badge a la izquierda */
.card-footer .badge-estado{
  display:inline-flex;
  align-items:center;
  margin:0;
}

/* Acciones a la derecha */
.card-footer .card-actions{
  margin:0;
  display:flex;
  gap:12px;
  justify-content:flex-end;
}
.punto-media .media-card{
  max-width: 420px;        /* 🔽 menos ancho */
  margin-center: auto;      /* lo pega a la derecha */
  background: linear-gradient(145deg, #0f0f0f, #1a1a1a);
}
#map-grande{
  width:100%;
  height:320px;          /* 🔥 altura panorámica */
  border-radius:12px;
}

/* El contenedor del mapa ocupa todo el ancho del card */
.map-wrap{
  width:100%;
  height:320px;
  margin: 0;
  border-radius:12px;
}
/* ============================================================
   VER_PUNTO – MAPA PANORÁMICO (SOLO EN EL CARD DEL MAPA)
   ============================================================ */
@media (min-width:1024px){
  .media-card.media-card--mapa{
    height:auto !important;    /* 🔑 quita la altura fija */
  }

  .map-wrap.map-wrap--panorama{
    height: 240px !important;  /* panorámico */
  }

  .media-card.media-card--mapa #map-grande{
    height: 240px !important;  /* panorámico */
  }
}

/* En móvil/tablet también panorámico */
@media (max-width:1023px){
  .map-wrap.map-wrap--panorama,
  .media-card.media-card--mapa #map-grande{
    height: 240px;
  }
}
/* ============================================================
   VER_PUNTO – MAPA PANORÁMICO REAL (FULL WIDTH)
   ============================================================ */
.media-card--mapa-full{
  margin-top:24px;
}

.map-wrap--full{
  width:100%;
  height:340px;
}

.map-wrap--full #map-grande{
  width:100%;
  height:340px;
  border-radius:12px;
}
/* ============================================================
   VER_PUNTO – MAPA PANORÁMICO FULL WIDTH
   ============================================================ */
.media-card--mapa-panorama{
  margin-top: 18px;
}

.map-wrap--panorama{
  width: 100%;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.map-wrap--panorama #map-grande{
  width: 100%;
  height: 320px;
  border-radius: 12px;
}
/* ============================================================
   VER_PUNTO – MAPA PANORÁMICO FULL (FUERA DEL GRID)
   ============================================================ */
.media-card--mapa-panorama-full{
  margin-top: 18px;
  height: auto !important; /* 🔑 evita el height:360px */
}

.media-card--mapa-panorama-full .map-wrap--panorama-full{
  width: 100%;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.media-card--mapa-panorama-full #map-grande{
  width: 100%;
  height: 320px;
  border-radius: 12px;
  border: 1px solid #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* En desktop, un poquito más alto */
@media (min-width:1024px){
  .media-card--mapa-panorama-full .map-wrap--panorama-full,
  .media-card--mapa-panorama-full #map-grande{
    height: 360px;
  }
}
/* ============================================================
   VER_PUNTO – FOTO FULL WIDTH EN EL CARD
   ============================================================ */

/* El contenedor de la imagen ocupa todo el card */
.media-card .ref-media{
  width: 100%;
  max-width: none;        /* 🔑 elimina límite */
  margin: 0;              /* 🔑 quita centrado */
  border-radius: 12px;
  overflow: hidden;
}

/* La imagen llena todo el ancho del contenedor */
.media-card .ref-media__img{
  width: 100%;
  height: auto;           /* mantiene proporción */
  display: block;
  object-fit: cover;
}

/* Opcional: si quieres que sea un poco más alta */
@media (min-width:1024px){
  .media-card .ref-media{
    max-height: 420px;
  }
}
/* FORZAR layout: foto izquierda / datos derecha */
.panel .perfil-container{
  display: flex !important;
  gap: 30px;
  align-items: flex-start;
}

/* Columna izquierda (foto) */
.panel .perfil-foto{
  width: 320px;        /* ajusta 260-360 si quieres */
  max-width: 320px;
  flex: 0 0 320px;     /* no crece, no se encoge */
}

/* Imagen que no se estire al 100% del panel */
.panel .perfil-foto img{
  width: 100%;
  height: 360px;       /* ajusta a tu gusto */
  object-fit: cover;
  display: block;
  border-radius: 10px;
  border: 1px solid #333;
}

/* Columna derecha (datos) */
.panel .perfil-datos{
  flex: 1 1 auto;
  min-width: 0;
}

/* Responsive */
@media (max-width: 900px){
  .panel .perfil-container{ flex-direction: column !important; }
  .panel .perfil-foto{ width: 100%; max-width: 100%; flex: 0 0 auto; }
  .panel .perfil-foto img{ height: 280px; }
}
/* Mejorar legibilidad de la ficha */
.perfil-datos {
  line-height: 1.8;
}

.perfil-datos .dato {
  margin-bottom: 10px;
}

.perfil-datos hr {
  margin: 18px 0;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.perfil-datos strong {
  display: inline-block;
  min-width: 160px; /* alinea etiquetas */
  color: #d6b25e;
}
/* Alinear perfectamente acciones del personal */
.card-footer .card-actions a{
  display:inline-flex;
  align-items:center;
  height: 22px;          /* iguala altura */
  line-height: 1;
}
.card-footer .card-actions{
  display:flex;
  align-items:center;   /* 🔑 esto alinea todo */
  gap:12px;
}
/* Alinea <a> y <button> EXACTAMENTE IGUAL */
.card-actions a,
.card-actions button{
  display:inline-flex;
  align-items:center;
  height:22px;
  line-height:1;
  padding:0;
  margin:0;
  background:transparent;
  border:0;
  font:inherit;
  cursor:pointer;
  text-decoration:none;
}

/* Ver / Editar */
.link-accion{
  font-size:12px;
  color:#f1d270;
}
.link-accion:hover{
  text-decoration:underline;
}

/* Eliminar */
.link-danger{
  color:#e74c3c;
  font-weight:600;
}
.link-danger:hover{
  color:#ff6b5f;
  text-decoration:underline;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:720px){
  .cards-container{
    grid-template-columns:1fr;
  }
}

/* ===== FOOTER CARD PERSONAL ===== */
.card-footer{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* ===== BOTÓN ESTADO ===== */
.btn-estado{
  border:none;
  padding:6px 14px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
}

/* ACTIVO */
.btn-estado.activo{
  background:#27ae60;
  color:#0b2d17;
}

/* INACTIVO */
.btn-estado.inactivo{
  background:#e74c3c;
  color:#fff;
}

/* Quitar estilos nativos del botón */
.btn-estado:focus{
  outline:none;
  box-shadow:none;
}

/* ===== ACCIONES ===== */
.card-actions{
  display:flex;
  align-items:center;
  gap:12px;
}

/* Ver / Editar */
.link-accion{
  font-size:12px;
  color:#f1d270;
  text-decoration:none;
}
.link-accion:hover{
  text-decoration:underline;
}

/* Eliminar */
.link-danger{
  background:none;
  border:none;
  color:#e74c3c;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
}
.link-danger:hover{
  color:#ff6b5f;
  text-decoration:underline;
}
/* ===== PERSONAL: footer y acciones ===== */
body.dashboard-page .content.personal-page .card-footer{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

body.dashboard-page .content.personal-page .card-actions{
  display:flex;
  align-items:center;
  gap:12px;
}

body.dashboard-page .content.personal-page .card-actions form{
  margin:0; /* evita desalineo */
}

/* ===== BOTÓN ACTIVO/INACTIVO (que NO lo pise el CSS global) ===== */
body.dashboard-page .content.personal-page .btn-estado{
  appearance:none;
  -webkit-appearance:none;

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

  padding:6px 14px !important;
  min-width:78px;
  border-radius:999px !important;

  border:0 !important;
  background:transparent !important;

  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;

  cursor:pointer;

  box-shadow:none !important;
  outline:none !important;
}

body.dashboard-page .content.personal-page .btn-estado.activo{
  background:#27ae60 !important;
  color:#0b2d17 !important;
}

body.dashboard-page .content.personal-page .btn-estado.inactivo{
  background:#e74c3c !important;
  color:#fff !important;
}

body.dashboard-page .content.personal-page .btn-estado:focus,
body.dashboard-page .content.personal-page .btn-estado:focus-visible{
  outline:none !important;
  box-shadow:none !important;
}

/* ===== LINKS Ver/Editar ===== */
body.dashboard-page .content.personal-page .link-accion{
  font-size:12px;
  color:#f1d270;
  text-decoration:none;
}
body.dashboard-page .content.personal-page .link-accion:hover{
  text-decoration:underline;
}

/* ===== ELIMINAR como link (no botón gris) ===== */
body.dashboard-page .content.personal-page button.link-danger{
  appearance:none;
  -webkit-appearance:none;

  background:transparent !important;
  border:0 !important;
  padding:0 !important;
  margin:0 !important;

  color:#e74c3c !important;
  font-size:12px;
  font-weight:600;
  cursor:pointer;

  border-radius:0 !important;
  box-shadow:none !important;
}

body.dashboard-page .content.personal-page button.link-danger:hover{
  color:#ff6b5f !important;
  text-decoration:underline;
}
.card-footer{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.card-actions{
  display:flex;
  align-items:center;
  gap:12px;
}
.card-actions form{ margin:0; }

.btn-estado{
  appearance:none;
  -webkit-appearance:none;
  border:0 !important;
  padding:6px 14px !important;
  border-radius:999px !important;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
  box-shadow:none !important;
  outline:none !important;
}
.btn-estado.activo{ background:#27ae60 !important; color:#0b2d17 !important; }
.btn-estado.inactivo{ background:#e74c3c !important; color:#fff !important; }

.link-accion{ font-size:12px; color:#f1d270; text-decoration:none; }
.link-accion:hover{ text-decoration:underline; }

button.link-danger{
  appearance:none;
  -webkit-appearance:none;
  background:transparent !important;
  border:0 !important;
  padding:0 !important;
  margin:0 !important;
  color:#e74c3c !important;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
}
button.link-danger:hover{ color:#ff6b5f !important; text-decoration:underline; }
/* ============================================================
   USUARIOS – HEADER PRO
   ============================================================ */

body.dashboard-page .users-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

body.dashboard-page .users-header-text h2{
  margin:0;
}

body.dashboard-page .users-header-text .panel-text{
  margin-top:4px;
  font-size:12px;
  color:#bdbdbd;
}

body.dashboard-page .btn-new-user{
  align-self:flex-start;     /* 🔑 baja ligeramente el botón */
  margin-top:6px;
  padding:9px 16px;
  font-weight:600;
  letter-spacing:.08em;
}
/* ============================================================
   HEADER PRO (reusable): título + subtítulo + botón
   ============================================================ */
body.dashboard-page .users-header.users-header--pro{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:16px;
}

body.dashboard-page .users-header-text h2{
  margin:0;
}

body.dashboard-page .users-header-text .panel-text{
  margin:6px 0 0;
  color:#bdbdbd;
  font-size:12px;
}

/* Botón pro (para btn-small o btn-secondary) */
body.dashboard-page .users-header.users-header--pro .btn-new{
  margin-top:6px;          /* 🔑 “aire” hacia abajo */
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 16px;
  border-radius:10px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.severidad-botones{
  display:flex;
  gap:12px;
  margin:8px 0 14px;
}

.severidad-botones input{
  display:none;
}

.severidad-botones label{
  flex:1;
  text-align:center;
  padding:10px 0;
  border-radius:10px;
  background:#1c1c1c;
  border:1px solid #444;
  cursor:pointer;
  font-weight:600;
}

.severidad-botones input:checked + label{
  background:#d4af37;
  color:#17130a;
  border-color:#d4af37;
}
/* Espacio debajo del select (Tipo) */
#formEvento select{
  margin-bottom: 10px;
}

/* El tip debajo del select */
#formEvento .mini-help{
  margin-top: 6px;
  margin-bottom: 14px; /* separa del siguiente bloque */
  line-height: 1.35;
}

/* Separación general entre labels y el siguiente control */
#formEvento label{
  margin-top: 14px;
}

/* Evita que "Severidad" quede pegado al tip */
#formEvento .severidad-botones{
  margin-top: 10px;
}
/* En móvil, un poquito más de aire */
@media (max-width: 480px){
  #formEvento .mini-help{ margin-bottom: 16px; }
  #formEvento label{ margin-top: 16px; }
}

/* Acciones rápidas guardia */
.acciones-guardia{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin:18px 0;
}

/* Botón ronda */
.btn-ronda{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
  border-radius:14px;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color:#0b2d17;
  font-size:15px;
  font-weight:700;
  text-decoration:none;
  letter-spacing:.05em;
}

/* Hover */
.btn-ronda:hover{
  filter:brightness(1.05);
}

/* Botón cerrar */
.btn-danger{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
  border-radius:12px;
  background:#e74c3c;
  color:#fff;
  text-decoration:none;
  font-weight:700;
}
/* Botón ronda */
.btn-ronda2{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
  border-radius:14px;
    background: linear-gradient(135deg, #2759ae, #0086c5);
  color:#fff;
  font-size:15px;
  font-weight:700;
  text-decoration:none;
  letter-spacing:.05em;
}

/* Hover */
.btn-ronda2:hover{
  filter:brightness(1.05);
}

/* ===== BOTÓN CERRAR TURNO (button) ===== */
button.btn-danger{
  appearance:none;
  -webkit-appearance:none;

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

  width:100%;
  padding:12px;

  border-radius:12px;
  background:#e74c3c;
  color:#ffffff;

  font-size:14px;
  font-weight:700;
  letter-spacing:.05em;

  border:none;
  cursor:pointer;
}

/* Hover */
button.btn-danger:hover{
  filter:brightness(1.05);
}

/* Quita foco feo */
button.btn-danger:focus{
  outline:none;
  box-shadow:none;
}
/* Cerrar turno rojo (forzado) */
body.dashboard-page .panel form button.btn-danger{
  appearance:none !important;
  -webkit-appearance:none !important;

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

  width:100% !important;
  padding:14px !important;

  border-radius:14px !important;
  background: linear-gradient(135deg, #e74c3c, #ff6b5f) !important;

  color:#fff !important;
  font-size:15px !important;
  font-weight:700 !important;
  letter-spacing:.06em !important;

  border:0 !important;
  cursor:pointer !important;

  box-shadow: 0 10px 22px rgba(0,0,0,0.75) !important;
}

body.dashboard-page .panel form button.btn-danger:hover{
  filter:brightness(1.06) !important;
  transform:translateY(-1px) !important;
}

body.dashboard-page .panel form button.btn-danger:active{
  transform:translateY(1px) !important;
}
/* PUNTOS: evita que los botones se salgan del card */
body.dashboard-page .content.puntos-page .card-actions{
  flex-wrap: wrap;              /* antes: nowrap */
  justify-content: flex-start;  /* opcional: para que no se peguen al borde */
  gap: 8px;
}

/* Permite que los botones se adapten */
body.dashboard-page .content.puntos-page .card-actions .btn-action{
  min-width: 0;                 /* quita el “piso” */
  flex: 1 1 auto;               /* que se acomoden */
}

/* En móvil: dos por fila (y si hay 3/4, baja a otra línea) */
@media (max-width: 520px){
  body.dashboard-page .content.puntos-page .card-actions .btn-action{
    flex: 1 1 calc(50% - 8px);
  }
}
/* Separar botones al final de los forms */
body.dashboard-page form .form-actions{
  display:flex;
  gap:12px;
  margin-top:14px;
  flex-wrap:wrap;
}

body.dashboard-page form .form-actions > *{
  flex: 0 0 auto;
}
.login-error{
  background: rgba(231,76,60,0.15);
  border: 1px solid rgba(231,76,60,0.6);
  color: #ffb3ad;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: center;
}
/* ===== APERTURA / CIERRE DE TURNO EN DOS COLUMNAS ===== */
.turno-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

/* En móvil: uno debajo del otro */
@media (max-width: 900px){
  .turno-grid{
    grid-template-columns: 1fr;
  }
}

/* Colores distintivos */
.panel-apertura{
  border-color: rgba(39,174,96,.6);
}

.panel-cierre{
  border-color: rgba(231,76,60,.6);
}

.titulo-apertura{
  color:#2ecc71;
}

.titulo-cierre{
  color:#e74c3c;
}

/* Fotos */
.foto-turno img{
  max-width: 100%;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
  margin-top: 8px;
}
/* ===== MINIATURA EN TABLA ===== */
.thumb-btn{
  appearance:none;
  border:0;
  padding:0;
  margin:0;
  background:transparent;
  cursor:pointer;
}

.thumb-img{
  width:42px;
  height:42px;
  object-fit:cover;
  border-radius:8px;
  border:1px solid rgba(212,175,55,0.35);
  box-shadow: 0 6px 14px rgba(0,0,0,0.55);
}

/* ===== MODAL IMAGEN ===== */
body.modal-open{
  overflow:hidden;
}

.img-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:20000;
}

.img-modal.is-open{
  display:block;
}

.img-modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(2px);
}

.img-modal__content{
  position:relative;
  z-index:1;
  width:min(92vw, 900px);
  margin: 6vh auto 0;
  background: rgba(0,0,0,0.92);
  border: 1px solid rgba(212,175,55,0.45);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.85);
}

.img-modal__img{
  width:100%;
  height:auto;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,0.08);
  display:block;
}

.img-modal__close{
  position:absolute;
  top:10px;
  right:12px;
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid rgba(212,175,55,0.45);
  background: rgba(0,0,0,0.7);
  color:#fff;
  font-size:22px;
  line-height: 28px;
  cursor:pointer;
}
.thumb-btn{
  appearance:none;
  border:0;
  padding:0;
  margin:0;
  background:transparent;
  cursor:pointer;
}

.thumb-img{
  width:42px;
  height:42px;
  object-fit:cover;
  border-radius:8px;
  border:1px solid rgba(212,175,55,0.35);
  box-shadow: 0 6px 14px rgba(0,0,0,0.55);
}

body.modal-open{ overflow:hidden; }

.img-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:20000;
}
.img-modal.is-open{ display:block; }

.img-modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(2px);
}

.img-modal__content{
  position:relative;
  z-index:1;
  width:min(92vw, 900px);
  margin: 6vh auto 0;
  background: rgba(0,0,0,0.92);
  border: 1px solid rgba(212,175,55,0.45);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.85);
}

.img-modal__img{
  width:100%;
  height:auto;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,0.08);
  display:block;
}

.img-modal__close{
  position:absolute;
  top:10px;
  right:12px;
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid rgba(212,175,55,0.45);
  background: rgba(0,0,0,0.7);
  color:#fff;
  font-size:22px;
  line-height: 28px;
  cursor:pointer;
}


/* =========================
   Dashboard (Guardia / Cliente) - Tarjeta centrada
   ========================= */
.guardia-center {
  width: 100%;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 14px;
}

.guardia-card {
  width: min(720px, 96vw);
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.25); /* dorado suave */
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  padding: 26px 18px;
  text-align: center;
}

.guardia-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 14px auto;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
}

.guardia-foto {
  width: 150px;
  height: 150px;
  border-radius: 999px;
  object-fit: cover;
  margin: 12px auto 14px auto;
  border: 2px solid rgba(212, 175, 55, 0.45);
  background: rgba(255, 255, 255, 0.06);
  display: block;
}

.guardia-nombre {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 28px;
  margin: 6px 0 6px 0;
  text-transform: uppercase;
}

.guardia-punto {
  font-size: 18px;
  opacity: 0.92;
  margin-top: 8px;
}

.guardia-punto strong {
  font-size: 22px;
  font-weight: 800;
}

.guardia-mini {
  opacity: 0.65;
  margin-top: 14px;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 520px) {
  .guardia-nombre { font-size: 22px; }
  .guardia-punto strong { font-size: 18px; }
  .guardia-logo { width: 110px; height: 110px; }
  .guardia-foto { width: 130px; height: 130px; }
}
/* Miniaturas */
.img-thumb {
  width: 80px;              /* tamaño miniatura */
  height: 80px;
  object-fit: cover;        /* recorta proporcional */
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #333;
  transition: transform 0.2s ease;
}

.img-thumb:hover {
  transform: scale(1.05);
}
/* ====== TABLAS: CENTRADO DE MINIATURAS ====== */

/* centra el contenido de la columna imagen */
.users-table td.img-col,
.users-table th.img-col {
  width: 120px;              /* ajusta si quieres */
  text-align: center;
}

/* centra verticalmente toda la fila */
.users-table tbody tr td {
  vertical-align: middle;
}

/* wrapper para centrar bien cualquier img */
.users-table td.img-col .img-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90px;          /* hace que quede centrada incluso si la fila es alta */
}

/* miniatura */
.users-table .img-thumb {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  display: block;
  border: 1px solid rgba(255,255,255,.15);
}

/* evita que reglas globales estiren imgs */
.users-table td img {
  width: auto;
  max-width: none;
}

/* ====== LINKS "Inicio" / "Cierre" AMARILLOS ====== */
.users-table a.link-yellow {
  color: #ffd54a;            /* amarillo */
  font-weight: 700;
  text-decoration: none;
  margin-right: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 213, 74, 0.12);
  border: 1px solid rgba(255, 213, 74, 0.35);
  display: inline-block;
}

.users-table a.link-yellow:hover {
  background: rgba(255, 213, 74, 0.22);
  border-color: rgba(255, 213, 74, 0.6);
  transform: translateY(-1px);
}


.user-circle{
  width:42px;
  height:42px;
  border-radius:50%;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

.user-circle img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.user-circle.has-photo .user-initial{
  display:none;
}

.rp-badge-ok{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  color:#0bff5e;                 /* verde fuerte */
  background:rgba(11,255,94,0.12);
  border:1px solid rgba(11,255,94,0.65);
}

.rp-badge-miss{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  color:#ff2a2a;                 /* rojo fuerte */
  background:rgba(255,42,42,0.10);
  border:1px solid rgba(255,42,42,0.65);
}

.rp-badge-ok{ box-shadow: 0 0 10px rgba(11,255,94,0.20); }
.rp-badge-miss{ box-shadow: 0 0 10px rgba(255,42,42,0.20); }

.rp-chip{
  font-size:11px;
  padding:4px 9px;
  border-radius:999px;
  font-weight:600;
  border:1px solid rgba(255,255,255,0.12);
  color:rgba(255,255,255,0.65);
  background:rgba(255,255,255,0.03);
  transition:all .2s ease;
}

/* Mes cargado */
.rp-chip.ok{
  color:#00ff66;
  background:rgba(0,255,102,0.12);
  border:1px solid rgba(0,255,102,0.55);
  box-shadow:0 0 8px rgba(0,255,102,0.15);
}

/* Mes faltante */
.rp-chip:not(.ok){
  color:#ff3b3b;
  background:rgba(255,59,59,0.08);
  border:1px solid rgba(255,59,59,0.35);
}