/*
  ═══════════════════════════════════════════════════════════════
  ASOLVSA — Estilos de Galería + Visor Flipbook
  ═══════════════════════════════════════════════════════════════
  Archivo: flipbook.css
  Ubicación hosting: www.asolvsa.com/catalogos/css/flipbook.css

  Este archivo controla TODA la apariencia de la página
  www.asolvsa.com/catalogos/, que tiene dos vistas:

   1) GALERÍA       → tarjetas grandes con las 7 categorías
   2) VISOR FLIPBOOK→ libro con el catálogo seleccionado

  Para cambiar algo busca el bloque INICIO/FIN correspondiente.

  Convención de colores ASOLVSA:
   - Fondo principal:  #0D1B2A (azul oscuro)
   - Fondo secundario: #1B2B3D (azul humo)
   - Acento cálido:    #FFB74D (naranja)
   - Acento intenso:   #E65100 (naranja fuerte)
  ═══════════════════════════════════════════════════════════════
*/

/* ═══════════════════════════════════════════════════════════ */
/* INICIO: Reset universal                                       */
/* ═══════════════════════════════════════════════════════════ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100%;
}

body {
  /* Fondo principal: gradiente radial oscuro tipo escritorio */
  background: radial-gradient(circle at center top, #1B2B3D 0%, #0D1B2A 70%);
  color: #FFFFFF;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  min-height: 100vh;
}

/* En la vista del visor el body NO debe scrollear (se ve el libro) */
body.modo-visor {
  overflow: hidden;
  height: 100vh;
}

/* En la vista de galería sí queremos scroll vertical */
body.modo-galeria {
  overflow-x: hidden;
  overflow-y: auto;
}

/* Utilidad para ocultar elementos por JS */
.hidden {
  display: none !important;
}
/* FIN: Reset universal */


/* ═══════════════════════════════════════════════════════════ */
/* INICIO: VISTA 1 — Galería (página de inicio)                  */
/* ═══════════════════════════════════════════════════════════ */

.vista-galeria {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 40px 20px;
}

/* ── Header con logo ── */
.galeria-header {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 30px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.galeria-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-marco {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #FFB74D, #E65100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #0D1B2A;
  box-shadow: 0 4px 16px rgba(230, 81, 0, 0.4);
}

.logo-titulo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #FFFFFF;
}

.logo-subtitulo {
  font-size: 12px;
  opacity: 0.65;
  letter-spacing: 0.4px;
}

/* ── Hero (texto grande de bienvenida) ── */
.galeria-hero {
  width: 100%;
  max-width: 900px;
  margin: 20px auto 38px auto;
  text-align: center;
  padding: 0 10px;
}

.hero-titulo {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFB74D 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}

.hero-subtitulo {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.75;
  max-width: 620px;
  margin: 0 auto;
}

