/* ======================================================================
   Eventos · alquipistas (módulo nuevo)
   ====================================================================== */



/* Grid de tarjetas --------------------------------------------------- */
.evt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
  padding: 10px 0;
}
.evt-card {
  cursor: pointer;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex;
  flex-direction: column;
}
.evt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
.evt-card-img {
  width: 100%;
  aspect-ratio: 1 / 1.414;          /* proporción A4 vertical */
  background: #f4f4f4 center / contain no-repeat;  /* imagen entera, nunca recortada */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 44px;
}
.evt-card-name {
  padding: 12px 14px;
  font-weight: 600;
  font-size: 15px;
  color: #222;
  text-align: center;
}

/* Modal -------------------------------------------------------------- */
.evt-modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.evt-modal-bg.open { display: flex; }
.evt-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 720px;
  width: 100%;
  max-height: 80vh;             /* deja aire al footer fijo */
  overflow-y: auto;
  position: relative;
}
.evt-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(255, 255, 255, .9);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  color: #444;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}
.evt-modal-img {
  width: 100%;
  max-height: 38vh;            /* moderada: deja sitio a meta + descripción + botón */
  object-fit: contain;
  background: #f4f4f4;
}
@media (max-width: 600px) {
  .evt-modal-img { max-height: 30vh; }
}
.evt-modal-body { padding: 22px; }
.evt-modal-body h2 { margin: 0 0 10px; font-size: 22px; color: #006699; }
.evt-modal-meta { color: #666; font-size: 14px; margin-bottom: 14px; line-height: 1.7; }
.evt-modal-desc { color: #333; line-height: 1.6; margin-bottom: 18px; }
.evt-modal-btn {
  display: inline-block;
  background: #0e415b;       /* mismo color que btn-default del proyecto */
  color: #fff;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.evt-modal-btn:hover { background: #56bff4; color: #fff; }
.evt-modal-btn.disabled { background: #ccc; cursor: not-allowed; }

.evt-badge {
  display: inline-block;
  background: #f0f0f0;
  color: #444;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-right: 6px;
}
.evt-badge.cli-dep { background: #006699; color: #fff; }
.evt-badge.cli-cj  { background: #7b1fa2; color: #fff; }

/* Detalle / formulario ---------------------------------------------- */
.evt-detalle img.evt-main {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;          /* en el detalle, cartel A4 al completo */
  border-radius: 8px;
  background: #f4f4f4;
  display: block;
}
.evt-descripcion {
  color: #333;
  line-height: 1.6;
  margin: 0 0 18px;
}
.evt-info {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}
.evt-info p { margin: 0 0 6px; }
.evt-form {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 20px;
}
.evt-form h2 { font-size: 20px; margin: 0 0 14px; }
.evt-form .form-group { margin-bottom: 14px; }
.evt-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.evt-form .req { color: #c00; }
.evt-form .form-control {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}
.evt-form textarea.form-control { min-height: 90px; }
.evt-form .btn-primary {
  background: #006699;
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}
.evt-form .btn-primary:hover { background: #00547a; }
.evt-form .nota {
  font-size: 12px;
  color: #888;
  margin-top: 14px;
}
.evt-honeypot {
  position: absolute;
  left: -9999px;
}

.evt-alert {
  padding: 14px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.evt-alert.info    { background: #cfe2ff; border: 1px solid #9ec5fe; color: #084298; }
.evt-alert.warn    { background: #fff3cd; border: 1px solid #ffecb5; color: #664d03; }
.evt-alert.danger  { background: #f8d7da; border: 1px solid #f5c2c7; color: #842029; }
.evt-alert ul { margin: 6px 0 0 18px; }

/* Mis inscripciones ------------------------------------------------- */
.evt-mis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.evt-mis-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  display: flex;
  flex-direction: column;
}
.evt-mis-img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  background: #f4f4f4;
}
.evt-mis-body { padding: 14px; }
.evt-mis-body h3 { font-size: 17px; margin: 0 0 8px; color: #006699; }
.evt-mis-body p  { margin: 4px 0; font-size: 14px; }
.evt-mis-persona { color: #555; font-style: italic; }
.evt-estado {
  display: inline-block;
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.evt-motivo { background: #fff3cd; padding: 8px; border-radius: 4px; font-size: 13px; }

/* Pago: tarjetas de método ----------------------------------------- */
.evt-pago-metodos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 14px;
}
.evt-pago-card {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  padding: 22px;
  text-align: center;
}
.evt-pago-icon { font-size: 42px; color: #006699; margin-bottom: 10px; }
.evt-pago-card h3 { margin: 0 0 6px; }
.evt-pago-card p  { color: #666; margin: 0 0 14px; font-size: 14px; }

/* Selector de categoría --------------------------------------------- */
.evt-categoria-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s, background .15s;
}
.evt-categoria-opt:hover { border-color: #006699; background: #f6fbfd; }
.evt-categoria-opt.disabled { opacity: .55; cursor: not-allowed; }
.evt-categoria-opt input[type="radio"] { margin: 0; }
.evt-cat-nombre  { flex: 1; font-weight: 600; }
.evt-cat-precio  { color: #006699; font-weight: 600; min-width: 70px; text-align: right; }
.evt-cat-plazas  { color: #888; font-size: 12px; min-width: 80px; text-align: right; }
@media (max-width: 480px) {
  .evt-categoria-opt { flex-wrap: wrap; }
  .evt-cat-plazas { width: 100%; text-align: left; }
}

/* OK page ----------------------------------------------------------- */
.evt-ok           { text-align: center; max-width: 700px; margin: 0 auto; padding: 30px 16px; }
.evt-ok-icon      { font-size: 64px; color: #28a745; margin-bottom: 16px; }
.evt-ok h1        { margin: 0 0 12px; }
.evt-ok .titulo   { font-size: 22px; font-weight: 600; color: #006699; margin-bottom: 24px; }
.evt-ok .siguiente {
  background: #fff3cd;
  border: 1px solid #ffecb5;
  color: #664d03;
  padding: 18px;
  border-radius: 8px;
  text-align: left;
  margin-bottom: 24px;
}
.evt-ok .btn-volver {
  background: #0e415b;          /* alineado con btn-default */
  color: #fff;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
}
.evt-ok .btn-volver:hover { background: #56bff4; color: #fff; }

/* Responsive --------------------------------------------------------- */
@media (max-width: 600px) {
  .evt-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .evt-card-name { font-size: 14px; padding: 10px; }
  .evt-modal { border-radius: 0; max-height: 75vh; }
  .evt-modal-body { padding: 16px; }
  .evt-modal-body h2 { font-size: 19px; }
}
