:root{
  --bg:#f4f6f9;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --primary:#0d6efd;
}

body{
  background:var(--bg);
  color:var(--text);
}

.navbar-brand{
  font-weight:800;
  letter-spacing:.2px;
}

.hero{
  background:linear-gradient(135deg,#0d6efd 0%,#5b21b6 100%);
  color:white;
  border-radius:24px;
  padding:32px;
}

.card{
  border:0;
  border-radius:18px;
  box-shadow:0 8px 28px rgba(15,23,42,.07);
}

.event-card{
  transition:.18s ease;
}

.event-card:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 32px rgba(15,23,42,.11);
}

.media-card img,
.media-card video{
  width:100%;
  height:230px;
  object-fit:cover;
  border-radius:14px;
  background:#111827;
}

.message-card{
  min-height:180px;
  background:linear-gradient(135deg,#fff7ed,#fef3c7);
  border-radius:16px;
  padding:22px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.drop-zone{
  border:2px dashed #9ca3af;
  border-radius:18px;
  padding:28px;
  text-align:center;
  background:#fff;
  cursor:pointer;
}

.drop-zone.dragover{
  border-color:#0d6efd;
  background:#eff6ff;
}

.badge-soft{
  background:#eef2ff;
  color:#3730a3;
}

.code-box{
  padding:12px 14px;
  border:1px solid #dbe2ea;
  border-radius:12px;
  background:#f8fafc;
  overflow-wrap:anywhere;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.88rem;
}

.environment-option{
  border:1px solid #dbe2ea;
  border-radius:14px;
  padding:14px;
  background:#fff;
  cursor:pointer;
  min-height:100%;
}

.qr-frame{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:20px;
  padding:20px;
}

.qr-frame canvas,
.qr-frame img{
  max-width:100%;
  height:auto!important;
  margin:0 auto;
}

/* Pantalla pública */
.public-event-page{
  min-height:100vh;
  background:
    radial-gradient(circle at top left, rgba(13,110,253,.08), transparent 34%),
    #f4f6f9;
}

.public-container{
  min-height:100vh;
  display:flex;
  align-items:center;
}

.event-icon{
  width:74px;
  height:74px;
  margin:0 auto;
  border-radius:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:34px;
  background:#fff;
  box-shadow:0 10px 30px rgba(15,23,42,.08);
}

.guest-upload-card{
  border-radius:24px;
}

.guest-drop-zone{
  min-height:210px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  border:2px dashed #9aa5b5;
  background:#fff;
  transition:.18s ease;
}

.guest-drop-zone:hover,
.guest-drop-zone.dragover{
  border-color:#0d6efd;
  background:#f0f6ff;
}

.upload-icons{
  font-size:42px;
  line-height:1;
}

#fileList:empty{
  display:none;
}

@media(max-width:576px){
  .hero{
    padding:22px;
    border-radius:18px;
  }

  .media-card img,
  .media-card video{
    height:190px;
  }

  .public-container{
    align-items:flex-start;
    padding-top:28px!important;
  }

  .guest-upload-card{
    border-radius:20px;
  }

  .guest-drop-zone{
    min-height:185px;
    padding:20px 14px;
  }
}


/* --------------------------------------------------------------------------
   V1.4 - Visualizador en vivo
   -------------------------------------------------------------------------- */
.live-viewer-shell{
  width:100%;
}

.live-viewer-toolbar,
.live-viewer-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.live-viewer-stage{
  position:relative;
  width:100%;
  min-height:560px;
  height:calc(100vh - 190px);
  max-height:900px;
  overflow:hidden;
  border-radius:24px;
  background:#0b0f19;
  box-shadow:0 12px 34px rgba(15,23,42,.16);
}

.live-item,
.live-empty-state{
  position:absolute;
  inset:0;
}

.live-empty-state{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:32px;
  text-align:center;
  background:#fff;
}

.live-photo,
.live-video{
  display:flex;
  align-items:center;
  justify-content:center;
  background:#05070a;
}

.live-photo img,
.live-video video{
  width:100%;
  height:100%;
  object-fit:contain;
  background:#05070a;
}

.live-caption{
  position:absolute;
  left:24px;
  right:24px;
  bottom:24px;
  z-index:3;
  max-width:900px;
  margin:0 auto;
  padding:14px 18px;
  border-radius:16px;
  background:rgba(0,0,0,.72);
  color:#fff;
  font-size:clamp(1rem,2vw,1.35rem);
  line-height:1.4;
  text-align:center;
  backdrop-filter:blur(8px);
}

.live-message{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:36px;
  background:
    radial-gradient(circle at top left, rgba(13,110,253,.18), transparent 40%),
    linear-gradient(135deg,#111827,#1f2937);
}

.live-message-card{
  width:min(900px, 92%);
  padding:clamp(28px,5vw,64px);
  border-radius:30px;
  background:#fff;
  text-align:center;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
}

.live-message-icon{
  font-size:clamp(44px,7vw,80px);
  margin-bottom:20px;
}

.live-message-text{
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-size:clamp(1.5rem,4vw,3.4rem);
  line-height:1.25;
  font-weight:700;
  color:#111827;
}

.live-viewer-shell:fullscreen{
  background:#0b0f19;
  padding:18px;
}

.live-viewer-shell:fullscreen .live-viewer-toolbar{
  color:#fff;
}

.live-viewer-shell:fullscreen .live-viewer-toolbar .text-muted{
  color:rgba(255,255,255,.65)!important;
}

.live-viewer-shell:fullscreen .live-viewer-stage{
  height:calc(100vh - 115px);
  max-height:none;
  border-radius:18px;
}

.live-viewer-shell:fullscreen .live-viewer-footer{
  display:none;
}

@media(max-width:768px){
  .live-viewer-toolbar,
  .live-viewer-footer{
    align-items:flex-start;
    flex-direction:column;
  }

  .live-viewer-stage{
    min-height:430px;
    height:68vh;
    max-height:680px;
    border-radius:18px;
  }

  .live-caption{
    left:12px;
    right:12px;
    bottom:12px;
    padding:10px 12px;
  }

  .live-message{
    padding:18px;
  }

  .live-message-card{
    width:100%;
    border-radius:22px;
  }

  .live-viewer-footer .text-end{
    text-align:left!important;
  }
}


/* --------------------------------------------------------------------------
   V1.8.1 - Modal de agradecimiento al enviar recuerdo
   -------------------------------------------------------------------------- */
.thank-you-modal{
  border:0;
  border-radius:26px;
  overflow:hidden;
}

.thank-you-icon{
  width:82px;
  height:82px;
  margin:0 auto;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#198754;
  color:#fff;
  font-size:42px;
  font-weight:800;
  line-height:1;
  box-shadow:0 12px 30px rgba(25,135,84,.22);
}

#modalGracias .modal-dialog{
  max-width:520px;
}

@media(max-width:576px){
  #modalGracias .modal-dialog{
    margin:1rem;
  }

  .thank-you-icon{
    width:72px;
    height:72px;
    font-size:36px;
  }
}


/* --------------------------------------------------------------------------
   V1.9 - Identidad de empresa y pie de página
   -------------------------------------------------------------------------- */
.navbar-company-logo{
  width:auto;
  height:34px;
  max-width:120px;
  object-fit:contain;
}

.company-logo-preview{
  min-width:120px;
  text-align:center;
}

.company-logo-preview img{
  max-width:160px;
  max-height:80px;
  object-fit:contain;
}

.company-footer{
  border-top:1px solid #e5e7eb;
  background:#fff;
  color:#1f2937;
}

.company-footer-logo{
  display:block;
  width:auto;
  max-width:170px;
  max-height:76px;
  object-fit:contain;
  margin:0 auto;
}

.company-footer-placeholder{
  min-width:130px;
  padding:12px 16px;
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#f8fafc;
  font-weight:700;
  text-align:center;
}

.company-footer-data{
  display:flex;
  flex-wrap:wrap;
  gap:6px 18px;
}

.company-footer-data a{
  color:inherit;
  text-decoration:none;
}

.company-footer-data a:hover{
  text-decoration:underline;
}

@media(max-width:767px){
  .company-footer-data{
    justify-content:center;
  }

  .company-footer{
    text-align:center;
  }

  .navbar-company-logo{
    height:30px;
    max-width:90px;
  }
}


/* ==========================================================================\n   V1.9.2 - Diseño responsivo global\n   ========================================================================== */
html,body{max-width:100%;overflow-x:hidden;}
body{min-height:100vh;}
img,video,canvas,svg{max-width:100%;}
img,video{height:auto;}
main.container,main.container-fluid{min-width:0;}
.card,.modal-content,.dropdown-menu,.table-responsive,.input-group,.form-control,.form-select{min-width:0;}
.text-break,.code-box,.form-text,.alert,.card p,.card div{overflow-wrap:anywhere;word-break:break-word;}

.app-navbar{z-index:1035;box-shadow:0 2px 12px rgba(15,23,42,.04);}
.navbar-brand{min-width:0;max-width:calc(100% - 70px);}
.navbar-brand-text{max-width:240px;}
.app-nav-link{border-radius:10px;padding:.55rem .75rem!important;}
.app-nav-link:hover,.app-nav-link:focus{background:#f1f5f9;}

.card{overflow:hidden;}
.row>[class*="col-"]{min-width:0;}
.d-flex.flex-wrap>.btn,.d-flex.flex-wrap>a.btn{max-width:100%;}

.form-control,.form-select,.input-group-text,.btn{min-height:42px;}
textarea.form-control{min-height:90px;}
input[type="file"].form-control{min-height:auto;}
.form-check{min-width:0;}.form-check-label{overflow-wrap:anywhere;}

.table-responsive{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;}
.table{margin-bottom:0;}.table th,.table td{vertical-align:middle;}.table .btn{white-space:nowrap;}

.app-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;}
.app-actions .btn{flex:0 0 auto;}

.gallery-grid,.media-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem;}
.gallery-card img,.gallery-card video{width:100%;max-height:360px;object-fit:cover;}

.modal-dialog{max-width:min(96vw,760px);margin-left:auto;margin-right:auto;}
.modal-body img,.modal-body video{max-width:100%;max-height:72vh;object-fit:contain;}

.live-viewer-responsive{width:100%;max-width:100vw;overflow:hidden;}
.live-viewer-stage,.live-viewer-media{max-width:100%;}
.live-viewer-stage img,.live-viewer-stage video{width:100%;max-width:100%;max-height:calc(100vh - 180px);object-fit:contain;}
.live-viewer-message{max-width:min(900px,94vw);margin-inline:auto;padding:clamp(1rem,3vw,2rem);}
.live-viewer-controls{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center;}

