/*RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: #fff;
  color: #111;
}

.container {
  width: 100%;
}

/*NAVBAR*/

/*NAVBAR DESKTOP */
.navbar {
  width: 100%;
  background: #ffffff;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 40px;
  border-bottom: 1px solid #e6e6e6;
  position: relative;
  z-index: 1000;
}

.navbar-logo {
  height: 48px;
  width: auto;
  display: block;
  justify-self: start;
}

.navbar .brand {
  justify-self: center;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #0b2a4a;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.navbar nav {
  display: flex;
  gap: 30px;
  justify-self: end;
  align-items: center;
}

.navbar nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.navbar nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #c62828;
  transition: width 0.3s ease;
}

.navbar nav a:hover { color: #c62828; }
.navbar nav a:hover::after { width: 100%; }

/*BOTÓN HAMBURGUESA */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  justify-self: end;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: #0b2a4a;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.abierto span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.abierto span:nth-child(2) { opacity: 0; }
.hamburger.abierto span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Panel Movil */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #e6e6e6;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 16px 0 8px;
}

.nav-mobile.abierto { display: flex; }

.nav-mobile a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  padding: 13px 28px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s, color 0.2s;
}

.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { background: #fdecea; color: #c62828; }

/* Sub-items personalización en móvil */
.nav-mobile .mobile-sub {
  display: flex;
  flex-direction: column;
}

.nav-mobile .mobile-sub-label {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  padding: 13px 28px;
  border-bottom: 1px solid #f0f0f0;
}

.nav-mobile .mobile-sub a {
  padding-left: 44px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  background: #fafafa;
}

.nav-mobile .mobile-sub a:hover { background: #fdecea; color: #c62828; }

/*NAVBAR RESPONSIVE*/
@media (max-width: 768px) {
  .navbar {
    grid-template-columns: auto 1fr auto;
    padding: 14px 20px;
  }

  .navbar-logo {
    height: 38px;
    justify-self: start;
  }

  .navbar .brand {
    justify-self: center;
    font-size: 17px;
  }

  .navbar nav { display: none; }

  .hamburger { display: flex; }
}

.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  background: #ffffff;
  min-width: 200px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  z-index: 999;
}

.dropdown-content.show {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 12px 16px;
  color: #111;
  font-size: 14px;
}

.dropdown-content a:hover {
  background: #f7f7f7;
  color: #c62828;
}

.banner-imgs img {
  width: 100%;
  display: block;
}

.section-title {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  margin: 50px 0 30px;
  color: #111;
}

/*TARJETAS*/

.sports {
  display: flex;
  justify-content: center;
  gap: 50px;              
  padding: 30px 80px;   
  flex-wrap: wrap;
}

.card {
  width: 340px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.card img {
  width: 100%;
  height: 420px;      /* antes 330px */
  object-fit: cover;
}

.card-text {
  text-align: center;
  padding: 16px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #111;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.bottom-banner img {
  width: 100%;
  max-width: 1200px;
  display: block;
  margin: 60px auto;
}

.bottom-banner {
  overflow: hidden;
}

/*FOOTER*/

.footer {
  background: #000;
  color: #f1f1f1;
  padding: 60px 20px 90px;
  position: relative;
}

/* CONTENEDOR */
.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  text-align: center;
}

/* SECCIONES */
.footer-section h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.footer-section a {
  display: block;
  color: #cccccc;
  text-decoration: none;
  font-size: 14px;
  margin: 7px 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-section a:hover {
  color: #ffffff;
  transform: translateX(5px);
}

/* MARCA */
.footer-brand h3 {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.footer-social img {
  width: 32px;
  transition: transform 0.3s ease;
}

.footer-social img:hover {
  transform: scale(1.2);
}

/* =========================
     FOOTER RESPONSIVE
========================= */

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 30px;
  }
}

/* =========================
     WHATSAPP FIJO
========================= */

.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 20px;
  z-index: 9999;
}

.whatsapp-btn img {
  width: 60px;
  transition: transform 0.3s ease;
}

.whatsapp-btn img:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .sports {
    padding: 20px;
    gap: 30px;
  }

  .card {
    width: 90%;
    max-width: 380px;
  }

  .card img {
    height: 360px;
  }
}

/* =========================
   SECCIÓN EQUIPOS
========================= */

