/* =========================================================
   JuanFoto — Citas (MÓDULO)
   Alcance: SOLO dentro de body.jp-module-citas
   Objetivo: sacar estilos inline de calendario.php sin pisar global
========================================================= */

body.jp-module-citas{
  background: #f5f5f5; /* solo citas */
}

/* Contenedor estrecho de calendario.php */
body.jp-module-citas .container-narrow{
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 14px 0;
}

/* Tarjetas */
body.jp-module-citas .calendar-card{
  border: 1px solid rgba(0,0,0,.18);
  background: #fff;
  border-radius: 14px;
}

/* Header de tarjeta (suave) */
body.jp-module-citas .calendar-card .card-header{
  background: #fafafa;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

/* Tabla calendario */
body.jp-module-citas .calendar-table{
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

body.jp-module-citas .calendar-table th,
body.jp-module-citas .calendar-table td{
  border: 1px solid rgba(0,0,0,.12);
  text-align: center;
  vertical-align: top;
  padding: 6px;
  height: 86px;
}

body.jp-module-citas .calendar-table th{
  background: #f1f2f4;
  font-weight: 800;
  font-size: 13px;
}

/* Numero de día */
body.jp-module-citas .calendar-day-number{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 10px;
  font-weight: 900;
  margin: 0 auto 6px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  color: #111;
}

/* Domingo en rojo */
body.jp-module-citas .calendar-day-weekend .calendar-day-number{
  color: #b20000;
  border-color: rgba(178,0,0,.25);
  background: rgba(178,0,0,.05);
}

/* Día con citas */
body.jp-module-citas .calendar-day-busy{
  background: #ffecec;
}

/* Punto rojo */
body.jp-module-citas .calendar-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-top: 2px;
  background: #d00000;
  box-shadow: 0 0 0 3px rgba(208,0,0,.12);
}

/* Texto “Libre” */
body.jp-module-citas .calendar-table td span[style*="font-size:0.8rem"]{
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.04);
  color: rgba(0,0,0,.65) !important;
  font-size: 12px !important;
}

/* Leyenda */
body.jp-module-citas .legend-item{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-right:15px;
  font-size: .9rem;
}
body.jp-module-citas .legend-color{
  width:14px;
  height:14px;
  border-radius:4px;
  border:1px solid rgba(0,0,0,.18);
}
body.jp-module-citas .legend-libre{ background:#fff; }
body.jp-module-citas .legend-ocupado{ background:#ffecec; }

/* Botón flotante */
body.jp-module-citas .jp-fab{
  position: fixed;
  right: 16px;
  bottom: calc(var(--jp-footer-h, 56px) + 16px);
  z-index: 3000;
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}

/* Pop-up solicitar cita */
body.jp-module-citas .jp-cita-overlay{
  position: fixed;
  inset: 0;
  z-index: 6000;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
body.jp-module-citas .jp-cita-overlay.is-open{ display:flex; }

body.jp-module-citas .jp-cita-box{
  width: min(520px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

body.jp-module-citas .jp-cita-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

body.jp-module-citas .jp-cita-title{
  font-weight: 950;
  font-size: 18px;
  margin: 0;
  color:#111;
}

body.jp-module-citas .jp-cita-close{
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 10px;
}
body.jp-module-citas .jp-cita-close:hover{
  background: rgba(0,0,0,.06);
}

body.jp-module-citas .jp-cita-sub{
  color: rgba(0,0,0,.65);
  font-size: 13px;
  margin-bottom: 12px;
}

body.jp-module-citas .jp-hr{
  border:0;
  height:1px;
  background: rgba(0,0,0,.12);
  margin: 12px 0;
}

/* Botón WhatsApp */
body.jp-module-citas .jp-btn-wa{
  display:block;
  width:100%;
  text-align:center;
  padding: 10px 12px;
  border-radius: 12px;
  background:#25D366;
  color:#111;
  font-weight: 950;
  text-decoration:none;
}
body.jp-module-citas .jp-btn-wa:hover{ filter: brightness(0.96); }

/* Inputs del popup */
body.jp-module-citas .jp-label{ font-size: 12px; font-weight: 800; margin-bottom: 4px; }
body.jp-module-citas .jp-input,
body.jp-module-citas .jp-textarea{
  width:100%;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 12px;
  padding: 10px 10px;
  outline: none;
}
body.jp-module-citas .jp-input:focus,
body.jp-module-citas .jp-textarea:focus{
  box-shadow: 0 0 0 .2rem rgba(0,0,0,.10);
}

body.jp-module-citas .jp-textarea{ resize: vertical; min-height: 90px; }
body.jp-module-citas .jp-row{ display:flex; gap: 10px; flex-wrap: wrap; }
body.jp-module-citas .jp-col{ flex: 1 1 200px; }

body.jp-module-citas .jp-btn-send{
  width:100%;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background:#111;
  color:#fff;
  border:0;
  font-weight: 950;
  cursor:pointer;
}
body.jp-module-citas .jp-btn-send:hover{ filter: brightness(1.08); }

/* Responsive */
@media (max-width: 540px){
  body.jp-module-citas .calendar-table th,
  body.jp-module-citas .calendar-table td{
    height: 74px;
    padding: 5px;
  }
  body.jp-module-citas .calendar-day-number{
    min-width: 26px;
    height: 26px;
    border-radius: 9px;
  }
}

/* =========================================================
   Centralización extraída de admin_citas.php y calendario.php
========================================================= */

body.jp-module-citas .citas-container-narrow { max-width: 1100px; margin: 0 auto; }
body.jp-module-citas .citas-card { border: 1px solid rgba(0,0,0,.12); }
body.jp-module-citas .citas-card table thead th { white-space: nowrap; }
body.jp-module-citas .citas-card .table tbody tr td { vertical-align: middle; }

body.jp-module-citas .jp-float-admin,
body.jp-module-citas .btn-float-admin {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  background: rgba(255,255,255,.78);
  color: #000;
  border: 1px solid rgba(0,0,0,.18);
  padding: 10px 12px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(0,0,0,.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

body.jp-module-citas .jp-float-admin:hover,
body.jp-module-citas .btn-float-admin:hover {
  background: rgba(255,255,255,.92) !important;
  color: #000 !important;
  text-decoration: none;
}

@media (max-width: 576px){
  body.jp-module-citas .jp-float-admin,
  body.jp-module-citas .btn-float-admin {
    right: 10px; padding: 9px 10px; font-size: 14px;
  }
}