.qr-box,.qr-card{max-width:100%;}
.qr-box canvas,.qr-box img,#qrcode canvas,#qrcode img{max-width:100%!important;height:auto!important;}
.company-logo-preview{max-width:100%;}.company-logo-preview img{max-width:min(180px,100%);}
.company-footer-data{min-width:0;}.badge{white-space:normal;text-align:left;}
.event-upload-form{width:100%;}

@media(min-width:992px){.w-lg-auto{width:auto!important;}}

@media(max-width:991.98px){
  .app-navbar .navbar-collapse{max-height:calc(100vh - 90px);overflow-y:auto;padding-bottom:.75rem;}
  .app-navbar .navbar-nav{align-items:stretch!important;}
  .app-nav-link{width:100%;padding:.7rem .8rem!important;}
  .navbar-brand-text{max-width:52vw;}
  .dropdown-menu{position:static!important;transform:none!important;margin-top:.35rem;width:100%;}
  .row.g-4{--bs-gutter-y:1rem;}
  .card{border-radius:16px;}
}

@media(max-width:767.98px){
  body{font-size:.96rem;}
  main.container,.container{--bs-gutter-x:1rem;}
  h1,.h1{font-size:clamp(1.65rem,7vw,2.2rem);} h2,.h2{font-size:clamp(1.35rem,6vw,1.8rem);} h3,.h3{font-size:clamp(1.18rem,5vw,1.5rem);}
  .card{padding:1rem!important;}
  .app-actions,.d-flex.flex-wrap.gap-2,.d-flex.flex-wrap.gap-3{width:100%;}
  .app-actions .btn,.d-flex.flex-wrap.gap-2>.btn,.d-flex.flex-wrap.gap-2>a.btn,.d-flex.flex-wrap.gap-3>.btn,.d-flex.flex-wrap.gap-3>a.btn{flex:1 1 100%;width:100%;}
  .btn-group{display:flex;flex-wrap:wrap;width:100%;}.btn-group>.btn{flex:1 1 auto;}
  .input-group{flex-wrap:wrap;}.input-group>.form-control,.input-group>.form-select{flex:1 1 0%;min-width:120px;}.input-group>.input-group-text{flex:0 0 auto;}
  .input-group[style*="max-width:260px"]{max-width:100%!important;}
  .table-responsive{border:1px solid #e5e7eb;border-radius:14px;}
  .table{min-width:720px;}.table th,.table td{padding:.65rem .7rem;font-size:.9rem;}
  .gallery-grid,.media-grid{grid-template-columns:1fr;}.gallery-card img,.gallery-card video{max-height:300px;}
  .modal-dialog{width:auto;margin:.75rem;}.modal-content{border-radius:18px;}.modal-body{padding:1rem;}#modalGracias .modal-body{padding:1.5rem!important;}
  .live-viewer-stage{min-height:calc(100vh - 220px);}.live-viewer-stage img,.live-viewer-stage video{max-height:calc(100vh - 240px);}.live-viewer-controls .btn{flex:1 1 140px;}
  .company-footer-logo{max-width:140px;max-height:64px;}.company-footer-data{flex-direction:column;align-items:center;gap:.35rem;}.company-footer .row{text-align:center;}.company-footer-placeholder{margin-inline:auto;}
  .code-box{font-size:.82rem;}
}

@media(max-width:575.98px){
  .navbar-company-logo{height:28px;max-width:72px;}.navbar-brand-text{max-width:48vw;font-size:1rem;}.navbar-toggler{padding:.35rem .55rem;}
  .btn{white-space:normal;}.form-control,.form-select{font-size:16px;}.card{border-radius:14px;}.table{min-width:640px;}
  .live-viewer-message{font-size:clamp(1.15rem,6vw,1.7rem);}.thank-you-icon{width:64px;height:64px;font-size:32px;}#modalGracias .btn{width:100%;}
  .event-upload-form .btn,.event-upload-form input[type="file"]{width:100%;}
}

@media(min-width:1400px){.container{max-width:1320px;}.gallery-grid,.media-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));}}


/* --------------------------------------------------------------------------
   V1.10.1 - Asignación de Operadores desde Crear evento
   -------------------------------------------------------------------------- */
.operator-assignment-create{
  background:#f8fafc;
}

.operator-create-list{
  display:grid;
  grid-template-columns:1fr;
  gap:.55rem;
}

.operator-create-option{
  display:flex;
  gap:.75rem;
  align-items:flex-start;
  width:100%;
  padding:.75rem;
  border:1px solid #dbe3ec;
  border-radius:12px;
  background:#fff;
  cursor:pointer;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.operator-create-option:hover{
  border-color:#86b7fe;
  background:#fbfdff;
}

.operator-create-option:has(input:checked){
  border-color:#0d6efd;
  background:#f0f6ff;
  box-shadow:0 0 0 2px rgba(13,110,253,.08);
}

.operator-create-option:has(input:disabled){
  opacity:.65;
  cursor:not-allowed;
}

.min-w-0{
  min-width:0;
}

@media (min-width:576px) and (max-width:991.98px){
  .operator-create-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:575.98px){
  .operator-create-option{
    padding:.7rem;
  }
}


/* --------------------------------------------------------------------------
   V1.10.2 - Marca de agua en visualizador
   -------------------------------------------------------------------------- */
.live-watermark{
  position:absolute;
  right:22px;
  bottom:22px;
  z-index:4;
  pointer-events:none;
  user-select:none;
  display:flex;
  align-items:center;
  justify-content:center;
  max-width:min(18vw, 180px);
  max-height:min(12vh, 110px);
  padding:10px 14px;
  border-radius:18px;
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(3px);
}

.live-watermark img{
  display:block;
  width:auto;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  opacity:.16;
  filter:grayscale(100%) contrast(115%);
}

.live-empty-state,
.live-photo,
.live-video,
.live-message{
  z-index:1;
}

@media(max-width:991.98px){
  .live-watermark{
    right:18px;
    bottom:18px;
    max-width:min(22vw, 150px);
    max-height:min(10vh, 90px);
    padding:8px 12px;
  }
}

@media(max-width:575.98px){
  .live-watermark{
    right:12px;
    bottom:12px;
    max-width:min(34vw, 110px);
    max-height:58px;
    padding:6px 8px;
    border-radius:14px;
  }

  .live-watermark img{
    opacity:.14;
  }
}


/* --------------------------------------------------------------------------
   V1.11 - Recuperación de contraseña
   -------------------------------------------------------------------------- */
#correo .input-group{
  max-width:100%;
}

@media(max-width:575.98px){
  #correo .app-actions .btn{
    width:100%;
  }
}


/* ==========================================================================
   V1.12 - Menú y secciones reorganizadas
   ========================================================================== */

.app-navbar .app-nav-link.active{
  color:#0d6efd;
  background:#eef5ff;
  font-weight:700;
}

.app-menu-dropdown{
  min-width:235px;
  padding:.5rem;
  border:1px solid #e5e7eb;
  border-radius:14px;
  box-shadow:0 16px 38px rgba(15,23,42,.12);
}

.app-menu-dropdown .dropdown-item{
  border-radius:9px;
  padding:.58rem .7rem;
  white-space:normal;
}

.app-menu-dropdown .dropdown-item:hover,
.app-menu-dropdown .dropdown-item:focus{
  background:#f1f5f9;
}

.app-menu-section-label{
  padding:.4rem .7rem .3rem;
  font-size:.68rem;
  letter-spacing:.08em;
  font-weight:800;
  color:#94a3b8;
}

.app-user-name{
  max-width:150px;
  vertical-align:middle;
}

.page-section-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
}

.section-jump-nav{
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
  padding:.65rem;
  border:1px solid #e2e8f0;
  border-radius:16px;
  background:#fff;
  box-shadow:0 6px 20px rgba(15,23,42,.04);
}

.section-jump-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:.45rem .8rem;
  border-radius:10px;
  color:#334155;
  text-decoration:none;
  font-size:.92rem;
  font-weight:600;
}

.section-jump-link:hover,
.section-jump-link:focus{
  color:#0d6efd;
  background:#eef5ff;
}

.app-section-anchor{
  scroll-margin-top:95px;
}

.dashboard-quick-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
}

.dashboard-quick-card{
  display:flex;
  align-items:center;
  gap:.9rem;
  min-width:0;
  padding:1rem;
  border:1px solid #e2e8f0;
  border-radius:16px;
  background:#fff;
  color:#1f2937;
  text-decoration:none;
  box-shadow:0 6px 20px rgba(15,23,42,.04);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.dashboard-quick-card:hover{
  color:#1f2937;
  transform:translateY(-2px);
  border-color:#bfdbfe;
  box-shadow:0 10px 26px rgba(15,23,42,.08);
}

.dashboard-quick-card > span:last-child{
  min-width:0;
}

.dashboard-quick-card strong,
.dashboard-quick-card small{
  display:block;
}

.dashboard-quick-card small{
  margin-top:.15rem;
  color:#64748b;
  overflow-wrap:anywhere;
}

.dashboard-quick-icon{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:12px;
  background:#eef5ff;
  color:#0d6efd;
  font-size:1.2rem;
  font-weight:800;
}

@media(max-width:991.98px){
  .app-menu-dropdown{
    min-width:0;
    width:100%;
    margin:.25rem 0 .5rem;
    border:0;
    border-left:3px solid #e2e8f0;
    border-radius:0;
    box-shadow:none;
    background:#f8fafc;
  }

  .app-user-menu{
    margin-top:.35rem;
  }

  .app-user-name{
    max-width:70vw;
  }

  .dashboard-quick-actions{
    grid-template-columns:1fr;
  }
}

@media(max-width:575.98px){
  .page-section-header{
    display:block;
  }

  .section-jump-nav{
    display:grid;
    grid-template-columns:1fr;
    gap:.35rem;
    padding:.5rem;
  }

  .section-jump-link{
    justify-content:flex-start;
    width:100%;
  }

  .dashboard-quick-card{
    padding:.85rem;
  }
}


/* --------------------------------------------------------------------------
   V1.12.1 - Operadores asignados en tarjetas de eventos
   -------------------------------------------------------------------------- */
.event-operator-info{
  font-size:.92rem;
}

.event-operator-list{
  display:flex;
  flex-wrap:wrap;
  gap:.35rem;
}

.event-operator-badge{
  display:inline-flex;
  align-items:center;
  gap:.38rem;
  max-width:100%;
  padding:.3rem .55rem;
  border:1px solid #bfdbfe;
  border-radius:999px;
  background:#eff6ff;
  color:#1e40af;
  font-size:.82rem;
  font-weight:600;
  line-height:1.2;
}

.event-operator-badge.is-inactive{
  border-color:#d1d5db;
  background:#f3f4f6;
  color:#6b7280;
}

.event-operator-dot{
  flex:0 0 auto;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#22c55e;
}

.event-operator-badge.is-inactive .event-operator-dot{
  background:#9ca3af;
}

.event-no-operator{
  display:inline-block;
  margin-left:.25rem;
  color:#b45309;
  font-size:.86rem;
  font-weight:600;
}

@media(max-width:575.98px){
  .event-operator-list{
    flex-direction:column;
    align-items:flex-start;
  }

  .event-operator-badge{
    border-radius:10px;
  }
}


/* --------------------------------------------------------------------------
   V1.12.2 - Información interna de tarjeta en dos columnas
   -------------------------------------------------------------------------- */
.event-meta-grid{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
  gap:14px;
  width:100%;
  padding:12px;
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#f8fafc;
}

.event-meta-column{
  min-width:0;
}

.event-meta-column + .event-meta-column{
  padding-left:14px;
  border-left:1px solid #e2e8f0;
}

.event-meta-label{
  margin-bottom:.45rem;
  color:#64748b;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.055em;
  text-transform:uppercase;
}

.event-meta-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:.45rem;
  margin-bottom:.18rem;
  font-size:.87rem;
  line-height:1.35;
}