/* ── Grid de tarjetas ── */
.galeria-grid {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

/* ── Tarjeta individual de categoría ── */
.cat-card {
  position: relative;
  background: #1B2B3D;
  border-radius: 18px;
  padding: 28px 22px 24px 22px;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cat-card::before {
  /* Banda de color superior con el color de la categoría */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--cat-color, #FFB74D);
}

.cat-card::after {
  /* Glow grande detrás del icono */
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  background: var(--cat-color, #FFB74D);
  opacity: 0.08;
  border-radius: 50%;
  filter: blur(20px);
  transition: opacity 0.25s ease;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  border-color: var(--cat-color, #FFB74D);
}

.cat-card:hover::after {
  opacity: 0.18;
}

.cat-card:active {
  transform: translateY(-1px) scale(0.99);
}

/* Tarjeta deshabilitada (próximamente) */
.cat-card.disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.cat-card.disabled:hover {
  transform: none;
  box-shadow: none;
}

.cat-icon {
  width: 64px;
  height: 64px;
  background: var(--cat-color, #FFB74D);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #0D1B2A;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.cat-nombre {
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.cat-paginas {
  font-size: 13px;
  opacity: 0.65;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cat-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cat-color, #FFB74D);
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}

.cat-cta svg {
  width: 14px;
  height: 14px;
}

.cat-badge-proximamente {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.5);
  color: #FFB74D;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── Footer de la galería ── */
.galeria-footer {
  width: 100%;
  max-width: 1280px;
  margin: 50px auto 0 auto;
  padding: 24px 10px 0 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 12px;
  opacity: 0.55;
  line-height: 1.7;
}

.footer-info {
  margin-bottom: 4px;
}
/* FIN: VISTA 1 — Galería */


/* ═══════════════════════════════════════════════════════════ */
/* INICIO: VISTA 2 — Visor Flipbook                              */
/* ═══════════════════════════════════════════════════════════ */

.vista-visor {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Header del visor ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  /* Gradiente oscuro de arriba hacia abajo para legibilidad */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.btn-volver,
.btn-compartir {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.15s, background 0.15s;
}

.btn-volver:active,
.btn-compartir:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.25);
}

.header-titulos {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.header-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.header-pages {
  font-size: 12px;
  opacity: 0.75;
  font-weight: 500;
}

/* ── Contenedor del libro ── */
.flipbook-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Padding para que el libro no tape el header/footer */
  padding: 70px 10px 130px 10px;
}

.flipbook {
  max-width: 100%;
  max-height: 100%;
  /* Sombra del libro para dar sensación 3D */
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.7);
}

/* Cada página del libro */
.flipbook .page {
  background: #FFFFFF;
  overflow: hidden;
}

/* Imagen dentro de cada página */
.flipbook .page img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
/* FIN: VISTA 2 — Visor */


/* ═══════════════════════════════════════════════════════════ */
/* INICIO: Controles inferiores (botones prev/next + indicador)  */
/* ═══════════════════════════════════════════════════════════ */
.controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  z-index: 10;
}

/* Fila superior: botones prev/next + indicador */
.controls-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

/* Fila inferior: botones guardar/compartir página */
.controls-acciones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Botón de acción (guardar / compartir) */
.accion-btn {
  background: rgba(255, 183, 77, 0.15);
  border: 1px solid rgba(255, 183, 77, 0.35);
  color: #FFB74D;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.15s, background 0.15s;
  letter-spacing: 0.3px;
}

.accion-btn:active {
  transform: scale(0.93);
  background: rgba(255, 183, 77, 0.3);
}

.ctrl-btn {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.ctrl-btn:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.25);
}

.ctrl-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-indicator {
  font-size: 15px;
  font-weight: 600;
  padding: 11px 20px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 22px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-width: 84px;
  text-align: center;
}
/* FIN: Controles inferiores */


/* ═══════════════════════════════════════════════════════════ */
/* INICIO: Pantalla de carga (spinner)                           */
/* ═══════════════════════════════════════════════════════════ */
.loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0D1B2A;
  z-index: 200;
  gap: 22px;
}

.spinner {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top-color: #FFB74D;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 14px;
  opacity: 0.8;
  letter-spacing: 1px;
}
/* FIN: Pantalla de carga */


/* ═══════════════════════════════════════════════════════════ */
/* INICIO: Pantalla de error                                     */
/* ═══════════════════════════════════════════════════════════ */
.error-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 27, 42, 0.96);
  z-index: 200;
  padding: 20px;
}

.error-box {
  background: #1B2B3D;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 340px;
  text-align: center;
}

.error-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  background: #E65100;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #FFFFFF;
}

.error-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.error-msg {
  font-size: 14px;
  opacity: 0.75;
  margin-bottom: 22px;
  line-height: 1.5;
}

