/* Module: events */
/* === ESTILOS GENERALES === */
.event-hero{position:relative;border-radius:15px;overflow:hidden}
.overlay{z-index:1}
.text-shadow{text-shadow:2px 2px 4px rgba(0,0,0,.7);z-index:2}

.card{background:linear-gradient(135deg,#fff,#f8f9fa);border:none;transition:transform .3s,box-shadow .3s}
.card:hover{transform:translateY(-5px);box-shadow:0 10px 20px rgba(0,0,0,.1)}
.card-title{color:#2c3e50;font-size:1.5rem;font-weight:600}
.card-text{color:#7f8c8d}

.text-primary{color:#1abc9c!important}
.text-success{color:#27ae60}
.text-info{color:#3498db}
.text-warning{color:#f1c40f}
.text-secondary{color:#7f8c8d}

/* === TICKET UI === */
.ticket-card{border-left:4px solid #1abc9c;transition:border-color .3s}
.ticket-card:hover{border-left-color:#16a085}
.ticket-details{background:#fff;border-radius:8px;padding:1rem}
.ticket-quantity{border-radius:5px;padding:5px;text-align:center;border-color:#ddd}
.ticket-controls{gap:10px}

/* === OPCIONES ESPECIALES (otra caja usada en algunas pantallas) === */
.ticket-card .special-options,
.opciones-especiales,
#special-options{
  background:#f8fbfd;border:1.5px solid #b3e9e2;border-radius:12px;
  padding:20px 18px 10px;margin-top:18px;margin-bottom:18px;
  box-shadow:0 2px 14px #bae8e633;transition:box-shadow .2s;
}
.ticket-card .special-options:hover,
.opciones-especiales:hover,
#special-options:hover{box-shadow:0 8px 24px #a0e6ee40}
.ticket-card .special-options legend,
.opciones-especiales legend,
#special-options legend{
  font-size:1.14rem;font-weight:700;color:#267c6e;margin-bottom:12px;
  letter-spacing:.5px;text-shadow:0 1px 0 #d8fff1;
}
.ticket-card .special-options label,
.opciones-especiales label,
#special-options label{
  display:flex;align-items:center;gap:10px;margin-bottom:16px;
  background:#fff;padding:10px 12px;border-radius:7px;
  box-shadow:0 1px 7px #c9e8e955;cursor:pointer;
  transition:background .2s,box-shadow .2s;border:1px solid #ebf4fa;
}
.ticket-card .special-options input[type="checkbox"],
.opciones-especiales input[type="checkbox"],
#special-options input[type="checkbox"]{
  width:20px;height:20px;accent-color:#36bfa6;margin-right:12px;flex-shrink:0;
}
.ticket-card .special-options input[type="number"],
.ticket-card .special-options input[type="time"],
.opciones-especiales input[type="number"],
.opciones-especiales input[type="time"],
#special-options input[type="number"],
#special-options input[type="time"]{
  width:70px;padding:4px 8px;border-radius:6px;border:1px solid #dde4e3;
  font-size:1rem;background:#f8fdfc;margin-left:8px;
}
.ticket-card .special-options input[type="checkbox"]:checked + span,
.opciones-especiales input[type="checkbox"]:checked + span,
#special-options input[type="checkbox"]:checked + span{
  color:#1d9d70;font-weight:600;text-shadow:0 1px 0 #dafbe8;
}

/* === CAJA COMPACTA DE OPCIONES ESPECIALES (versión final unificada) === */
.eh-ticket-specials{
  font-size:13px;background:#f9fcfd;border:1px solid #d3f0f2;border-radius:8px;
  padding:8px 12px;margin-top:15px;box-shadow:0 2px 14px #97e7e780;
}
.eh-ticket-specials h6{
  font-size:1rem;margin-bottom:6px;color:#1aa7a1;font-weight:700;
}
.eh-ticket-specials .row.g-2{
  display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;margin:0;
}
.eh-ticket-specials .col-12{
  display:flex;align-items:center;gap:6px;height:auto;min-width:auto;padding:0;margin:0;
}
.eh-ticket-specials .form-check{ /* ← corregido el selector: lleva punto al principio */
  display:flex;align-items:center;gap:6px;margin:0;min-width:120px;
  padding:6px 8px;border:1px solid #ebf4fa;border-radius:6px;background:#fff;
  box-shadow:0 1px 8px #e0f1f171;
}
.eh-ticket-specials .form-check-input[type="checkbox"]{
  width:16px;height:16px;accent-color:#36bfa6;margin-right:6px;flex-shrink:0;
}
.eh-ticket-specials .form-check-label{
  font-size:.9rem;line-height:1.1;color:#15706d;font-weight:500;display:flex;gap:4px;margin:0;
}
.eh-ticket-specials .form-check-label i{font-size:1rem}
.eh-ticket-specials input[type="number"],
.eh-ticket-specials input[type="time"]{
  width:48px;font-size:.85rem;padding:2px 4px;border-radius:7px;border:1px solid #c7e4e1;
  background:#f8fdfc;margin:0 0 0 6px;
}
.eh-ticket-specials input[type="number"]:disabled,
.eh-ticket-specials input[type="time"]:disabled{
  background:#f5f5f5;color:#bbb;border-style:dashed;opacity:.5;
}
.eh-ticket-specials .mt-1{display:flex;align-items:center;gap:4px;margin:0 0 0 6px}
.eh-ticket-specials .mt-1 span{font-size:.88rem;margin:0}
.eh-ticket-specials .me-2,.eh-ticket-specials .ms-2{margin-right:10px!important;margin-left:10px!important}
.eh-ticket-specials .form-control{height:28px;font-size:13px;padding:2px 6px;border-radius:5px;display:inline-block}
.eh-ticket-specials .pack-qty,
.eh-ticket-specials .beforehour-time,
.eh-ticket-specials .drink-qty-refresco,
.eh-ticket-specials .drink-qty-coctel{width:50px;margin-left:5px}
.eh-ticket-specials .form-check-input[type="checkbox"]:checked{box-shadow:0 0 0 2px #36bfa62e;border-color:#1ca084}
.eh-ticket-specials .form-check-input[type="checkbox"]:checked ~ .form-check-label{color:#1ca084;font-weight:700}

/* === BOTONES === */
.btn-circle{width:30px;height:30px;padding:0;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700}
.btn-outline-primary{border-color:#1abc9c;color:#1abc9c}
.btn-outline-primary:hover{background-color:#1abc9c;color:#fff}
.btn-outline-secondary{border-color:#3498db;color:#3498db}
.btn-outline-secondary:hover{background-color:#3498db;color:#fff}
.btn-primary{background:linear-gradient(90deg,#1abc9c,#16a085);border:none}
.btn-primary:hover{background:linear-gradient(90deg,#16a085,#138d75)}

/* Botón de icono sin borde ni ring */
.btn-icon{padding:.25rem;border:0;background:transparent;line-height:1;display:inline-flex;align-items:center;justify-content:center;color:#6c757d}
.btn-icon:hover{color:var(--eh-accent,#900999);background:rgba(13,110,253,.08);border-radius:6px}
.btn-icon:active{transform:translateY(1px)}
.btn-icon:focus{box-shadow:none;outline:none}
.btn-icon:focus-visible{outline:2px solid var(--eh-accent,#0d6efd);outline-offset:2px;border-radius:4px}

/* === ALERTAS Y SUGERENCIAS === */
.alert-warning{background-color:#fff3cd;border-color:#ffeeba}
.suggested-tickets .btn{font-size:.9rem;padding:5px 10px}
#preview-event-btn{background-color:#ffc107;color:#212529}
#preview-event-btn:hover{background-color:#e0a800}

/* === RESPONSIVE === */
@media (max-width:768px){
  .event-hero{height:200px}
  .display-4{font-size:2rem}
  .col-md-8,.col-md-6,.col-md-4,.col-md-3,.col-md-2,.ticket-row .col-md-4,.ticket-row .col-12{flex:0 0 100%;max-width:100%}
  .ticket-item{margin-bottom:15px}
  .card-body{padding:1rem}
}
@media (max-width:750px){
  .eh-ticket-specials .row.g-2{flex-direction:column;gap:10px}
  .eh-ticket-specials .col-12{min-width:0;width:100%;height:auto}
}
@media (max-width:650px){
  .eh-ticket-specials{padding:6px 8px}
  .eh-ticket-specials .form-check{padding:3px 4px}
  .eh-ticket-specials .form-check-label{font-size:.8rem}
  .eh-ticket-specials input[type="number"],.eh-ticket-specials input[type="time"]{width:40px;font-size:.8rem}
}

/* Contenedor de acciones: botones en línea */
.eh-event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;          /* separación entre botones */
}

/* Móviles: uno debajo del otro si quieres */
@media (max-width: 575.98px) {
    .eh-event-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ============================================
   ACCIONES FORMULARIO EVENTO (BORRADOR / PUBLICAR)
   ============================================ */

.eh-event-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 16px;
}

/* Base común para ambos botones */
.eh-event-actions .btn {
  flex: 1 1 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

/* Botón "Guardar borrador" – look neutro tipo chip suave */
.eh-btn-draft {
  background: #f1f5f9;
  color: #475569;
  border: 1px dashed #cbd5e1;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.eh-btn-draft:hover {
  background: #e5edf7;
  color: #0f172a;
  border-style: solid;
  border-color: #c4d3e5;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

/* Botón "Publicar / actualizar" – mismo rollo que .btn-submit */
.eh-btn-publish {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 12px 36px rgba(99, 102, 241, 0.45);
}

.eh-btn-publish:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(99, 102, 241, 0.55);
}

.eh-btn-publish:active {
  transform: translateY(-1px);
}

/* ============================================
   IMAGEN DESTACADA – PREVIEW EN FORMULARIO
   ============================================ */

.eh-banner-field {
  margin-top: 4px;
}

.eh-banner-preview-wrapper {
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  padding: 2px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.eh-banner-preview-img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
}

.eh-banner-preview-placeholder {
  height: 180px;
  border-radius: 16px;
  background: radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.6), rgba(15, 23, 42, 1));
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  text-align: center;
  padding: 10px;
}

.eh-banner-preview-placeholder i {
  font-size: 1.4rem;
  opacity: 0.85;
}

/* ============================================
   HERO CABECERA FORMULARIO EVENTO (WP-ADMIN)
   ============================================ */

.eh-event-form-hero {
  position: relative;
  border-radius: 24px;
  margin-bottom: 24px;
  padding: 22px 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

/* Cuando hay imagen, la usamos de fondo */
.eh-event-form-hero.has-banner {
  background-size: cover;
  background-position: center;
}

/* Overlay oscuro para que siempre se lea bien el texto */
.eh-event-form-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.4) 0%,
    rgba(15, 23, 42, 0.75) 60%,
    rgba(15, 23, 42, 0.95) 100%
  );
}

.eh-event-form-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 120px;
}

.eh-event-form-hero__kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.85;
  margin-bottom: 4px;
}

.eh-event-form-hero__title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

.eh-event-form-hero__meta {
  margin-top: 6px;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 600px) {
  .eh-event-form-hero {
    border-radius: 18px;
    padding: 18px 16px;
  }
  .eh-event-form-hero__title {
    font-size: 1.4rem;
  }
}