.event-meta-row:last-child{
  margin-bottom:0;
}

.event-meta-row strong{
  min-width:0;
}

.event-meta-row span{
  min-width:0;
  text-align:right;
  overflow-wrap:anywhere;
}

.event-meta-grid .event-operator-info{
  font-size:.87rem;
}

.event-meta-grid .event-operator-list{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:.35rem;
  margin-top:0 !important;
}

.event-meta-grid .event-operator-badge{
  width:100%;
  min-width:0;
  border-radius:10px;
  padding:.35rem .5rem;
}

.event-meta-grid .event-no-operator{
  margin-left:0;
  font-size:.84rem;
}

/* Mantiene dos columnas también en móvil, reduciendo espacios y tipografía. */
@media(max-width:575.98px){
  .event-meta-grid{
    grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
    gap:9px;
    padding:10px;
  }

  .event-meta-column + .event-meta-column{
    padding-left:9px;
  }

  .event-meta-label{
    font-size:.66rem;
  }

  .event-meta-row,
  .event-meta-grid .event-operator-info{
    font-size:.8rem;
  }

  .event-meta-row{
    display:block;
    margin-bottom:.35rem;
  }

  .event-meta-row strong,
  .event-meta-row span{
    display:block;
    text-align:left;
  }

  .event-meta-grid .event-operator-badge{
    font-size:.76rem;
  }
}

@media(max-width:360px){
  .event-meta-grid{
    gap:7px;
    padding:8px;
  }

  .event-meta-column + .event-meta-column{
    padding-left:7px;
  }

  .event-meta-row,
  .event-meta-grid .event-operator-info{
    font-size:.75rem;
  }
}


/* ==========================================================================
   V1.13 - Moderación de contenido
   ========================================================================== */

.moderation-word-list{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  line-height:1.5;
}

.moderation-log-table{
  min-width:900px;
}

.moderation-block-modal{
  border:0;
  border-radius:24px;
  overflow:hidden;
}

.moderation-block-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:78px;
  height:78px;
  margin:0 auto;
  border-radius:50%;
  background:#dc3545;
  color:#fff;
  font-size:42px;
  font-weight:800;
  line-height:1;
  box-shadow:0 12px 30px rgba(220,53,69,.22);
}

@media(max-width:575.98px){
  .moderation-block-icon{
    width:66px;
    height:66px;
    font-size:34px;
  }
}


/* --------------------------------------------------------------------------
   V1.13.1 - Versión visible en pie de página
   -------------------------------------------------------------------------- */
.company-footer-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.35rem .9rem;
}

.company-footer-version{
  font-weight:600;
  white-space:nowrap;
}

.company-footer-version::before{
  content:"•";
  margin-right:.9rem;
  color:#cbd5e1;
}

.app-version-only-footer{
  border-top:1px solid #e5e7eb;
  background:#fff;
}

@media(max-width:575.98px){
  .company-footer-meta{
    justify-content:center;
  }

  .company-footer-version{
    width:100%;
    text-align:center;
  }

  .company-footer-version::before{
    display:none;
  }
}


/* --------------------------------------------------------------------------
   V1.14.2 - Visualizador público multidispositivo
   -------------------------------------------------------------------------- */
.live-viewer-toolbar .badge{
  flex:0 0 auto;
}

@media(max-width:575.98px){
  .live-viewer-toolbar > .d-flex{
    width:100%;
  }
}


/* ==========================================================================
   V1.14.3 - Moderación manual desde Galería
   ========================================================================== */

.media-card{
  position:relative;
}

.media-card-hidden{
  border:2px solid #dc3545;
  background:#fff8f8;
}

.media-card-hidden > img,
.media-card-hidden > video,
.media-card-hidden > .message-card{
  opacity:.42;
  filter:grayscale(70%);
}

.viewer-hidden-badge{
  position:absolute;
  top:12px;
  right:12px;
  z-index:5;
  padding:.38rem .6rem;
  border-radius:999px;
  background:#dc3545;
  color:#fff;
  font-size:.72rem;
  font-weight:800;
  box-shadow:0 5px 18px rgba(220,53,69,.25);
}

.gallery-caption-hidden{
  padding:.55rem .65rem;
  border:1px solid #ffc107;
  border-radius:10px;
  background:#fff9db;
}

@media(max-width:575.98px){
  .viewer-hidden-badge{
    top:9px;
    right:9px;
    max-width:75%;
    white-space:normal;
    text-align:center;
  }
}


/* --------------------------------------------------------------------------
   V1.14.5 - Palabras bloqueadas en cuadrícula
   -------------------------------------------------------------------------- */
.moderation-words-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.65rem;
}

.moderation-word-item{
  display:flex;
  align-items:stretch;
  min-width:0;
}

.moderation-word-item .form-control{
  min-width:0;
  border-top-right-radius:0;
  border-bottom-right-radius:0;
}

.moderation-word-remove{
  flex:0 0 auto;
  width:38px;
  padding:.25rem;
  border-top-left-radius:0;
  border-bottom-left-radius:0;
  font-size:1.05rem;
  line-height:1;
}

@media(max-width:991.98px){
  .moderation-words-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:575.98px){
  .moderation-words-grid{
    grid-template-columns:1fr;
  }
}


/* --------------------------------------------------------------------------
   V1.15.3 - Footer compacto en una o dos líneas
   -------------------------------------------------------------------------- */
.company-footer-compact{
  font-size:.78rem;
}

.company-footer-compact .container{
  max-width:1400px;
}

.company-footer-row{
  display:flex;
  align-items:center;
  min-width:0;
  gap:.4rem .8rem;
  line-height:1.25;
}

.company-footer-row-primary{
  min-height:30px;
}

.company-footer-row-secondary{
  min-height:22px;
  padding-top:.2rem;
  border-top:1px solid #f1f5f9;
  color:#6b7280;
}

.company-footer-brand{
  display:flex;
  align-items:center;
  flex:0 0 auto;
  min-width:0;
  gap:.4rem;
}

.company-footer-logo-compact{
  width:auto;
  height:25px;
  max-width:75px;
  max-height:25px;
  margin:0;
  object-fit:contain;
}

.company-footer-company-name{
  white-space:nowrap;
}

.company-footer-text{
  flex:1 1 180px;
  min-width:80px;
}

.company-footer-data-compact{
  display:flex;
  align-items:center;
  flex:0 1 auto;
  min-width:0;
  gap:.35rem .7rem;
  white-space:nowrap;
}

.company-footer-item{
  min-width:0;
}