.error-btn {
  background: #FFB74D;
  color: #0D1B2A;
  border: none;
  padding: 12px 32px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.error-btn:active {
  transform: scale(0.95);
}
/* FIN: Pantalla de error */


/* ═══════════════════════════════════════════════════════════ */
/* INICIO: Overlay de zoom (pantalla completa para detalle)      */
/* ═══════════════════════════════════════════════════════════ */
/* Se abre con doble-tap en celular o doble-clic en compu.       */
/* Permite pinch-to-zoom en celular y rueda de mouse en compu.   */
/* Para soldadores/constructores que necesitan ver detalles.     */

.zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.zoom-cerrar {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 510;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.15s;
}

.zoom-cerrar:active {
  transform: scale(0.9);
}

.zoom-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  z-index: 510;
  pointer-events: none;
  letter-spacing: 0.5px;
}

.zoom-img {
  max-width: 95%;
  max-height: 90vh;
  object-fit: contain;
  touch-action: none;
  cursor: grab;
  transition: transform 0.15s ease;
}

.zoom-img:active {
  cursor: grabbing;
}
/* FIN: Overlay de zoom */


/* ═══════════════════════════════════════════════════════════ */
/* INICIO: Toast (mensaje flotante temporal)                     */
/* ═══════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #FFFFFF;
  padding: 12px 22px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  z-index: 300;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: toast-in 0.25s ease-out;
}

@keyframes toast-in {
  from { transform: translate(-50%, 12px); opacity: 0; }
  to   { transform: translate(-50%, 0);    opacity: 1; }
}
/* FIN: Toast */


/* ═══════════════════════════════════════════════════════════ */
/* INICIO: Ajustes para pantallas pequeñas (celulares)           */
/* ═══════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .hero-titulo {
    font-size: 32px;
  }
  .hero-subtitulo {
    font-size: 14px;
  }
  .galeria-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
  .cat-card {
    min-height: 180px;
    padding: 24px 18px 20px 18px;
  }
  .cat-icon {
    width: 54px;
    height: 54px;
    font-size: 28px;
    margin-bottom: 14px;
  }
  .cat-nombre {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .vista-galeria {
    padding: 18px 14px 30px 14px;
  }
  .galeria-hero {
    margin: 14px auto 26px auto;
  }
  .hero-titulo {
    font-size: 28px;
  }
  .galeria-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .cat-card {
    min-height: 160px;
    padding: 20px 14px 16px 14px;
  }
  .cat-icon {
    width: 46px;
    height: 46px;
    font-size: 22px;
    border-radius: 12px;
    margin-bottom: 10px;
  }
  .cat-nombre {
    font-size: 16px;
  }
  .cat-paginas {
    font-size: 11px;
    margin-bottom: 10px;
  }
  .cat-cta {
    font-size: 11px;
  }
  .logo-titulo {
    font-size: 18px;
  }
  .logo-subtitulo {
    font-size: 11px;
  }
  .logo-marco {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  .flipbook-container {
    padding: 60px 4px 120px 4px;
  }
  .header {
    padding: 10px 12px;
  }
  .header-title {
    font-size: 14px;
  }
  .ctrl-btn {
    width: 46px;
    height: 46px;
  }
  .controls {
    padding: 10px 12px 18px 12px;
    gap: 14px;
  }
}
/* FIN: Ajustes responsive */


/* ═══════════════════════════════════════════════════════════ */
/* INICIO: Botón Editar (parpadeo azul en controles del visor)   */
/* ═══════════════════════════════════════════════════════════ */
.accion-btn-editar {
  background: rgba(21, 101, 192, 0.2) !important;
  border-color: rgba(21, 101, 192, 0.6) !important;
  color: #64B5F6 !important;
  animation: pulso-editar 1.2s ease-in-out infinite alternate;
}
.accion-btn-editar:hover {
  background: rgba(21, 101, 192, 0.35) !important;
  border-color: #1565C0 !important;
}
@keyframes pulso-editar {
  0% { box-shadow: 0 0 4px rgba(21, 101, 192, 0.2); }
  100% { box-shadow: 0 0 14px rgba(21, 101, 192, 0.5); }
}
/* FIN: Botón Editar */