.equipos-header {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 25px 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* CONTENEDOR DE CARDS */
.equipos-container {
  max-width: 1200px;
  margin: 60px auto;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  padding: 0 20px;
}

/* CARD GRANDE */
.equipo-card {
  width: 300px;
  background: #f7f7f7;
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.equipo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}

/* TÍTULO DE CARD */
.equipo-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #555;
  letter-spacing: 1px;
}

/* IMAGEN */
.equipo-card img {
  width: 100%;
  height: 420px;
  object-fit: contain;
}

/* CONTENEDOR GENERAL */
.modelos-container {
  padding: 40px;
}

/* OCULTAR MODELOS */
.modelos {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
}

/* CUANDO SE ABRE */
.modelos.activo {
  max-height: 2000px;
  margin-top: 20px;
  padding-bottom: 60px;
}

/* GRID */
.modelos-grid {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

/* TARJETA */
.modelo-card {
  width: 230px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.2);
  text-align: center;
  transition: 0.3s;
}

.modelo-card:hover {
  transform: translateY(-8px);
}

/* IMAGEN */
.modelo-card img {
  width: 90%;
  height: 250px;
  object-fit: cover;
}

/* TEXTO */
.modelo-card h4 {
  margin: 10px 0 5px;
}

.modelo-card p {
  color: #d62828;
  font-weight: bold;
  margin-bottom: 15px;
}

    /* ── Bottom banner con overlay ── */
    .bottom-banner {
      position: relative;
      display: block;
      overflow: hidden;
    }

    .bottom-banner img {
      display: block;
      width: 100%;
      height: auto;
    }

    .bottom-banner-cta {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: flex-end; 
      padding-right: 6%;
      text-decoration: none;
      -webkit-tap-highlight-color: transparent;
      outline: none;
    }

    .bottom-banner-cta span {
      color: #FFFFFF;
      font-size: clamp(1rem, 2.5vw, 2.5rem);
      font-weight: 800;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      text-align: center;
      padding: 0.45em 1em;
      border-radius: 6px;
      transition: transform 0.2s ease;
      user-select: none;
      max-width: 45%;
      word-break: break-word;
    }

    .bottom-banner-cta:hover span {
      transform: scale(1.05);
    }

    @media (max-width: 480px) {
      .bottom-banner-cta {
        justify-content: flex-end;
        padding-right: 5%;
      }
      .bottom-banner-cta span {
        font-size: clamp(0.75rem, 4vw, 1.1rem);
        max-width: 55%;
        padding: 0.3em 0.6em;
        letter-spacing: 0.03em;
      }
    }

    /* Formulario index*/

    .form-hero {
      text-align: center;
      padding: 48px 20px 10px;
    }
    .form-hero h1 {
      font-size: 1.7rem;
      font-weight: 900;
      color: #1a1a1a;
      margin-bottom: 10px;
    }
    .form-hero p {
      font-size: 1rem;
      color: #666;
      max-width: 480px;
      margin: 0 auto;
      line-height: 1.6;
    }
    .form-hero p strong {
      color: #c0392b;
    }

    .contacto-wrap {
      max-width: 560px;
      margin: 32px auto 72px;
      padding: 0 18px;
    }

    .contacto-form { display: flex; flex-direction: column; gap: 16px; }
    .form-group { display: flex; flex-direction: column; gap: 6px; }
    .form-group label { font-size: 0.9rem; font-weight: 700; color: #333; }
    .form-group input,
    .form-group textarea {
      padding: 11px 14px;
      border: 1.5px solid #ccc;
      border-radius: 8px;
      font-size: 0.95rem;
      outline: none;
      transition: border-color .2s;
      background: #fff;
      font-family: inherit;
    }
    .form-group input:focus,
    .form-group textarea:focus { border-color: #c0392b; }
    .req { color: #c0392b; }
    .char-counter { font-size: 0.78rem; color: #999; text-align: right; }

    .btn-enviar {
      width: 100%;
      margin-top: 8px;
      padding: 14px;
      background: #c0392b;
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 1rem;
      font-weight: 800;
      cursor: pointer;
      transition: background .2s;
      letter-spacing: .03em;
    }
    .btn-enviar:hover { background: #96281b; }
    .btn-enviar:disabled { background: #ccc; cursor: not-allowed; }

    /* Confirmación */
    .listo-box {
      text-align: center;
      padding: 48px 24px;
      background: #fafafa;
      border: 1.5px solid #e8e8e8;
      border-radius: 16px;
    }
    .listo-icon { font-size: 3rem; margin-bottom: 14px; }
    .listo-box h2 { font-size: 1.5rem; font-weight: 800; color: #1a1a1a; margin-bottom: 10px; }
    .listo-box p { color: #555; font-size: 0.96rem; margin-bottom: 8px; line-height: 1.6; }
    .btn-inicio {
      display: inline-block;
      margin-top: 24px;
      padding: 12px 28px;
      background: #c0392b;
      color: #fff;
      text-decoration: none;
      border-radius: 8px;
      font-weight: 700;
      font-size: 0.95rem;
      transition: background .2s;
    }
    .btn-inicio:hover { background: #96281b; }

.btn-personalizar:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(40%);
}
/* =========================
   PERSONALIZADOR
========================= */

/* =========================
   EDITOR 3D FINAL
========================= */

.editor-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  height: calc(100vh - 80px);
}

/* VISOR IZQUIERDO */

.editor-left {
  position: relative;
  background: #fff;
}

#threeCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ZOOM */

.zoom-controls {
  position: absolute;
  left: 15px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 20;
  pointer-events: auto; /* recibe toques aunque haya capas encima */
}
 
.zoom-controls button {
  width: 38px;
  height: 38px;
  font-size: 18px;
  cursor: pointer;
  pointer-events: auto;
}

/* BARRA INFERIOR VISOR */

.viewer-bottom-bar {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 70px;
  background: #e5e5e5;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.viewer-bottom-bar button {
  background: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

/* PANEL DERECHO */

.editor-right {
  background: #e9e9e9;
  display: flex;
  flex-direction: column;
}

/* TABS */

.panel-tabs {
  display: flex;
  gap: 8px;
  padding: 15px;
}

.panel-tabs button {
  padding: 6px 12px;
  border: none;
  background: #d4d4d4;
  cursor: pointer;
  font-weight: 600;
}

.panel-tabs .active {
  background: #000;
  color: #fff;
}

/* CONTENIDO PANEL */

/* Ocultar todos los tabs por defecto, mostrar solo el activo */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.panel-content {
  flex: 1;
  padding: 20px;
  background: #dcdcdc;
}

/* RESUMEN */

.panel-summary {
  background: #fff;
  padding: 15px;
  border-top: 1px solid #ccc;
}

model-viewer{
  width:100%;
  height:100%;
  background:white;
}

.editor-left{
  position:relative;
}

#overlayCanvas{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:10;
  pointer-events:none;
}

.handle{
  width:10px;
  height:10px;
  background:red;
}

/* =========================================
   ESTILOS ESPECÍFICOS DEL PERSONALIZADOR
   ========================================= */

/* Hotspot base posicionado por model-viewer */
.hotspot-item {
  position: absolute;
  pointer-events: none;
}

/* Atenuar cuando el punto está detrás del modelo */
.hotspot-item:not([data-visible]) {
  opacity: 0.25;
  pointer-events: none;
}

.hotspot-inner {
  position: relative;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: move;
  user-select: none;
  touch-action: none;
}

.hotspot-inner:active {
  cursor: grabbing;
}


/* Estilos de Texto y Logo */
.hotspot-texto {
  font-weight: bold;
  color: white;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  white-space: nowrap;
  padding: 2px 6px;
  display: block;
  cursor: pointer;
  transition: outline 0.15s;
}

.hotspot-logo {
  object-fit: contain;
  display: block;
  cursor: pointer;
  transition: outline 0.15s;
}

/* Resaltado al hacer clic para indicar selección */
/* Resaltado cuando el hotspot está seleccionado */
.hotspot-item.seleccionado .hotspot-texto,
.hotspot-item.seleccionado .hotspot-logo {
  outline: 2px dashed rgba(255,255,255,0.9);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Panel flotante externo — vive en .editor-left fuera del shadow DOM */
#panelFlotante {
  position: absolute;
  display: none;
  flex-direction: column;
  gap: 6px;
  background: rgba(15, 15, 15, 0.93);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 145px;
  z-index: 200;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
  pointer-events: auto;
}

#panelFlotante button {
  width: 100%;
  padding: 6px 0;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

#pfBtnMover { background: #1565c0; color: white; }
#pfBtnMover:hover { background: #1976d2; }
#pfBtnMover:active { background: #0d47a1; cursor: grabbing; }

#pfBtnEliminar { background: #c62828; color: white; }
#pfBtnEliminar:hover { background: #e53935; }

#panelFlotante label {
  color: #ccc;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#panelFlotante input[type="range"] {
  width: 100%;
  accent-color: #009FE3;
  cursor: pointer;
}

/* Indicador de modo colocación */
#indicadorColocacion {
  display: none;
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 42, 74, 0.9);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.help-text {
  display: block;
  margin-top: 4px;
  color: #888;
  font-size: 12px;
}

:root {
  --blanco: #FFFFFF;
  --azul-celeste: #009FE3;
  --rosa-mexicano: #E6007E;
  --amarillo: #FFED00;
  --azul-marino: #312783;
  --negro: #1D1D1B;
  --verde-bandera: #009640;
  --anaranjado: #F18618;
  --rojo: #E73344;
  --verde-hoja: #86BC25;
  --gris-oxford: #8C8C8B;
  --rosa-pastel: #F08FBA;
  --azul-cielo: #69C8F3;
  --azul-rey: #006298;
  --amarillo-naranjoso: #ECA800;
  --ocre: #C9961A;
  --gris-claro: #BFC2C5;
}

.paleta-colores {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.color {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid #ccc;
  transition: transform 0.2s;
}

.color:hover {
  transform: scale(1.1);
  border-color: #000;
}
/* Estado seleccionado en paleta */
.color.seleccionado {
  border-color: #0b2a4a;
  transform: scale(1.15);
  box-shadow: 0 0 0 3px rgba(11, 42, 74, 0.3);
}
/* =========================
   PERSONALIZADOR THREE.JS
========================= */

/* EDITOR LAYOUT */
.editor-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  height: calc(100vh - 57px);
}

/* VISOR IZQUIERDO */
.editor-left {
  position: relative;
  background: #f0f0f0;
  overflow: hidden;
}

#threeCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#threeCanvas:active {
  cursor: grabbing;
}

/* Indicador de modo */
#indicador {
  display: none;
  position: absolute;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 42, 74, .92);
  color: #fff;
  padding: 9px 22px;
  border-radius: 30px;
  font-size: 13px;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  white-space: nowrap;
}

/* Zoom */
.zoom-controls {
  position: absolute;
  left: 14px;
  bottom: 90px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 20;
}

.zoom-controls button {
  width: 36px;
  height: 36px;
  font-size: 17px;
  cursor: pointer;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* Barra inferior */
.viewer-bottom-bar {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 68px;
  background: #e5e5e5;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 20;
}

.viewer-bottom-bar button {
  background: none;
  border: none;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background .2s;
}

.viewer-bottom-bar button:hover { background: #d0d0d0; }
.viewer-bottom-bar button.activo { background: #0b2a4a; color: #fff; }

/* Panel flotante externo */
#panelFlotante {
  display: none;
  position: absolute;
  flex-direction: column;
  gap: 7px;
  background: rgba(12, 12, 12, .93);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 10px 13px;
  min-width: 148px;
  z-index: 300;
  box-shadow: 0 6px 22px rgba(0,0,0,.6);
}

#panelFlotante button {
  width: 100%;
  padding: 6px 0;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}

#pfBtnMover    { background: #1565c0; color: #fff; }
#pfBtnMover:hover { background: #1e7ed4; }
#pfBtnEliminar { background: #c62828; color: #fff; margin-top: 2px; }
#pfBtnEliminar:hover { background: #e53935; }

#panelFlotante label {
  color: #bbb;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#panelFlotante input[type=range] {
  width: 100%;
  accent-color: #009FE3;
  cursor: pointer;
}

/* PANEL DERECHO */
.editor-right {
  background: #e9e9e9;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.panel-tabs {
  display: flex;
  gap: 7px;
  padding: 14px;
}

.panel-tabs button {
  padding: 6px 12px;
  border: none;
  background: #d4d4d4;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  border-radius: 4px;
}

.panel-tabs .active { background: #000; color: #fff; }

/* Ocultar tabs inactivos */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.panel-content {
  flex: 1;
  padding: 18px;
  background: #dcdcdc;
}

.panel-content h3 {
  font-size: 13px;
  font-weight: 800;
  margin: 14px 0 7px;
  color: #333;
  text-transform: uppercase;
}

.panel-content h3:first-child { margin-top: 0; }

.panel-content input[type=text] {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #bbb;
  border-radius: 5px;
  font-size: 13px;
  margin-bottom: 5px;
}

.panel-content button.add-btn {
  padding: 7px 14px;
  background: #0b2a4a;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background .2s;
}

.panel-content button.add-btn:hover { background: #133d6e; }

.panel-content input[type=file] { font-size: 12px; margin-bottom: 4px; }

.panel-summary {
  background: #fff;
  padding: 14px;
  border-top: 1px solid #ccc;
  font-size: 13px;
}

.panel-summary strong { color: #0b2a4a; }

/* Color del texto picker */
#colorTextoRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

#colorTextoRow label { font-size: 12px; color: #555; }

#colorTextoPicker {
  width: 36px;
  height: 36px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  padding: 0;
}

/* Paleta de colores */
.paleta-colores {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.color {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  cursor: pointer;
  border: 2px solid #ccc;
  transition: transform .2s;
}

.color:hover { transform: scale(1.12); border-color: #555; }

.color.seleccionado {
  border-color: #0b2a4a;
  transform: scale(1.18);
  box-shadow: 0 0 0 3px rgba(11,42,74,.35);
}

.help-text {
  display: block;
  margin-top: 3px;
  color: #888;
  font-size: 11px;
}

/* Estado badge unicidad */
.estado-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}
.estado-badge.disponible {
  background: #e0f7e9;
  color: #2e7d32;
}
.estado-badge.en-uso {
  background: #fdecea;
  color: #c62828;
}

/* Contador de caracteres */
.char-counter {
  display: block;
  font-size: 11px;
  color: #888;
  margin-bottom: 6px;
  margin-top: 2px;
}

/* =========================
   COTIZADOR — MODAL
========================= */

.precio-tag {
  color: #c62828;
  font-size: 12px;
  font-weight: 700;
  margin: 6px 0 10px;
  cursor: pointer;
}

.modelo-card {
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}
.modelo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

/* Overlay */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 20px;
}

/* Caja del modal */
.modal-box {
  background: #fff;
  border-radius: 14px;
  padding: 32px 28px 24px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-box h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0b2a4a;
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  font-size: 20px; cursor: pointer;
  color: #888; transition: color 0.2s;
}
.modal-close:hover { color: #c62828; }

/* Formulario */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.modal-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.modal-form select,
.modal-form input[type="number"] {
  padding: 9px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  background: #f9f9f9;
  transition: border-color 0.2s;
}
.modal-form select:focus,
.modal-form input:focus {
  outline: none;
  border-color: #0b2a4a;
}

/* Resultado */
.resultado-precio {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.resultado-precio span {
  font-weight: 700;
  font-size: 15px;
  color: #1b5e20;
}
.resultado-precio span:last-of-type {
  font-size: 18px;
  color: #0b2a4a;
}
.resultado-precio small {
  font-size: 11px;
  color: #555;
  margin-top: 4px;
}

.precio-error {
  background: #fdecea;
  border: 1px solid #ef9a9a;
  border-radius: 8px;
  padding: 12px 14px;
  color: #b71c1c;
  font-size: 13px;
  margin-bottom: 16px;
}

/* Botones del modal */
.btn-cotizar {
  width: 100%;
  padding: 12px;
  background: #0b2a4a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 10px;
}
.btn-cotizar:hover { background: #133d6e; }
.btn-cotizar:disabled { background: #999; cursor: not-allowed; }

.btn-personalizar {
  display: block;
  width: 100%;
  padding: 11px;
  background: #c62828;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-personalizar:hover { background: #e53935; }

/* =========================
   PANEL SUMMARY — PERSONALIZAR
========================= */

.panel-summary {
  background: #fff;
  padding: 14px 16px;
  border-top: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-conjunto {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #555;
}

.summary-precio-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #555;
}

.summary-label { color: #888; }

.summary-price {
  color: #c62828;
  font-size: 15px;
}

.btn-siguiente {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  background: #c62828;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.btn-siguiente:hover { background: #e53935; }

/*COTIZAR — PASOS*/

.cotizar-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 22px 40px;
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
}

.step {
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #aaa;
  background: #f0f0f0;
  white-space: nowrap;
}

.step.active {
  background: #0b2a4a;
  color: #fff;
}

.step.done {
  background: #e0f7e9;
  color: #2e7d32;
}

.step-sep {
  width: 40px;
  height: 2px;
  background: #ddd;
}

/*COTIZAR — RESUMEN*/

.cotizar-resumen {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  background: #f7f7f7;
  border-bottom: 1px solid #e6e6e6;
  padding: 14px 40px;
}

.resumen-info {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}

.resumen-etiqueta { color: #888; }

.resumen-precio {
  color: #c62828;
  font-size: 15px;
}

/*COTIZAR — SECCIÓN GENERAL */

.cotizar-section {
  max-width: 760px;
  margin: 40px auto;
  padding: 0 20px 60px;
}

.cotizar-titulo {
  font-size: 22px;
  font-weight: 800;
  color: #0b2a4a;
  margin-bottom: 8px;
}

.cotizar-desc {
  color: #666;
  font-size: 14px;
  margin-bottom: 28px;
}

/*COTIZAR — TALLAS*/

.tallas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 500px) {
  .tallas-grid { grid-template-columns: repeat(2, 1fr); }
}

.talla-card {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}

.talla-card:has(.talla-input[value]:not([value="0"])) {
  border-color: #0b2a4a;
  box-shadow: 0 0 0 3px rgba(11,42,74,.1);
}

.talla-nombre {
  font-size: 20px;
  font-weight: 900;
  color: #0b2a4a;
  margin-bottom: 12px;
}

.talla-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.talla-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #0b2a4a;
  background: #fff;
  color: #0b2a4a;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: background .15s, color .15s;
}

.talla-btn:hover { background: #0b2a4a; color: #fff; }

.talla-input {
  width: 44px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #111;
  -moz-appearance: textfield;
}
.talla-input::-webkit-outer-spin-button,
.talla-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.tallas-total-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: #444;
  border-top: 1px solid #e0e0e0;
  padding-top: 16px;
  margin-bottom: 28px;
}

.tallas-total-row strong { color: #0b2a4a; font-size: 16px; }

/*COTIZAR — CONTACTO*/

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #444;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.form-group input,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  background: #fafafa;
  transition: border-color .2s;
  font-family: inherit;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0b2a4a;
  background: #fff;
}

.req { color: #c62828; }
.opcional { color: #aaa; font-weight: 400; text-transform: none; font-size: 11px; }

/*COTIZAR — ACCIONES */

.cotizar-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
}

.btn-back {
  padding: 11px 24px;
  background: #fff;
  border: 2px solid #0b2a4a;
  color: #0b2a4a;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-back:hover { background: #0b2a4a; color: #fff; }

.btn-next {
  padding: 11px 28px;
  background: #c62828;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.btn-next:hover { background: #e53935; }
.btn-next:disabled { background: #aaa; cursor: not-allowed; }

/*COTIZAR — CONFIRMACIÓN */

.listo-box {
  text-align: center;
  padding: 40px 20px;
}

.listo-icon {
  font-size: 60px;
  margin-bottom: 16px;
}

.listo-box h2 {
  font-size: 26px;
  font-weight: 900;
  color: #0b2a4a;
  margin-bottom: 12px;
}

.listo-box p {
  font-size: 15px;
  color: #555;
  margin-bottom: 8px;
}

.listo-resumen {
  margin: 28px auto 0;
  max-width: 500px;
  text-align: left;
}

.listo-tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.listo-tabla th,
.listo-tabla td {
  padding: 9px 14px;
  border-bottom: 1px solid #eee;
}

.listo-tabla th {
  color: #888;
  font-weight: 600;
  width: 42%;
}

.listo-tabla td { color: #111; }

.btn-personalizar {
  display: inline-block;
  width: 100%;
  padding: 11px;
  background: #c62828;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background .2s;
  cursor: pointer;
}
.btn-personalizar:hover { background: #e53935; }

/*PERSONALIZAR*/
.btn-siguiente:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(40%);
}
.aviso-conjunto {
  font-size: 0.82rem;
  color: #c0392b;
  background: #fdecea;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  padding: 7px 10px;
  margin-bottom: 8px;
  text-align: center;
}

#indicadorPrenda {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff3e0;
  border: 1px solid #f0a500;
  border-radius: 8px;
  padding: 7px 12px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: #7a4f00;
}
#indicadorPrenda strong {
  color: #c0392b;
  font-size: 0.95rem;
}
#hintCambiarPrenda {
  margin-left: auto;
  font-size: 0.75rem;
  color: #aaa;
}
.prenda-label-texto {
  font-size: 0.8rem;
  color: #888;
  margin: 0 0 6px 0;
}

/*SUCURSALES*/
    .sucursales-hero {
      background: linear-gradient(135deg, #c0392b 0%, #7b241c 100%);
      padding: 52px 20px 40px;
      text-align: center;
    }
    .sucursales-hero h1 {
      color: #fff;
      font-size: clamp(1.6rem, 4vw, 2.4rem);
      font-weight: 900;
      margin: 0 0 8px;
      letter-spacing: .03em;
    }
    .sucursales-hero p {
      color: rgba(255,255,255,.80);
      font-size: 1rem;
      margin: 0;
    }

    .sucursales-wrap {
      max-width: 980px;
      margin: 0 auto;
      padding: 40px 20px 0;
    }
    .sucursales-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 20px;
      margin-bottom: 40px;
    }
    .suc-card {
      background: #fff;
      border: 1.5px solid #eee;
      border-radius: 14px;
      padding: 22px 20px;
      display: flex;
      gap: 14px;
      align-items: flex-start;
      box-shadow: 0 2px 10px rgba(0,0,0,.06);
      transition: box-shadow .2s, transform .2s, border-color .2s;
      cursor: pointer;
    }
    .suc-card:hover {
      box-shadow: 0 6px 22px rgba(192,57,43,.15);
      transform: translateY(-3px);
    }
    .suc-card.activa {
      border-color: #c0392b;
      box-shadow: 0 6px 24px rgba(192,57,43,.25);
      transform: translateY(-3px);
    }
    .suc-icon {
      width: 42px; height: 42px;
      background: #c0392b;
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      font-size: 1.3rem;
    }
    .suc-info h3 {
      font-size: 1rem;
      font-weight: 800;
      color: #1a1a1a;
      margin: 0 0 4px;
    }
    .suc-info p {
      font-size: 0.85rem;
      color: #666;
      margin: 0 0 2px;
      line-height: 1.5;
    }
    .suc-badge {
      display: inline-block;
      margin-top: 6px;
      padding: 2px 10px;
      background: #fdecea;
      color: #c0392b;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 700;
    }
    .suc-hint {
      font-size: 0.75rem;
      color: #aaa;
      margin-top: 6px;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .map-section {
      max-width: 980px;
      margin: 0 auto;
      padding: 0 20px 60px;
    }
    .map-title {
      font-size: 1.1rem;
      font-weight: 800;
      color: #1a1a1a;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .map-title::before {
      content: "";
      display: inline-block;
      width: 4px; height: 20px;
      background: #c0392b;
      border-radius: 2px;
    }
    #map {
      height: 460px;
      width: 100%;
      border-radius: 14px;
      overflow: hidden;
      border: 1.5px solid #e0e0e0;
      box-shadow: 0 4px 18px rgba(0,0,0,.09);
    }

/*RESPONSIVE: PÁGINAS DE DEPORTE*/

@media (max-width: 768px) {

  .equipos-header {
    font-size: 20px;
    padding: 18px 16px;
    letter-spacing: 0.5px;
  }

  .equipos-container {
    flex-direction: column;
    align-items: center;
    gap: 28px;
    margin: 32px auto;
    padding: 0 16px;
  }

  .equipo-card {
    width: 90%;
    max-width: 360px;
    padding: 20px 16px;
  }

  .equipo-card img {
    height: 320px;
  }

  .equipo-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .modelos-container {
    padding: 20px 12px;
  }

  .modelos-grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .modelo-card {
    width: 90%;
    max-width: 340px;
  }

  .modelo-card img {
    height: 220px;
    width: 100%;
    object-fit: contain;
  }

  .modelo-card h4 {
    font-size: 15px;
  }

  .modelos h2 {
    text-align: center;
    font-size: 20px;
  }

  .modal-box {
    width: 92%;
    padding: 24px 18px;
  }
}

@media (max-width: 480px) {

  .equipos-header {
    font-size: 17px;
    padding: 14px 12px;
  }

  .equipo-card {
    width: 95%;
  }

  .equipo-card img {
    height: 260px;
  }

  .modelo-card {
    width: 95%;
  }

  .modelo-card img {
    height: 190px;
  }
}

.palette-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ccc;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  box-sizing: border-box;
}
.swatch:hover {
  transform: scale(1.2);
  border-color: #555;
}
.swatch.seleccionado {
  border: 3px solid #222;
  transform: scale(1.15);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.3);
}

/*RESPONSIVE MOVIL*/
@media (max-width: 768px) {

  .editor-layout {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    height: calc(100vh - 66px);
    overflow: hidden;
  }

  .editor-left {
    flex: 1 1 0;
    min-height: 0;
    position: relative;
    background: #f0f0f0;
    overflow: hidden;
  }

  #threeCanvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
  }

  .zoom-controls {
    position: absolute;
    left: 10px;
    bottom: 10px;
    flex-direction: column;
    gap: 6px;
    z-index: 30;
  }
  .zoom-controls button {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
    touch-action: manipulation;
    cursor: pointer;
  }

  .viewer-bottom-bar {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 30;
    background: none;
    border: none;
    padding: 0;
  }
  .viewer-bottom-bar button {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    border: 2px solid #ccc;
    background: #fff;
    color: #555;
    cursor: pointer;
  }
  .viewer-bottom-bar button.activo {
    background: #111;
    color: #fff;
    border-color: #111;
  }

  #indicador {
    bottom: 56px;
    font-size: 12px;
    padding: 6px 14px;
  }

  #indicadorPrenda { display: none !important; }

  .editor-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    height: 236px;
    min-height: 236px;
    overflow: hidden;
    z-index: 50;
    position: relative;
    padding-bottom: 52px;
  }

  .editor-right.panel-abierto { max-height: unset; }

  .panel-tabs {
    display: flex;
    flex-shrink: 0;
    height: 44px;
    min-height: 44px;
    background: #fafafa;
    border-bottom: 1px solid #e8e8e8;
  }

  .panel-tabs button {
    flex: 1;
    height: 44px;
    padding: 0 2px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #888;
    cursor: pointer;
    transition: color .15s, border-color .15s;
  }
  .panel-tabs button.active {
    color: #c62828;
    border-bottom: 3px solid #c62828;
    background: #fff;
  }

  /*CONTENIDO DE TABS*/
  .tab-panel {
    flex: 1 1 0;
    overflow-y: auto;
    padding: 10px 14px 8px;
    display: none;
  }
  .tab-panel.active { display: block; }

  .panel-content h3 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 8px;
  }

  .panel-content input[type=text] {
    font-size: 14px;
    padding: 7px 10px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 6px;
  }

  .paleta-colores {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
  }
  .color {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 2px solid #ddd;
    cursor: pointer;
    flex-shrink: 0;
  }
  .color.seleccionado {
    border: 2px solid #111;
    box-shadow: 0 0 0 2px rgba(0,0,0,.25);
  }

  .swatch { width: 24px; height: 24px; }

  #colorTextoRow2 label,
  #colorNumeroRow label {
    font-size: 11px;
    color: #888;
    display: block;
    margin-bottom: 4px;
  }

  .char-counter { font-size: 10px; color: #aaa; }

  .help-text { font-size: 10px; color: #aaa; display: block; margin-top: 4px; }

  #logoInput2 { font-size: 12px; width: 100%; }

  .panel-summary {
    position: absolute !important;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 6px 12px;
    z-index: 60;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    height: 52px;
    box-shadow: 0 -2px 8px rgba(0,0,0,.08);
  }

  .summary-conjunto { display: none; }

  .summary-precio-row {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
  }
  .summary-label { font-size: 9px; color: #aaa; }
  .summary-price { font-size: 16px; font-weight: 800; color: #111; }

  .aviso-conjunto {
    font-size: 10px;
    flex: 1;
    color: #c62828;
  }

  .btn-siguiente {
    flex: 0 0 auto;
    min-width: 120px;
    margin-top: 0 !important;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
  }
}

#touchOverlay {
  display: none;
}
 
@media (max-width: 768px) {
  #touchOverlay {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 25;
    background: transparent;
    touch-action: none;
    pointer-events: none;
  }

  .zoom-controls {
    pointer-events: auto;
  }
  .zoom-controls button {
    pointer-events: auto;
  }

  .viewer-bottom-bar {
    pointer-events: auto;
  }
  .viewer-bottom-bar button {
    pointer-events: auto;
  }
 
  /* En móvil: fixed — posición y ancho los calcula JS (mostrarPanel) */
  #panelFlotante {
    position: fixed !important;
    right: unset !important;
    bottom: unset !important;
    z-index: 500 !important;
    box-sizing: border-box !important;
    padding: 8px 10px !important;
    touch-action: auto !important;
    pointer-events: auto !important;
  }
  #panelFlotante button {
    font-size: 11px !important;
    padding: 7px 0 !important;
    touch-action: manipulation !important;
    pointer-events: auto !important;
  }
  #panelFlotante label { font-size: 10px !important; }
  #panelFlotante input[type=range] { touch-action: pan-x !important; }
}