.company-footer-site{
  max-width:210px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.company-footer-address{
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.company-footer-meta-compact,
.company-footer-version-compact{
  flex:0 0 auto;
  white-space:nowrap;
}

.company-footer-version-compact::before{
  content:"•";
  margin-right:.8rem;
  color:#cbd5e1;
}

/* Evitar estilos antiguos que hacían crecer el pie */
.company-footer-compact .company-footer-data{
  gap:.35rem .7rem;
}

.company-footer-compact .company-footer-meta{
  margin-top:0!important;
}

@media(max-width:991.98px){
  .company-footer-row-primary{
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    gap:.25rem .65rem;
  }

  .company-footer-brand{
    grid-column:1;
  }

  .company-footer-text{
    grid-column:2;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .company-footer-data-compact{
    grid-column:1 / -1;
    justify-content:center;
    overflow:hidden;
  }

  .company-footer-row-secondary{
    justify-content:center;
  }

  .company-footer-address{
    max-width:45%;
  }
}

@media(max-width:575.98px){
  .company-footer-compact{
    font-size:.72rem;
  }

  .company-footer-compact .container{
    padding-left:.65rem;
    padding-right:.65rem;
  }

  .company-footer-row-primary{
    display:flex;
    flex-wrap:nowrap;
    justify-content:center;
    gap:.35rem .55rem;
  }

  .company-footer-logo-compact{
    height:20px;
    max-height:20px;
    max-width:55px;
  }

  .company-footer-text{
    display:none;
  }

  .company-footer-data-compact{
    overflow:hidden;
    gap:.3rem .5rem;
  }

  .company-footer-data-compact .company-footer-item:nth-child(n+3){
    display:none;
  }

  .company-footer-row-secondary{
    display:flex;
    flex-wrap:nowrap;
    justify-content:center;
    overflow:hidden;
  }

  .company-footer-address{
    display:none;
  }

  .company-footer-version-compact::before{
    margin-right:.5rem;
  }
}


/* --------------------------------------------------------------------------
   V1.15.4 - Footer solo texto
   -------------------------------------------------------------------------- */
.company-footer-text-only{
  font-size:.78rem;
}

.company-footer-text-only .container{
  max-width:1500px;
}

.company-footer-line{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:.2rem 0;
  line-height:1.35;
  color:#6b7280;
}

.company-footer-line > *{
  display:inline-flex;
  align-items:center;
  min-width:0;
  color:inherit;
  text-decoration:none;
  white-space:nowrap;
}

.company-footer-line > *:not(:last-child)::after{
  content:"|";
  margin:0 .55rem;
  color:#cbd5e1;
}

.company-footer-line a:hover{
  color:#0d6efd;
  text-decoration:underline;
}

.company-footer-version-text{
  font-weight:600;
}

@media(max-width:767.98px){
  .company-footer-text-only{
    font-size:.72rem;
  }

  .company-footer-line > *:not(:last-child)::after{
    margin:0 .4rem;
  }
}

@media(max-width:575.98px){
  .company-footer-text-only .container{
    padding-left:.55rem;
    padding-right:.55rem;
  }

  .company-footer-line{
    line-height:1.45;
  }

  .company-footer-line > *{
    white-space:normal;
    text-align:center;
  }
}


/* --------------------------------------------------------------------------
   V1.15.5 - Visualizador público: descarga mitigada
   -------------------------------------------------------------------------- */
.viewer-protected,
.viewer-protected img,
.viewer-protected video{
  -webkit-user-select:none;
  user-select:none;
  -webkit-user-drag:none;
}

.viewer-protected img{
  pointer-events:none;
}

.viewer-protected video::-webkit-media-controls-download-button{
  display:none!important;
}

.viewer-protected video::-internal-media-controls-download-button{
  display:none!important;
}


/* ==========================================================================
   V1.16 - Notificaciones internas
   ========================================================================== */
.app-notification-nav{
  position:relative;
}

.app-notification-button{
  position:relative;
  min-width:42px;
}

.notification-badge{
  position:absolute;
  top:-7px;
  right:-8px;
  min-width:20px;
  height:20px;
  padding:0 5px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#dc3545;
  color:#fff;
  font-size:.68rem;
  font-weight:800;
  line-height:1;
  border:2px solid #fff;
}

.app-notification-menu{
  width:min(390px,calc(100vw - 24px));
  overflow:hidden;
  border-radius:16px;
  box-shadow:0 18px 45px rgba(15,23,42,.15);
}

.notification-menu-header,
.notification-menu-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  padding:.75rem .9rem;
}

.notification-menu-header{
  border-bottom:1px solid #e5e7eb;
}

.notification-menu-footer{
  flex-wrap:wrap;
  border-top:1px solid #e5e7eb;
  font-size:.8rem;
}

.notification-menu-list{
  max-height:390px;
  overflow:auto;
}

.notification-empty{
  padding:2rem 1rem;
  color:#64748b;
  text-align:center;
}

.notification-menu-item{
  width:100%;
  display:flex;
  gap:.7rem;
  padding:.75rem .9rem;
  border:0;
  border-bottom:1px solid #f1f5f9;
  background:#fff;
  text-align:left;
}

.notification-menu-item:hover{
  background:#f8fafc;
}

.notification-menu-item.is-unread{
  background:#eff6ff;
}

.notification-menu-item.is-unread:hover{
  background:#e0efff;
}

.notification-menu-icon{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:10px;
  background:#f1f5f9;
}

.notification-menu-text{
  display:block;
  min-width:0;
  flex:1 1 auto;
}

.notification-menu-text strong,
.notification-menu-text small,
.notification-menu-text time{
  display:block;
  overflow-wrap:anywhere;
}

.notification-menu-text strong{
  font-size:.87rem;
}

.notification-menu-text small{
  margin-top:.12rem;
  color:#64748b;
}

.notification-menu-text time{
  margin-top:.3rem;
  color:#94a3b8;
  font-size:.7rem;
}

.app-notification-toasts{
  z-index:1100;
  margin-top:60px;
}

.app-notification-toasts .toast{
  cursor:pointer;
}

.notification-page-list{
  display:grid;
  gap:.75rem;
}

.notification-page-item{
  display:flex;
  flex-direction:row;
  gap:1rem;
  padding:1rem;
}

.notification-page-item.is-unread{
  border-left:4px solid #0d6efd;
  background:#f8fbff;
}

.notification-type-icon{
  flex:0 0 auto;
  width:45px;
  height:45px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:13px;
  background:#f1f5f9;
  font-size:1.2rem;
}

.notification-page-content{
  flex:1 1 auto;
  min-width:0;
}

@media(max-width:991.98px){
  .app-notification-nav{
    margin-top:.35rem;
  }

  .app-notification-button{
    width:100%;
    text-align:left;
  }

  .notification-badge{
    top:2px;
    right:8px;
  }

  .app-notification-menu{
    width:100%;
    max-width:none;
  }
}

@media(max-width:575.98px){
  .notification-page-item{
    gap:.7rem;
    padding:.85rem;
  }

  .notification-type-icon{
    width:38px;
    height:38px;
  }

  .notification-menu-footer{
    display:grid;
    grid-template-columns:1fr;
  }
}


/* ==========================================================================
   V1.16.1 - Centro de notificaciones
   ========================================================================== */
.app-notification-button{
  position:relative;
  width:42px;
  height:38px;
  min-width:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border-radius:10px;
}

.app-notification-menu{
  width:390px!important;
  min-width:390px!important;
  max-width:calc(100vw - 24px);
  margin-top:.55rem!important;
  border:1px solid #e5e7eb;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 18px 50px rgba(15,23,42,.16),0 2px 8px rgba(15,23,42,.06);
}

.notification-menu-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:1rem;
  background:#fff;
  border-bottom:1px solid #eef2f7;
}

.notification-menu-title{
  display:flex;
  align-items:center;
  gap:.45rem;
  color:#111827;
  font-size:.95rem;
}

.notification-menu-title-icon{
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:#fff7ed;
}

.notification-menu-subtitle{
  margin-top:.15rem;
  color:#64748b;
  font-size:.76rem;
}

.notification-mark-all{
  flex:0 0 auto;
  border-radius:9px;
  padding:.3rem .6rem;
  font-size:.76rem;
}

.notification-menu-list{
  max-height:370px;
  overflow-y:auto;
  background:#fff;
}

.notification-empty{
  padding:2.25rem 1.25rem;
  color:#94a3b8;
  text-align:center;
  font-size:.85rem;
}

.notification-menu-item{
  width:100%;
  display:flex;
  align-items:flex-start;
  gap:.75rem;
  padding:.85rem 1rem;
  border:0;
  border-bottom:1px solid #f1f5f9;
  background:#fff;
  text-align:left;
  transition:background-color .15s ease;
}

.notification-menu-item:hover{
  background:#f8fafc;
}

.notification-menu-item.is-unread{
  position:relative;
  background:#f5f9ff;
}

.notification-menu-item.is-unread::before{
  content:"";
  position:absolute;
  left:.35rem;
  top:50%;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#0d6efd;
  transform:translateY(-50%);
}

.notification-menu-icon{
  flex:0 0 auto;
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:11px;
  background:#f1f5f9;
  font-size:1rem;
}

.notification-menu-text{
  display:block;
  flex:1 1 auto;
  min-width:0;
}

.notification-menu-text strong{
  display:block;
  margin-bottom:.16rem;
  color:#1f2937;
  font-size:.86rem;
  line-height:1.3;
}

.notification-menu-text small{
  display:block;
  color:#64748b;
  font-size:.76rem;
  line-height:1.35;
}

.notification-menu-text time{
  display:block;
  margin-top:.32rem;
  color:#94a3b8;
  font-size:.68rem;
}

.notification-menu-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  padding:.75rem 1rem;
  background:#f8fafc;
  border-top:1px solid #eef2f7;
}

.notification-footer-link{
  color:#0d6efd;
  font-size:.8rem;
  font-weight:600;
  text-decoration:none;
}

.notification-browser-button{
  font-size:.74rem;
  border-radius:8px;
  white-space:nowrap;
}

@media(max-width:991.98px){
  .app-notification-nav{
    width:100%;
  }

  .app-notification-button{
    width:100%;
    justify-content:flex-start;
    padding-left:.75rem;
  }

  .app-notification-menu{
    position:static!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    transform:none!important;
  }
}

@media(max-width:575.98px){
  .notification-menu-header,
  .notification-menu-footer{
    padding:.75rem .85rem;
  }

  .notification-menu-item{
    padding:.75rem .85rem;
  }

  .notification-menu-footer{
    flex-wrap:wrap;
  }
}


/* ==========================================================================
   V1.16.2 - Centro de notificaciones más amplio
   ========================================================================== */
.navbar .app-notification-menu{
  width:460px!important;
  min-width:460px!important;
  max-width:min(460px,calc(100vw - 30px))!important;
  padding:0!important;
}

.navbar .notification-menu-header{
  padding:1.05rem 1.15rem;
}

.navbar .notification-menu-list{
  min-height:90px;
  max-height:430px;
}

.navbar .notification-empty{
  min-height:105px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:1.5rem;
  font-size:.9rem;
}

.navbar .notification-menu-item{
  padding:.95rem 1.15rem;
}

.navbar .notification-menu-footer{
  padding:.85rem 1.15rem;
}

.notification-browser-button{
  min-width:170px;
  min-height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:9px;
  font-weight:600;
  white-space:nowrap;
}

.notification-footer-link{
  display:inline-flex;
  align-items:center;
  min-height:34px;
}

@media(max-width:991.98px){
  .navbar .app-notification-menu{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }

  .notification-browser-button{
    min-width:165px;
  }
}

@media(max-width:575.98px){
  .navbar .notification-menu-header{
    align-items:flex-start;
    flex-direction:column;
    gap:.65rem;
  }

  .navbar .notification-mark-all{
    width:100%;
  }

  .navbar .notification-menu-footer{
    display:grid;
    grid-template-columns:1fr;
    gap:.55rem;
  }

  .notification-footer-link,
  .notification-browser-button{
    width:100%;
    justify-content:center;
    text-align:center;
  }
}


/* --------------------------------------------------------------------------
   V1.16.3 - Plantilla horizontal QR para invitados
   -------------------------------------------------------------------------- */
.qr-template-page-shell{
  margin-bottom:2rem;
}

.qr-fold-template{
  position:relative;
  width:min(100%, 1200px);
  margin:0 auto;
  background:
    radial-gradient(circle at 8% 12%, rgba(201,161,79,.12), transparent 18%),
    radial-gradient(circle at 92% 18%, rgba(123,155,120,.16), transparent 22%),
    linear-gradient(180deg,#fffefb 0%, #fffaf1 100%);
  border:1px solid #e7dfcf;
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 18px 48px rgba(15,23,42,.10);
  display:grid;
  grid-template-columns:1fr 1.15fr 1fr;
  grid-template-rows:auto 108px;
}

.qr-template-panel{
  position:relative;
  min-height:760px;
  padding:40px 32px 24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
}

.qr-template-panel-center{
  padding-inline:36px;
}

.qr-fold-line{
  position:absolute;
  top:0;
  bottom:108px;
  width:0;
  border-left:2px dashed rgba(120,120,120,.38);
  z-index:2;
}

.qr-fold-line-1{ left:33.3333%; }
.qr-fold-line-2{ left:67.05%; }

.qr-fold-line-label{
  position:absolute;
  top:12px;
  font-size:.8rem;
  font-weight:700;
  letter-spacing:.08em;
  color:#6b7280;
  background:rgba(255,255,255,.85);
  padding:4px 10px;
  border-radius:999px;
  z-index:3;
}

.qr-fold-label-1{ left:27%; }
.qr-fold-label-2{ left:61.5%; }

.qr-template-corner{
  position:absolute;
  width:180px;
  height:120px;
  opacity:.95;
  pointer-events:none;
}

.qr-template-corner-left{
  top:0;
  left:0;
  background:
    radial-gradient(circle at 30px 30px, rgba(143,169,130,.28) 0 8px, transparent 10px),
    linear-gradient(35deg, transparent 44%, rgba(171,139,66,.30) 45%, transparent 46%),
    linear-gradient(60deg, transparent 58%, rgba(112,142,108,.22) 59%, transparent 60%),
    linear-gradient(20deg, rgba(143,169,130,.14) 0 25%, transparent 25%);
  border-bottom-right-radius:80px;
}

.qr-template-corner-right{
  top:0;
  right:0;
  background:
    radial-gradient(circle at 150px 36px, rgba(201,161,79,.30) 0 8px, transparent 10px),
    linear-gradient(-35deg, transparent 44%, rgba(171,139,66,.30) 45%, transparent 46%),
    linear-gradient(-60deg, transparent 58%, rgba(112,142,108,.22) 59%, transparent 60%),
    linear-gradient(-20deg, rgba(143,169,130,.14) 0 25%, transparent 25%);
  border-bottom-left-radius:80px;
}

.qr-template-step{
  width:100%;
  margin-top:42px;
  margin-bottom:28px;
}

.qr-template-step-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 24px;
  border-radius:999px;
  background:#f8e8df;
  color:#1f2937;
  font-weight:800;
  font-size:1.1rem;
  box-shadow:0 4px 12px rgba(0,0,0,.04);
}