/* ═══════════════════════════════════════════════════════════ */
/* INICIO: Logo imagen (reemplaza el logo texto)                 */
/* ═══════════════════════════════════════════════════════════ */
.logo-imagen {
  height: 50px;
  width: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}
.logo-imagen:active {
  transform: scale(0.95);
}
/* FIN: Logo imagen */


/* ═══════════════════════════════════════════════════════════ */
/* INICIO: Botón "Descargar App" (esquina derecha del header)    */
/* ═══════════════════════════════════════════════════════════ */
.btn-descargar-app {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #FFB74D, #E65100);
  color: #0D1B2A;
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(230, 81, 0, 0.3);
  animation: pulso-app 2s ease-in-out infinite;
}
.btn-descargar-app:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(230, 81, 0, 0.5);
}
@keyframes pulso-app {
  0%, 100% { box-shadow: 0 4px 16px rgba(230, 81, 0, 0.3); }
  50% { box-shadow: 0 6px 28px rgba(230, 81, 0, 0.6); }
}
@media (max-width: 480px) {
  .btn-descargar-app span { display: none; }
  .btn-descargar-app { padding: 10px; border-radius: 50%; }
}
/* FIN: Botón Descargar App */


/* ═══════════════════════════════════════════════════════════ */
/* INICIO: Formulario de contacto en la galería                  */
/* ═══════════════════════════════════════════════════════════ */
.galeria-contacto {
  width: 100%;
  max-width: 600px;
  margin: 40px auto 20px auto;
  text-align: center;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.contacto-titulo {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #FFB74D;
}
.contacto-desc {
  font-size: 14px;
  opacity: 0.6;
  margin-bottom: 18px;
}
.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}
.contacto-input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.contacto-input:focus {
  border-color: #FFB74D;
}
.contacto-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.contacto-btn {
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #FFB74D, #E65100);
  color: #0D1B2A;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}
.contacto-btn:hover {
  transform: scale(1.02);
}
.contacto-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.contacto-estado {
  margin-top: 10px;
  font-size: 13px;
  min-height: 20px;
}
/* FIN: Formulario de contacto */


/* ═══════════════════════════════════════════════════════════ */
/* INICIO: Panel de control (admin oculto)                       */
/* ═══════════════════════════════════════════════════════════ */
.panel-admin {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.panel-contenido {
  background: #1B2B3D;
  border-radius: 18px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.panel-cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.panel-cabecera h2 {
  font-size: 18px;
  font-weight: 700;
  color: #FFB74D;
}
.panel-cerrar-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.panel-cerrar-btn:hover { opacity: 1; }

/* Pestañas */
.panel-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.panel-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 2px solid transparent;
}
.panel-tab.activa {
  color: #FFB74D;
  border-bottom-color: #FFB74D;
}

/* Estadísticas */
.panel-stats {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
}
.stat-box {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: #FFB74D;
}
.stat-label {
  font-size: 11px;
  opacity: 0.5;
  margin-top: 4px;
}

/* Lista de visitantes/mensajes */
.panel-lista {
  padding: 12px 24px 24px 24px;
  max-height: 400px;
  overflow-y: auto;
}
.panel-vacio {
  text-align: center;
  opacity: 0.4;
  padding: 30px;
  font-size: 14px;
}
.visitante-item, .mensaje-item {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  line-height: 1.5;
}
.visitante-fecha, .mensaje-fecha {
  font-size: 11px;
  opacity: 0.4;
  margin-bottom: 4px;
}
.visitante-dato {
  opacity: 0.7;
}
.mensaje-nombre {
  font-weight: 700;
  color: #FFB74D;
}
.mensaje-cel {
  opacity: 0.6;
  font-size: 12px;
}
.mensaje-texto {
  margin-top: 4px;
  opacity: 0.8;
}
/* FIN: Panel de control */