.qr-template-phone-illustration{
  width:100%;
  display:flex;
  justify-content:center;
  margin-bottom:26px;
}

.qr-template-phone{
  width:170px;
  height:300px;
  border-radius:30px;
  background:#171717;
  padding:12px;
  transform:rotate(-12deg);
  box-shadow:0 15px 30px rgba(15,23,42,.18);
  position:relative;
}

.qr-template-phone-notch{
  position:absolute;
  top:10px;
  left:50%;
  width:72px;
  height:12px;
  border-radius:0 0 12px 12px;
  transform:translateX(-50%);
  background:#101010;
  z-index:2;
}

.qr-template-phone-screen{
  width:100%;
  height:100%;
  border-radius:24px;
  background:linear-gradient(180deg,#ffffff,#f7f7f7);
  display:flex;
  align-items:center;
  justify-content:center;
}

.qr-template-mini-code{
  width:84px;
  height:84px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:6px;
}

.qr-template-mini-code span{
  background:#111827;
  border-radius:2px;
}

.qr-template-helper-text{
  margin:0;
  text-align:center;
  font-size:1.35rem;
  line-height:1.4;
  color:#243040;
  max-width:290px;
}

.qr-template-company-box{
  margin-top:auto;
  padding-top:28px;
  text-align:center;
}

.qr-template-company-logo{
  max-width:120px;
  max-height:64px;
  width:auto;
  height:auto;
  object-fit:contain;
}

.qr-template-company-name{
  margin-top:10px;
  font-size:.92rem;
  color:#475569;
  font-weight:700;
}

.qr-template-title-wrap{
  margin-top:22px;
  text-align:center;
}

.qr-template-title-main{
  font-family:Georgia, 'Times New Roman', serif;
  font-size:4.7rem;
  line-height:.95;
  color:#18392b;
  font-weight:700;
}

.qr-template-title-script{
  margin-top:4px;
  font-family:'Brush Script MT', 'Segoe Script', cursive;
  font-size:4.2rem;
  line-height:1;
  color:#b48333;
}

.qr-template-title-note{
  margin:18px auto 0;
  max-width:420px;
  font-size:1.35rem;
  color:#243040;
  line-height:1.35;
}

.qr-template-qr-area{
  width:100%;
  margin-top:28px;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.qr-template-qr-frame{
  background:#fff;
  border:8px solid #5f7f6b;
  border-radius:24px;
  padding:18px;
  box-shadow:0 14px 24px rgba(15,23,42,.10);
}

.qr-template-qr-frame canvas,
.qr-template-qr-frame img{
  display:block;
  max-width:100%;
  height:auto!important;
}

.qr-template-scan-caption{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:18px;
  padding:10px 26px;
  background:#224b36;
  color:#fff;
  border-radius:999px;
  font-size:1.45rem;
  font-weight:700;
  box-shadow:0 10px 18px rgba(34,75,54,.20);
}

.qr-template-url-box{
  margin-top:auto;
  width:100%;
  padding:12px 14px;
  border:1px solid #d9dfde;
  border-radius:14px;
  background:#fffdf9;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.86rem;
  line-height:1.35;
  color:#475569;
  overflow-wrap:anywhere;
  text-align:center;
}

.qr-template-action-list{
  width:100%;
  margin-top:26px;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.qr-template-action-item{
  display:flex;
  align-items:center;
  gap:16px;
  width:100%;
  padding-bottom:18px;
  border-bottom:1px solid #eadfc9;
}

.qr-template-action-item strong{
  display:block;
  font-size:1.42rem;
  color:#1f2937;
}

.qr-template-action-item small{
  display:block;
  margin-top:4px;
  font-size:1rem;
  color:#64748b;
}

.qr-template-action-icon{
  width:68px;
  height:68px;
  flex:0 0 68px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.8rem;
  color:#fff;
}

.qr-template-action-icon.is-photo{ background:#df8d83; }
.qr-template-action-icon.is-video{ background:#6f8b6f; }
.qr-template-action-icon.is-message{ background:#cf9f49; }

.qr-template-thanks{
  margin-top:36px;
  font-family:'Brush Script MT', 'Segoe Script', cursive;
  font-size:2.8rem;
  line-height:1.1;
  color:#23412f;
  text-align:center;
}

.qr-template-thanks-note{
  margin-top:14px;
  text-align:center;
  font-size:1.05rem;
  color:#64748b;
}

.qr-template-footer{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:0;
  background:rgba(247,240,229,.92);
  border-top:1px solid #e6dac6;
  min-height:108px;
}

.qr-template-footer-item{
  display:flex;
  align-items:center;
  gap:16px;
  padding:18px 24px;
  border-right:1px solid #d5c7ae;
}

.qr-template-footer-item:last-child{
  border-right:0;
}

.qr-template-footer-icon{
  width:46px;
  height:46px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  font-size:1.35rem;
}

.qr-template-footer-item strong{
  display:block;
  font-size:1rem;
  color:#111827;
}

.qr-template-footer-item small{
  display:block;
  margin-top:3px;
  font-size:.92rem;
  color:#475569;
  line-height:1.35;
  overflow-wrap:anywhere;
}

@media (max-width: 1200px){
  .qr-template-title-main{ font-size:4rem; }
  .qr-template-title-script{ font-size:3.7rem; }
  .qr-template-thanks{ font-size:2.5rem; }
}

@media (max-width: 991.98px){
  .qr-fold-template{
    grid-template-columns:1fr;
    grid-template-rows:auto auto auto auto;
  }

  .qr-template-panel{
    min-height:auto;
    padding:32px 22px;
  }

  .qr-template-footer{
    grid-template-columns:1fr;
  }

  .qr-template-footer-item{
    border-right:0;
    border-bottom:1px solid #d5c7ae;
  }

  .qr-template-footer-item:last-child{
    border-bottom:0;
  }

  .qr-fold-line,
  .qr-fold-line-label{
    display:none;
  }

  .qr-template-title-main{ font-size:3.35rem; }
  .qr-template-title-script{ font-size:3rem; }
  .qr-template-title-note{ font-size:1.1rem; }
  .qr-template-helper-text{ font-size:1.1rem; }
  .qr-template-thanks{ font-size:2.2rem; }
}

@media print{
  @page{
    size:A4 landscape;
    margin:0;
  }

  html,
  body{
    width:297mm!important;
    height:210mm!important;
    min-width:297mm!important;
    min-height:210mm!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    background:#fff!important;
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }

  body *{
    visibility:hidden!important;
  }

  #qrTemplatePrintArea,
  #qrTemplatePrintArea *{
    visibility:visible!important;
  }

  #qrTemplatePrintArea{
    position:absolute!important;
    inset:0!important;
    width:297mm!important;
    height:210mm!important;
    margin:0!important;
    padding:0!important;
    display:block!important;
    overflow:hidden!important;
  }

  #qrFoldTemplate{
    position:absolute!important;
    inset:0!important;
    width:297mm!important;
    height:210mm!important;
    min-width:297mm!important;
    min-height:210mm!important;
    max-width:297mm!important;
    max-height:210mm!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow:hidden!important;
    display:grid!important;
    grid-template-columns:33.3333% 33.3334% 33.3333%!important;
    grid-template-rows:178mm 32mm!important;
    break-inside:avoid!important;
    page-break-inside:avoid!important;
    break-after:avoid!important;
    page-break-after:avoid!important;
  }

  #qrFoldTemplate .qr-template-panel{
    min-height:0!important;
    height:178mm!important;
    max-height:178mm!important;
    padding:8mm 7mm 5mm!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }

  #qrFoldTemplate .qr-template-panel-center{
    padding-left:7mm!important;
    padding-right:7mm!important;
  }

  #qrFoldTemplate .qr-fold-line{
    top:0!important;
    bottom:32mm!important;
  }

  #qrFoldTemplate .qr-fold-line-label{
    top:3mm!important;
    font-size:2.5mm!important;
    padding:1mm 2mm!important;
  }

  #qrFoldTemplate .qr-fold-label-1{
    left:27%!important;
  }

  #qrFoldTemplate .qr-fold-label-2{
    left:60.5%!important;
  }

  #qrFoldTemplate .qr-template-corner{
    width:34mm!important;
    height:24mm!important;
  }

  #qrFoldTemplate .qr-template-step{
    margin-top:8mm!important;
    margin-bottom:4mm!important;
  }

  #qrFoldTemplate .qr-template-step-chip{
    padding:2mm 5mm!important;
    font-size:4mm!important;
    box-shadow:none!important;
  }

  #qrFoldTemplate .qr-template-phone-illustration{
    margin-bottom:4mm!important;
  }

  #qrFoldTemplate .qr-template-phone{
    width:28mm!important;
    height:49mm!important;
    padding:2mm!important;
    border-radius:5mm!important;
    box-shadow:none!important;
  }

  #qrFoldTemplate .qr-template-phone-notch{
    top:1.6mm!important;
    width:12mm!important;
    height:2mm!important;
  }

  #qrFoldTemplate .qr-template-phone-screen{
    border-radius:4mm!important;
  }

  #qrFoldTemplate .qr-template-mini-code{
    width:15mm!important;
    height:15mm!important;
    gap:1mm!important;
  }

  #qrFoldTemplate .qr-template-helper-text{
    max-width:72mm!important;
    font-size:3.5mm!important;
    line-height:1.35!important;
  }

  #qrFoldTemplate .qr-template-company-box{
    margin-top:auto!important;
    padding-top:3mm!important;
  }

  #qrFoldTemplate .qr-template-company-logo{
    max-width:25mm!important;
    max-height:12mm!important;
  }

  #qrFoldTemplate .qr-template-company-name{
    margin-top:1mm!important;
    font-size:2.8mm!important;
  }

  #qrFoldTemplate .qr-template-title-wrap{
    margin-top:3mm!important;
  }

  #qrFoldTemplate .qr-template-title-main{
    font-size:15mm!important;
    line-height:.9!important;
  }

  #qrFoldTemplate .qr-template-title-script{
    margin-top:0!important;
    font-size:12mm!important;
    line-height:.95!important;
  }

  #qrFoldTemplate .qr-template-title-note{
    margin-top:3mm!important;
    max-width:78mm!important;
    font-size:3.3mm!important;
    line-height:1.3!important;
  }

  #qrFoldTemplate .qr-template-qr-area{
    margin-top:4mm!important;
  }

  #qrFoldTemplate .qr-template-qr-frame{
    width:54mm!important;
    height:54mm!important;
    padding:3mm!important;
    border-width:1.5mm!important;
    border-radius:4mm!important;
    box-shadow:none!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }

  #qrFoldTemplate .qr-template-qr-frame canvas,
  #qrFoldTemplate .qr-template-qr-frame img{
    width:45mm!important;
    height:45mm!important;
    max-width:45mm!important;
    max-height:45mm!important;
  }

  #qrFoldTemplate .qr-template-scan-caption{
    margin-top:2.5mm!important;
    padding:1.8mm 6mm!important;
    font-size:4mm!important;
    box-shadow:none!important;
  }

  #qrFoldTemplate .qr-template-url-box{
    margin-top:auto!important;
    padding:2mm!important;
    border-radius:2mm!important;
    font-size:2.2mm!important;
    line-height:1.2!important;
    max-height:13mm!important;
    overflow:hidden!important;
  }

  #qrFoldTemplate .qr-template-action-list{
    margin-top:4mm!important;
    gap:3mm!important;
  }

  #qrFoldTemplate .qr-template-action-item{
    gap:3mm!important;
    padding-bottom:3mm!important;
  }

  #qrFoldTemplate .qr-template-action-item strong{
    font-size:4mm!important;
  }

  #qrFoldTemplate .qr-template-action-item small{
    margin-top:.8mm!important;
    font-size:2.8mm!important;
  }

  #qrFoldTemplate .qr-template-action-icon{
    width:12mm!important;
    height:12mm!important;
    flex:0 0 12mm!important;
    font-size:4.5mm!important;
  }

  #qrFoldTemplate .qr-template-thanks{
    margin-top:5mm!important;
    font-size:8mm!important;
    line-height:1!important;
  }

  #qrFoldTemplate .qr-template-thanks-note{
    margin-top:2mm!important;
    font-size:2.8mm!important;
  }

  #qrFoldTemplate .qr-template-footer{
    grid-column:1 / -1!important;
    height:32mm!important;
    min-height:32mm!important;
    max-height:32mm!important;
    grid-template-columns:repeat(3,1fr)!important;
    overflow:hidden!important;
  }

  #qrFoldTemplate .qr-template-footer-item{
    height:32mm!important;
    padding:4mm 6mm!important;
    gap:3mm!important;
    border-bottom:0!important;
    box-sizing:border-box!important;
  }

  #qrFoldTemplate .qr-template-footer-icon{
    width:9mm!important;
    height:9mm!important;
    flex:0 0 9mm!important;
    border-radius:2mm!important;
    font-size:4mm!important;
  }

  #qrFoldTemplate .qr-template-footer-item strong{
    font-size:3.2mm!important;
  }

  #qrFoldTemplate .qr-template-footer-item small{
    margin-top:.6mm!important;
    font-size:2.6mm!important;
    line-height:1.2!important;
  }

  .navbar,
  .no-print,
  .site-footer,
  .page-section-footer,
  .app-version-only-footer,
  .company-footer{
    display:none!important;
  }
}


/* --------------------------------------------------------------------------
   V1.16.4 - Reset de contraseña dentro del login
   -------------------------------------------------------------------------- */
.login-reset-divider{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:1.15rem 0 .85rem;
  color:#94a3b8;
  font-size:.76rem;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.login-reset-divider::before,
.login-reset-divider::after{
  content:"";
  flex:1 1 auto;
  height:1px;
  background:#e5e7eb;
}

.login-reset-divider span{
  padding:0 .7rem;
  white-space:nowrap;
}

.login-reset-toggle{
  border-radius:10px;
  font-weight:600;
}

.login-reset-panel{
  margin-top:.85rem;
  padding:1rem;
  border:1px solid #dbe2ea;
  border-radius:14px;
  background:#f8fafc;
}

.login-reset-heading{
  margin-bottom:.35rem;
  color:#1f2937;
  font-size:.95rem;
  font-weight:800;
}

.login-reset-form .form-label{
  font-size:.85rem;
}

@media(max-width:575.98px){
  .login-reset-panel{
    padding:.85rem;
  }

  .login-reset-divider span{
    padding:0 .5rem;
    font-size:.7rem;
  }
}


/* ==========================================================================
   V1.17 - Reacciones en fotos y videos
   ========================================================================== */
.gallery-reactions{
  padding:.7rem;
  border:1px solid #e5e7eb;
  border-radius:13px;
  background:#f8fafc;
  transition:opacity .15s ease;
}

.gallery-reactions.is-loading{
  opacity:.65;
  pointer-events:none;
}

.gallery-reaction-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  margin-bottom:.55rem;
}

.gallery-reaction-title{
  color:#64748b;
  font-size:.75rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.gallery-reaction-total{
  min-width:28px;
  min-height:24px;
  padding:2px 8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#e2e8f0;
  color:#334155;
  font-size:.74rem;
  font-weight:800;
}

.gallery-reaction-buttons{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:.35rem;
}

.gallery-reaction-button{
  position:relative;
  min-width:0;
  padding:.42rem .22rem;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:.12rem;
  border:1px solid transparent;
  border-radius:10px;
  background:#fff;
  color:#475569;
  transition:
    transform .12s ease,
    border-color .12s ease,
    background-color .12s ease,
    box-shadow .12s ease;
}

.gallery-reaction-button:hover{
  transform:translateY(-1px);
  border-color:#cbd5e1;
  box-shadow:0 4px 10px rgba(15,23,42,.07);
}

.gallery-reaction-button.is-selected{
  border-color:#93c5fd;
  background:#eff6ff;
  color:#1d4ed8;
  box-shadow:0 0 0 2px rgba(59,130,246,.08);
}

.gallery-reaction-emoji{
  font-size:1.25rem;
  line-height:1;
}

.gallery-reaction-count{
  min-width:18px;
  min-height:18px;
  padding:1px 5px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#f1f5f9;
  color:#334155;
  font-size:.66rem;
  font-weight:800;
}

.gallery-reaction-button.is-selected
.gallery-reaction-count{
  background:#dbeafe;
  color:#1d4ed8;
}

.gallery-reaction-label{
  width:100%;
  overflow:hidden;
  color:inherit;
  font-size:.58rem;
  font-weight:600;
  line-height:1.1;
  text-overflow:ellipsis;
  white-space:nowrap;
}

@media(max-width:575.98px){
  .gallery-reactions{
    padding:.6rem;
  }

  .gallery-reaction-buttons{
    gap:.25rem;
  }

  .gallery-reaction-button{
    padding:.38rem .1rem;
  }

  .gallery-reaction-emoji{
    font-size:1.15rem;
  }

  .gallery-reaction-label{
    display:none;
  }
}


/* ==========================================================================
   V1.18 - Galería pública
   ========================================================================== */
.public-gallery-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:1.25rem 1.35rem;
  border-radius:20px;
  background:
    radial-gradient(circle at 0 0, rgba(13,110,253,.12), transparent 40%),
    #fff;
  box-shadow:0 8px 28px rgba(15,23,42,.07);
}

.public-gallery-kicker{
  margin-bottom:.2rem;
  color:#64748b;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.public-gallery-title{
  margin:0;
  color:#111827;
  font-size:clamp(1.6rem,4vw,2.35rem);
  font-weight:800;
}

.public-gallery-subtitle{
  margin:.3rem 0 0;
  color:#64748b;
}

.public-gallery-filters{
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
  padding:.8rem;
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 28px rgba(15,23,42,.05);
}

.public-gallery-card{
  overflow:hidden;
}

.public-gallery-media{
  width:100%;
  height:300px;
  object-fit:cover;
  border-radius:14px;
  background:#0b0f19;
  -webkit-user-select:none;
  user-select:none;
  -webkit-user-drag:none;
}

.public-gallery-photo{
  cursor:zoom-in;
}

.public-gallery-message{
  min-height:300px;
  padding:1.4rem;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:1rem;
  border-radius:14px;
  background:
    linear-gradient(135deg,#fff7ed,#fef3c7);
}

.public-gallery-message-icon{
  font-size:2.4rem;
  text-align:center;
}

.public-gallery-message-text{
  color:#374151;
  font-size:1.15rem;
  line-height:1.55;
  text-align:center;
  overflow-wrap:anywhere;
}

.public-gallery-caption{
  margin:0 0 .5rem;
  color:#374151;
  line-height:1.45;
  overflow-wrap:anywhere;
}

.public-gallery-modal-image{
  max-height:82vh;
  object-fit:contain;
  -webkit-user-select:none;
  user-select:none;
  -webkit-user-drag:none;
}

.public-gallery-grid img,
.public-gallery-grid video{
  -webkit-user-select:none;
  user-select:none;
  -webkit-user-drag:none;
}

.public-gallery-grid video::-webkit-media-controls-download-button{
  display:none!important;
}

.public-gallery-grid video::-internal-media-controls-download-button{
  display:none!important;
}

.public-gallery-reactions{
  background:#fff;
}

@media(max-width:767.98px){
  .public-gallery-hero{
    align-items:stretch;
    flex-direction:column;
  }

  .public-gallery-hero .btn{
    width:100%;
  }

  .public-gallery-media,
  .public-gallery-message{
    height:auto;
    min-height:230px;
  }

  .public-gallery-media{
    max-height:420px;
  }
}


/* ==========================================================================
   V1.18.1 - Tres vistas independientes por evento
   ========================================================================== */
.gallery-mode-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.75rem;
}

.gallery-mode-chip{
  display:flex;
  align-items:flex-start;
  gap:.7rem;
  padding:.9rem 1rem;
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:#fff;
}

.gallery-mode-chip.is-admin{
  border-color:#bfdbfe;
  background:#f8fbff;
}

.gallery-mode-chip > span{
  flex:0 0 auto;
  font-size:1.35rem;
  line-height:1;
}

.gallery-mode-chip strong,
.gallery-mode-chip small{
  display:block;
}

.gallery-mode-chip strong{
  color:#1f2937;
  font-size:.84rem;
}

.gallery-mode-chip small{
  margin-top:.18rem;
  color:#64748b;
  font-size:.72rem;
  line-height:1.35;
}

.gallery-reactions-readonly{
  background:#f8fafc;
}

.gallery-reactions-readonly .gallery-reaction-button.is-readonly{
  cursor:default;
  pointer-events:none;
}

.gallery-reactions-readonly .gallery-reaction-button.is-readonly:hover{
  transform:none;
  border-color:transparent;
  box-shadow:none;
}

.public-gallery-free-access{
  display:flex;
  align-items:center;
  gap:.8rem;
  padding:.85rem 1rem;
  border:1px solid #bbf7d0;
  border-radius:14px;
  background:#f0fdf4;
}

.public-gallery-free-icon{
  flex:0 0 auto;
  font-size:1.35rem;
}

.public-gallery-free-access strong,
.public-gallery-free-access span{
  display:block;
}

.public-gallery-free-access strong{
  color:#166534;
  font-size:.86rem;
}

.public-gallery-free-access span{
  margin-top:.12rem;
  color:#4b5563;
  font-size:.76rem;
  line-height:1.4;
}

@media(max-width:991.98px){
  .gallery-mode-summary{
    grid-template-columns:1fr;
  }
}

@media(max-width:575.98px){
  .public-gallery-free-access{
    align-items:flex-start;
  }
}


/* ==========================================================================
   V1.18.2 - Corrección responsive de Galería de invitados
   ========================================================================== */

/*
 * .public-container es flex para centrar el formulario público de subida.
 * La Galería pública tiene varios bloques, por lo que todos se envolvieron
 * en .public-gallery-page para evitar que cada bloque se convierta en una
 * columna flex horizontal y quede comprimido.
 */
.public-container > .public-gallery-page{
  width:100%;
  min-width:0;
  align-self:stretch;
}

.public-gallery-page{
  width:100%;
  max-width:100%;
  min-width:0;
}

.public-gallery-page .public-gallery-hero,
.public-gallery-page .public-gallery-free-access,
.public-gallery-page .public-gallery-filters,
.public-gallery-page .public-gallery-grid{
  width:100%;
  max-width:100%;
  min-width:0;
}

.public-gallery-page .public-gallery-grid{
  margin-left:calc(-.5 * var(--bs-gutter-x));
  margin-right:calc(-.5 * var(--bs-gutter-x));
}

.public-gallery-page .public-gallery-card{
  width:100%;
  min-width:0;
}

.public-gallery-page .public-gallery-media{
  display:block;
  width:100%;
  height:300px;
  aspect-ratio:4 / 3;
  object-fit:cover;
}

.public-gallery-page .gallery-reaction-buttons{
  width:100%;
  min-width:0;
}

.public-gallery-page .gallery-reaction-button{
  min-width:0;
}

@media(min-width:1200px){
  .public-gallery-page .public-gallery-grid > [class*="col-"]{
    flex:0 0 auto;
    width:33.333333%;
  }
}

@media(min-width:768px) and (max-width:1199.98px){
  .public-gallery-page .public-gallery-grid > [class*="col-"]{
    flex:0 0 auto;
    width:50%;
  }
}

@media(max-width:767.98px){
  .public-container > .public-gallery-page{
    align-self:auto;
  }

  .public-gallery-page .public-gallery-grid > [class*="col-"]{
    width:100%;
  }

  .public-gallery-page .public-gallery-media{
    height:auto;
    max-height:none;
    aspect-ratio:auto;
  }

  .public-gallery-page .public-gallery-message{
    min-height:220px;
  }
}

@media(max-width:575.98px){
  .public-gallery-page .public-gallery-filters{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .public-gallery-page .public-gallery-filters .btn{
    width:100%;
  }
}


/* ==========================================================================
   V1.18.3 - Corrección responsive del formulario público de carga
   ========================================================================== */
.public-container > .public-upload-page{
  width:100%;
  min-width:0;
  align-self:stretch;
}

.public-upload-page{
  width:100%;
  max-width:100%;
  min-width:0;
}

.public-upload-page .public-upload-row{
  width:100%;
  margin-left:0;
  margin-right:0;
}

.public-upload-page .public-upload-shell{
  width:100%;
  max-width:980px;
  min-width:0;
  margin:0 auto;
  padding-left:0;
  padding-right:0;
}

.public-upload-page .public-event-header{
  width:100%;
  max-width:100%;
  text-align:center;
}

.public-upload-page .public-event-title{
  font-size:clamp(2rem, 4vw, 3.1rem);
  line-height:1.08;
  word-break:break-word;
  overflow-wrap:anywhere;
}

.public-upload-page .public-event-subtitle{
  font-size:1.05rem;
  line-height:1.45;
  word-break:break-word;
  overflow-wrap:anywhere;
}

.public-upload-page .public-upload-card{
  width:100%;
  border-radius:24px;
}

.public-upload-page .public-upload-form{
  width:100%;
  max-width:100%;
}

.public-upload-page .public-upload-dropzone{
  width:100%;
  min-height:250px;
  padding:2rem 1.25rem;
  text-align:center;
  border-width:2px;
  border-style:dashed;
  border-radius:22px;
}

.public-upload-page .public-upload-dropzone .upload-icon{
  font-size:clamp(3rem, 5vw, 4rem);
  line-height:1;
}

.public-upload-page .public-upload-dropzone .dropzone-title{
  font-size:clamp(1.2rem, 2.6vw, 1.9rem);
  line-height:1.2;
  word-break:break-word;
  overflow-wrap:anywhere;
}

.public-upload-page .public-upload-dropzone .dropzone-subtitle{
  max-width:640px;
  margin-left:auto;
  margin-right:auto;
  font-size:1rem;
  line-height:1.5;
  word-break:break-word;
  overflow-wrap:anywhere;
}

.public-upload-page .public-message-card{
  border-radius:16px;
}

.public-upload-page .public-submit-button{
  min-height:58px;
  font-size:1.15rem;
}

@media(min-width:992px){
  .public-upload-page .public-upload-card{
    padding:2rem !important;
  }

  .public-upload-page .public-upload-dropzone{
    min-height:280px;
    padding:2.2rem 1.5rem;
  }
}

@media(max-width:767.98px){
  .public-upload-page .public-upload-shell{
    max-width:100%;
  }

  .public-upload-page .public-event-title{
    font-size:clamp(1.8rem, 8vw, 2.5rem);
  }

  .public-upload-page .public-event-subtitle{
    font-size:.97rem;
  }

  .public-upload-page .public-upload-card{
    padding:1rem !important;
    border-radius:20px;
  }

  .public-upload-page .public-upload-dropzone{
    min-height:210px;
    padding:1.35rem .95rem;
    border-radius:18px;
  }

  .public-upload-page .public-upload-dropzone .dropzone-subtitle{
    font-size:.92rem;
  }

  .public-upload-page .public-submit-button{
    min-height:54px;
    font-size:1.06rem;
  }
}

@media(max-width:420px){
  .public-upload-page .public-upload-dropzone{
    min-height:190px;
    padding:1.1rem .85rem;
  }

  .public-upload-page .public-upload-dropzone .dropzone-title{
    font-size:1.05rem;
  }

  .public-upload-page .public-upload-dropzone .dropzone-subtitle{
    font-size:.88rem;
  }
}


/* ==========================================================================
   V1.18.4 - Plantilla QR A4 horizontal, vista = impresión
   ========================================================================== */
.qr-template-a4-shell{
  width:100%;
}

.qr-template-print-area{
  width:100%;
  display:flex;
  justify-content:center;
  overflow:visible;
}

.qr-template-a4-shell .qr-fold-template{
  width:min(100%, 1188px);
  aspect-ratio:297 / 210;
  min-height:0;
  grid-template-rows:minmax(0,1fr) 92px;
}

.qr-template-a4-shell .qr-template-panel{
  min-height:0;
  overflow:hidden;
}

.qr-template-a4-shell .qr-fold-line{
  bottom:92px;
}


/* ==========================================================================
   V1.18.5 - Confirmación con acceso a Galería de invitados
   ========================================================================== */
.thank-you-modal #verGaleriaInvitados{
  min-height:52px;
  font-weight:700;
}

.thank-you-modal #enviarOtroRecuerdo{
  min-height:46px;
}



/* ==========================================================================
   V1.18.7 - Chips choice para acciones de Galería de invitados
   ========================================================================== */
.public-gallery-hero-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:.75rem;
}

.public-gallery-choice-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.6rem;
  min-height:46px;
  padding:.7rem 1rem;
  border-radius:999px;
  border:1px solid #dbe3ef;
  background:#ffffff;
  color:#0f172a;
  text-decoration:none;
  font-weight:700;
  line-height:1;
  transition:all .18s ease;
  box-shadow:0 1px 2px rgba(15,23,42,.06);
  white-space:nowrap;
}

.public-gallery-choice-chip:hover{
  text-decoration:none;
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(15,23,42,.10);
}

.public-gallery-choice-chip:focus-visible{
  outline:0;
  box-shadow:0 0 0 3px rgba(59,130,246,.20);
}

.public-gallery-choice-chip .choice-chip-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1.8rem;
  height:1.8rem;
  border-radius:999px;
  background:rgba(255,255,255,.22);
  font-size:.95rem;
  line-height:1;
  flex:0 0 1.8rem;
}

.public-gallery-choice-chip .choice-chip-label{
  display:inline-flex;
  align-items:center;
}

.public-gallery-choice-chip.is-primary{
  background:#eef4ff;
  border-color:#bfd3ff;
  color:#0b3ea8;
}

.public-gallery-choice-chip.is-primary .choice-chip-icon{
  background:#dbeafe;
}

.public-gallery-choice-chip.is-success{
  background:#eefbf4;
  border-color:#b7e3c7;
  color:#0f6a39;
}

.public-gallery-choice-chip.is-success .choice-chip-icon{
  background:#d6f5e2;
}

.public-gallery-choice-chip.is-primary:hover{
  background:#e7f0ff;
  border-color:#a7c4ff;
  color:#08378f;
}

.public-gallery-choice-chip.is-success:hover{
  background:#e7f8ef;
  border-color:#9dd9b5;
  color:#0d5e33;
}

@media(max-width:767.98px){
  .public-gallery-hero-actions{
    width:100%;
    display:grid;
    grid-template-columns:1fr;
    gap:.7rem;
  }

  .public-gallery-choice-chip{
    width:100%;
    justify-content:center;
  }
}

@media(max-width:420px){
  .public-gallery-choice-chip{
    min-height:44px;
    padding:.7rem .9rem;
    font-size:.95rem;
  }
}


/* ==========================================================================
   V1.18.8 - Sistema global de botones Chip Choice
   ========================================================================== */

/*
 * Todos los botones de acción del sistema comparten ahora:
 * - forma capsule/chip;
 * - borde suave;
 * - fondo ligero;
 * - estados hover/focus consistentes;
 * - altura uniforme.
 */
.btn{
  --chip-bg:#ffffff;
  --chip-border:#d7dee9;
  --chip-text:#334155;
  --chip-hover-bg:#f8fafc;
  --chip-hover-border:#c5cfdd;
  --chip-focus:rgba(59,130,246,.18);

  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:.45rem;
  min-height:40px;
  padding:.56rem 1rem!important;
  border:1px solid var(--chip-border)!important;
  border-radius:999px!important;
  background:var(--chip-bg)!important;
  color:var(--chip-text)!important;
  font-weight:650;
  line-height:1.15;
  text-decoration:none!important;
  white-space:normal;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
  transition:
    background-color .16s ease,
    border-color .16s ease,
    color .16s ease,
    box-shadow .16s ease,
    transform .16s ease;
}

.btn:hover,
.btn:focus{
  background:var(--chip-hover-bg)!important;
  border-color:var(--chip-hover-border)!important;
  color:var(--chip-text)!important;
  text-decoration:none!important;
}

.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 14px rgba(15,23,42,.08);
}

.btn:focus-visible{
  outline:0!important;
  box-shadow:0 0 0 3px var(--chip-focus)!important;
}

.btn:active,
.btn.active,
.show > .btn.dropdown-toggle{
  transform:translateY(0);
  box-shadow:inset 0 1px 3px rgba(15,23,42,.10)!important;
}

.btn:disabled,
.btn.disabled{
  opacity:.55!important;
  transform:none!important;
  box-shadow:none!important;
  cursor:not-allowed!important;
}

/* Tamaños */
.btn-sm{
  min-height:34px;
  padding:.38rem .78rem!important;
  font-size:.82rem!important;
}

.btn-lg{
  min-height:48px;
  padding:.72rem 1.2rem!important;
  font-size:1.02rem!important;
}

/* Primario / outline primario */
.btn-primary,
.btn-outline-primary{
  --chip-bg:#eef4ff;
  --chip-border:#b9ceff;
  --chip-text:#0b46b5;
  --chip-hover-bg:#e4eeff;
  --chip-hover-border:#98b9ff;
  --chip-focus:rgba(13,110,253,.20);
}

/* Éxito */
.btn-success,
.btn-outline-success{
  --chip-bg:#edf9f2;
  --chip-border:#b8dfc7;
  --chip-text:#12633a;
  --chip-hover-bg:#e3f5eb;
  --chip-hover-border:#99d1ae;
  --chip-focus:rgba(25,135,84,.19);
}

/* Peligro */
.btn-danger,
.btn-outline-danger{
  --chip-bg:#fff1f2;
  --chip-border:#fecdd3;
  --chip-text:#b42332;
  --chip-hover-bg:#ffe7e9;
  --chip-hover-border:#fda4af;
  --chip-focus:rgba(220,53,69,.18);
}

/* Advertencia */
.btn-warning,
.btn-outline-warning{
  --chip-bg:#fff8e8;
  --chip-border:#f6d98a;
  --chip-text:#8a5a00;
  --chip-hover-bg:#fff2cf;
  --chip-hover-border:#edc55c;
  --chip-focus:rgba(255,193,7,.22);
}

/* Oscuro */
.btn-dark,
.btn-outline-dark{
  --chip-bg:#eef1f4;
  --chip-border:#cbd5e1;
  --chip-text:#1f2937;
  --chip-hover-bg:#e2e8f0;
  --chip-hover-border:#aab7c6;
  --chip-focus:rgba(31,41,55,.16);
}

/* Secundario */
.btn-secondary,
.btn-outline-secondary{
  --chip-bg:#f8fafc;
  --chip-border:#d4dce7;
  --chip-text:#475569;
  --chip-hover-bg:#f1f5f9;
  --chip-hover-border:#bbc6d4;
  --chip-focus:rgba(100,116,139,.17);
}

/* Light */
.btn-light{
  --chip-bg:#ffffff;
  --chip-border:#e2e8f0;
  --chip-text:#334155;
  --chip-hover-bg:#f8fafc;
  --chip-hover-border:#cbd5e1;
  --chip-focus:rgba(100,116,139,.16);
}

/*
 * Botones a ancho completo siguen siendo chips grandes, pero se evita que
 * el contenido quede aplastado.
 */
.btn.w-100,
.w-100.btn{
  width:100%!important;
}

/* Dropdown de usuario también usa el mismo lenguaje */
.app-user-menu{
  border-radius:999px!important;
}

/* Campana: chip circular compacto */
.app-notification-button{
  border-radius:999px!important;
}

/* Botón menú móvil */
.navbar-toggler{
  border-radius:999px!important;
  min-width:42px;
  min-height:40px;
}

/* Botones de reacciones = mini choice chips */
.gallery-reaction-button{
  border-radius:999px!important;
}

.gallery-reaction-button.is-selected{
  box-shadow:
    0 0 0 2px rgba(59,130,246,.12),
    0 3px 8px rgba(15,23,42,.06)!important;
}

/* Acciones públicas ya existentes se alinean al sistema global */
.public-gallery-choice-chip{
  min-height:40px;
  padding:.56rem 1rem;
  border-radius:999px;
  font-weight:650;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
}

/* Mensaje opcional: mantiene chip pero permite texto multilínea */
.public-message-card{
  border-radius:999px!important;
  min-height:48px;
}

/* El botón de cierre X conserva su forma nativa */
.btn-close{
  border-radius:50%!important;
}

/* Botones dentro de grupos no pierden la separación visual */
.btn-group,
.btn-group-vertical{
  gap:.35rem;
}

.btn-group > .btn,
.btn-group-vertical > .btn{
  border-radius:999px!important;
}

/* Formularios/tablas con muchos botones pequeños */
.table .btn,
.card .btn,
.modal .btn{
  vertical-align:middle;
}

/* En móvil, chips de acción largos ocupan bien el ancho disponible */
@media(max-width:575.98px){
  .btn{
    min-height:42px;
  }

  .btn-sm{
    min-height:34px;
  }

  .app-actions .btn{
    flex:1 1 auto;
  }

  .public-message-card{
    border-radius:22px!important;
  }
}


/* ==========================================================================
   V1.18.10 - Navegación vertical de galerías
   ========================================================================== */
.gallery-page-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}

.gallery-layout{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:1.25rem;
  align-items:start;
}

.gallery-vertical-nav{
  min-width:0;
}

.gallery-vertical-panel{
  position:sticky;
  top:84px;
  padding:.7rem;
  border:1px solid #e2e8f0;
  border-radius:20px;
  background:#fff;
  box-shadow:0 8px 24px rgba(15,23,42,.06);
}

.gallery-vertical-title{
  padding:.45rem .65rem .7rem;
  color:#64748b;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.gallery-vertical-item{
  width:100%;
  min-height:44px;
  margin:0 0 .35rem;
  padding:.55rem .7rem;
  display:flex;
  align-items:center;
  gap:.7rem;
  border:1px solid transparent;
  border-radius:14px;
  background:transparent;
  color:#475569;
  text-decoration:none;
  font-weight:650;
  line-height:1.2;
  transition:
    background-color .15s ease,
    border-color .15s ease,
    color .15s ease,
    transform .15s ease;
}

.gallery-vertical-item:last-child{
  margin-bottom:0;
}

.gallery-vertical-item:hover{
  background:#f8fafc;
  border-color:#e2e8f0;
  color:#0f172a;
  text-decoration:none;
  transform:translateX(2px);
}

.gallery-vertical-item.is-active{
  background:#eef4ff;
  border-color:#bfd3ff;
  color:#0b46b5;
}

.gallery-vertical-icon{
  width:31px;
  height:31px;
  flex:0 0 31px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:#f1f5f9;
  font-size:1rem;
}

.gallery-vertical-item.is-active .gallery-vertical-icon{
  background:#dbeafe;
}

.gallery-vertical-separator{
  height:1px;
  margin:.65rem .35rem .8rem;
  background:#e5e7eb;
}

.gallery-content-area{
  width:100%;
  min-width:0;
}

.gallery-content-area > .row{
  margin-top:0;
}

.gallery-nav-toggle{
  margin-bottom:.75rem;
}

.public-gallery-layout{
  margin-top:0;
}

/* Más espacio útil para tarjetas cuando existe navegación lateral */
.gallery-content-area .media-card,
.gallery-content-area .public-gallery-card{
  min-width:0;
}

@media(max-width:991.98px){
  .gallery-layout{
    display:block;
  }

  .gallery-vertical-panel{
    position:static;
    top:auto;
    margin-bottom:1rem;
  }

  .gallery-vertical-item:hover{
    transform:none;
  }
}

@media(max-width:575.98px){
  .gallery-vertical-panel{
    padding:.6rem;
    border-radius:16px;
  }

  .gallery-vertical-item{
    min-height:42px;
    padding:.5rem .65rem;
  }

  .gallery-nav-toggle{
    min-height:44px;
  }
}


/* ==========================================================================
   V1.18.11 - Navegación superior de carga pública sin icono Atrás
   ========================================================================== */
.public-upload-navigation{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.65rem;
}

@media(max-width:575.98px){
  .public-upload-navigation{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .public-upload-navigation .btn{
    width:100%;
  }
}


/* ==========================================================================
   V1.18.12 - Galería pública: conservar diseño PC y móvil
   ========================================================================== */
@media(max-width:991.98px){
  .public-gallery-hero{
    align-items:flex-start;
    flex-direction:column;
  }

  .public-gallery-hero-actions{
    width:100%;
    justify-content:flex-start;
    flex-wrap:wrap;
  }

  .public-gallery-choice-chip{
    flex:0 1 auto;
  }
}

@media(max-width:767.98px){
  .public-gallery-hero{
    padding:1rem 1rem;
    gap:1rem;
  }

  .public-gallery-hero-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:.75rem;
  }

  .public-gallery-choice-chip{
    width:100%;
    justify-content:center;
  }

  .public-gallery-free-banner{
    padding:.95rem 1rem;
  }

  .public-gallery-filters{
    display:flex;
    flex-wrap:wrap;
    gap:.55rem;
  }

  .public-gallery-filters .btn{
    flex:0 0 auto;
  }
}

@media(max-width:575.98px){
  .public-gallery-title{
    font-size:2.15rem;
    line-height:1.05;
  }

  .public-gallery-subtitle{
    margin-bottom:0;
    font-size:1rem;
  }

  .public-gallery-kicker{
    font-size:.8rem;
  }

  .public-gallery-choice-chip{
    min-height:46px;
    padding:.75rem 1rem;
  }

  .choice-chip-label{
    font-size:1rem;
  }

  .public-gallery-filters .btn{
    min-height:42px;
    padding:.55rem .9rem;
  }
}

@media(max-width:420px){
  .public-gallery-hero{
    border-radius:18px;
  }

  .public-gallery-title{
    font-size:1.95rem;
  }

  .public-gallery-free-banner{
    font-size:.95rem;
  }
}
