/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Paleta Vice City */
  --color-primary: #667eea;
  --color-secondary: #764ba2;
  --color-accent-pink: #ffb6c1;
  --color-accent-hot-pink: #ff69b4;
  --color-accent-purple: #8a2be2;
  --color-accent-blue: #00bfff;
  
  /* Sombras y efectos */
  --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 20px rgba(0, 0, 0, 0.15);
  --shadow-large: 0 20px 40px rgba(0, 0, 0, 0.3);
  
  /* Animaciones */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#map {
  height: 100vh;
  width: 100%;
}

/* ========== MODAL PRINCIPAL ========== */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  animation: fadeIn 0.3s var(--ease-smooth);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-box {
  background: white;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: 24px;
  position: relative;
  z-index: 1000;
  overflow: hidden;
  box-shadow: var(--shadow-large);
  animation: modalSlideUp 0.4s var(--ease-bounce);
  display: flex;
  flex-direction: column;
}

/* Contenedor con scroll para el contenido del modal */
.modal-body {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  max-height: calc(90vh - 100px);
}

.modal-body::-webkit-scrollbar {
  width: 10px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
  margin: 8px 0;
}

.modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
  border-radius: 10px;
  border: 2px solid #f1f1f1;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-secondary), var(--color-primary));
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header con gradiente */
.modal-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: 24px 80px 24px 32px;
  position: relative;
  overflow: hidden;
}

.modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 182, 193, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.modal-title {
  font-family: 'Impact', 'Arial Black', sans-serif;
  font-size: 2.2rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-style: italic;
  position: relative;
  margin: 0;
  line-height: 1.1;
  text-shadow: 
    3px 3px 0px rgba(255, 105, 180, 0.6),
    6px 6px 0px rgba(138, 43, 226, 0.4),
    -1px -1px 0px rgba(0, 191, 255, 0.3);
  animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
  0%, 100% {
    text-shadow: 
      3px 3px 0px rgba(255, 105, 180, 0.6),
      6px 6px 0px rgba(138, 43, 226, 0.4),
      -1px -1px 0px rgba(0, 191, 255, 0.3);
  }
  50% {
    text-shadow: 
      3px 3px 0px rgba(255, 105, 180, 0.8),
      6px 6px 0px rgba(138, 43, 226, 0.6),
      -1px -1px 0px rgba(0, 191, 255, 0.5);
  }
}

.modal-subtitle {
  color: white;
  font-size: 0.8rem;
  opacity: 0.95;
  margin: 0;
  letter-spacing: 0.8px;
  font-weight: 300;
  position: relative;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255, 182, 193, 0.3);
}

.modal-subtitle::before {
  content: '◆';
  margin-right: 8px;
  opacity: 0.7;
  font-size: 0.65rem;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  z-index: 10;
}

.close-icon {
  color: white;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg) scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Imagen principal del modal */
.main-image-container {
  width: 100%;
  max-height: 400px;
  padding: 28px 32px 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#modal-main-image {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow-large);
  border: 4px solid white;
}

/* Botones de categorías */
.category-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0 32px 24px;
  flex-wrap: wrap;
}

.category-btn {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border: 3px solid rgba(255, 182, 193, 0.6);
  padding: 20px 28px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 140px;
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.category-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 182, 193, 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
}

.category-btn:hover::before {
  opacity: 1;
}

.category-btn svg {
  color: white;
  transition: transform 0.3s var(--ease-smooth);
}

.category-btn span {
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s var(--ease-smooth);
}

.category-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-large);
  border-color: rgba(255, 182, 193, 1);
}

.category-btn:hover svg {
  transform: scale(1.2);
}

.category-btn:active {
  transform: translateY(-2px);
}

/* Galería mejorada */
.gallery {
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.gallery::-webkit-scrollbar {
  width: 8px;
}

.gallery::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.gallery::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
  border-radius: 10px;
}

.gallery-item {
  text-align: center;
  cursor: pointer;
  animation: fadeInUp 0.5s var(--ease-smooth) backwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-item-card {
  background: white;
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s var(--ease-smooth);
  transform: rotate(-2deg);
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.gallery-item-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-accent-pink) 0%, var(--color-accent-purple) 100%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
  z-index: 0;
}

.gallery-item:nth-child(even) .gallery-item-card {
  transform: rotate(2deg);
}

.gallery-item-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.05);
  box-shadow: var(--shadow-large);
  border-color: var(--color-accent-pink);
}

.gallery-item-card:hover::before {
  opacity: 0.1;
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  position: relative;
  z-index: 1;
  filter: brightness(0.95) contrast(1.05);
  transition: filter 0.3s var(--ease-smooth);
}

.gallery-item-card:hover img {
  filter: brightness(1.05) contrast(1.1);
}

.gallery-item p {
  font-size: 0.9rem;
  margin-top: 12px;
  color: #333;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
  transition: color 0.3s var(--ease-smooth);
}

.gallery-item-card:hover p {
  color: var(--color-secondary);
}

/* Botón principal */
.btn-primary {
  margin: 24px 32px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  box-shadow: var(--shadow-medium);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-large);
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

/* ========== PANEL DE DETALLE ========== */
.detail {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  z-index: 1000;
  overflow-y: auto;
  animation: fadeIn 0.3s var(--ease-smooth);
}

.detail-close {
  position: absolute;
  top: 20px;
  left: 30px;
  background: rgba(255, 182, 193, 0.9);
  color: var(--color-secondary);
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 25px;
  z-index: 1001;
  transition: all 0.3s var(--ease-smooth);
  letter-spacing: 0.5px;
}

.detail-close:hover {
  background: rgba(255, 182, 193, 1);
  transform: scale(1.05);
  box-shadow: var(--shadow-medium);
}

.detail-content {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.detail-image-container {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

#detail-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.5s var(--ease-smooth);
  transform: rotate(90deg) scale(1.5);
  transform-origin: center center;
}

.detail-image-container:hover #detail-main-image {
  filter: brightness(1);
}

.detail-text-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: 80px 60px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.detail-text-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 182, 193, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.detail-place-title {
  font-family: 'Impact', 'Arial Black', sans-serif;
  font-size: 3rem;
  color: white;
  text-transform: uppercase;
  text-shadow: 
    4px 4px 0px rgba(255, 105, 180, 0.8),
    8px 8px 0px rgba(138, 43, 226, 0.6),
    -2px -2px 0px rgba(0, 191, 255, 0.5);
  letter-spacing: 0.05em;
  line-height: 1.1;
  font-style: italic;
  margin: 0 0 1.5rem 0;
  position: relative;
  transform: rotate(-2deg);
}

.detail-section-title {
  font-family: 'Impact', 'Arial Black', sans-serif;
  font-size: 2rem;
  color: rgba(255, 182, 193, 1);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

.detail-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: white;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
}

.detail-gallery {
  display: flex;
  gap: 15px;
  margin-top: 2rem;
  flex-wrap: wrap;
  position: relative;
}

.detail-gallery img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 3px solid rgba(255, 182, 193, 0.5);
  transition: all 0.3s var(--ease-smooth);
}

.detail-gallery img:hover {
  transform: scale(1.1) rotate(3deg);
  border-color: rgba(255, 182, 193, 1);
  box-shadow: var(--shadow-large);
}

/* ========== VISOR DE IMAGEN CON ZOOM ========== */
.image-zoom-viewer {
  width: 100%;
  height: 100%;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 16px;
}

.image-zoom-viewer.hidden {
  display: none;
}

.zoom-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(102, 126, 234, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px;
  border-radius: 12px;
  box-shadow: var(--shadow-large);
  z-index: 100;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.zoom-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  color: white;
}

.zoom-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
  border-color: rgba(255, 182, 193, 0.8);
}

.zoom-btn:active {
  transform: scale(0.95);
}

.zoom-btn svg {
  width: 20px;
  height: 20px;
}

.zoom-level {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 0;
  letter-spacing: 0.5px;
}

.zoom-image-container {
  width: 100%;
  flex: 1;
  min-height: 500px;
  overflow: hidden;
  cursor: grab;
  position: relative;
  background: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 16px;
}

.zoom-image-container:active {
  cursor: grabbing;
}

#zoom-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1) rotate(90deg);
  transform-origin: center center;
  transition: none;
  width: 98%;
  height: auto;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

/* ========== BOTÓN DE EXPANDIR IMAGEN ========== */
.image-expand-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(102, 126, 234, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  z-index: 10;
  color: white;
  opacity: 0;
  pointer-events: none;
}

.detail:not(.hidden) .image-expand-btn {
  opacity: 1;
  pointer-events: auto;
}

.image-expand-btn:hover {
  background: rgba(118, 75, 162, 1);
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.image-expand-btn svg {
  width: 24px;
  height: 24px;
}

/* ========== VISOR DE IMAGEN A PANTALLA COMPLETA ========== */
.image-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s var(--ease-smooth);
}

.image-viewer-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  z-index: 10;
  color: white;
  font-size: 2rem;
  font-weight: 300;
}

.image-viewer-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg) scale(1.1);
  border-color: rgba(255, 182, 193, 0.8);
}

#viewer-image {
  max-width: 95%;
  max-height: 95vh;
  object-fit: contain;
  transition: transform 0.1s ease-out;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: grab;
  user-select: none;
}

#viewer-image:active {
  cursor: grabbing;
}

.image-viewer-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  background: rgba(102, 126, 234, 0.9);
  backdrop-filter: blur(20px);
  padding: 16px 24px;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.viewer-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  color: white;
}

.viewer-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
  border-color: rgba(255, 182, 193, 0.8);
}

.viewer-btn svg {
  width: 24px;
  height: 24px;
}

/* ========== VISOR DE PUNTOS DE CONTROL ========== */
.puntos-viewer-container,
.datos-punto-container {
  background: white;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  border-radius: 24px;
  position: relative;
  z-index: 1000;
  overflow: hidden;
  box-shadow: var(--shadow-large);
  animation: modalSlideUp 0.4s var(--ease-bounce);
  display: flex;
  flex-direction: column;
}

/* Contenedor del mapa Leaflet */
.mapa-puntos-container {
  width: 100%;
  height: 600px;
  position: relative;
  border-radius: 0;
  overflow: hidden;
}

/* Estilos personalizados para los marcadores de puntos */
.punto-control-marker {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  position: relative;
}

.punto-control-marker::before {
  content: '';
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 105, 180, 0.3);
  animation: pulseMarker 2s infinite;
  z-index: -1;
}

@keyframes pulseMarker {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.3;
  }
  100% {
    transform: scale(0.8);
    opacity: 1;
  }
}

.punto-control-marker:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
  border-color: var(--color-accent-pink);
}

/* Marcadores de puntos de información (estilo diferente) */
.punto-info-marker {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
  border-radius: 50%;
  border: 3px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  position: relative;
}

.punto-info-marker::before {
  content: '';
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 107, 107, 0.3);
  animation: pulseMarker 2s infinite;
  z-index: -1;
}

.punto-info-marker:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
  border-color: #ffd700;
}

/* Tabla de datos del punto */
.datos-punto-content {
  padding: 32px 40px;
  overflow-y: auto;
  flex: 1;
  max-height: calc(90vh - 250px);
}

.tabla-punto-control {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.tabla-punto-control thead {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
}

.tabla-punto-control th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.tabla-punto-control tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.2s var(--ease-smooth);
}

.tabla-punto-control tbody tr:hover {
  background: rgba(102, 126, 234, 0.05);
}

.tabla-punto-control tbody tr:last-child {
  border-bottom: none;
}

.tabla-punto-control td {
  padding: 14px 16px;
}

.tabla-punto-control td:first-child {
  font-weight: 600;
  color: var(--color-primary);
  width: 40%;
}

.tabla-punto-control td:last-child {
  color: #333;
}

/* Descripción de puntos de información */
.info-descripcion-text {
  color: #333;
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
}

.info-descripcion-text h3 {
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.info-descripcion-text p {
  margin-bottom: 16px;
}

.info-descripcion-text ul {
  margin-left: 20px;
  margin-bottom: 16px;
}

.info-descripcion-text li {
  margin-bottom: 8px;
}

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

/* ========== VISOR DXF (CURVAS) ========== */
.dxf-viewer-container {
  background: white;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  border-radius: 24px;
  position: relative;
  z-index: 1000;
  overflow: hidden;
  box-shadow: var(--shadow-large);
  animation: modalSlideUp 0.4s var(--ease-bounce);
  display: flex;
  flex-direction: column;
}

.dxf-viewer-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: 24px 80px 24px 32px;
  position: relative;
  overflow: hidden;
}

.dxf-viewer-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 182, 193, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.dxf-title {
  font-family: 'Impact', 'Arial Black', sans-serif;
  font-size: 2.2rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-style: italic;
  position: relative;
  margin: 0;
  line-height: 1.1;
  text-shadow: 
    3px 3px 0px rgba(255, 105, 180, 0.6),
    6px 6px 0px rgba(138, 43, 226, 0.4),
    -1px -1px 0px rgba(0, 191, 255, 0.3);
  animation: titlePulse 3s ease-in-out infinite;
}

.dxf-canvas-container {
  width: 100%;
  height: 600px;
  background: #f5f5f5;
  position: relative;
  flex: 1;
}

.dxf-controls {
  position: absolute;
  top: 100px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(102, 126, 234, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px;
  border-radius: 12px;
  box-shadow: var(--shadow-large);
  z-index: 100;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.dxf-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  color: white;
}

.dxf-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
  border-color: rgba(255, 182, 193, 0.8);
}

.dxf-btn:active {
  transform: scale(0.95);
}

.dxf-btn svg {
  width: 20px;
  height: 20px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .detail-content {
    grid-template-columns: 1fr;
  }

  .detail-image-container {
    height: 50vh;
  }

  .detail-text-section {
    padding: 40px 30px;
  }

  .detail-place-title {
    font-size: 2.5rem;
  }

  .detail-section-title {
    font-size: 1.8rem;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    padding: 24px 32px;
  }

  .modal-header {
    padding: 20px 70px 20px 24px;
  }

  .modal-title {
    font-size: 1.9rem;
    line-height: 1.1;
    margin: 0;
  }

  .modal-body {
    max-height: calc(90vh - 90px);
  }

  .main-image-container {
    max-height: 320px;
    padding: 24px 28px 18px;
    margin-bottom: 20px;
  }

  #modal-main-image {
    max-height: 300px;
  }

  .category-buttons {
    gap: 16px;
    padding: 0 32px 24px;
  }

  .category-btn {
    min-width: 120px;
    padding: 16px 20px;
  }
}

@media (max-width: 768px) {
  .modal-box {
    width: 95%;
    max-height: 90vh;
    border-radius: 16px;
  }

  .modal-header {
    padding: 24px 70px 16px 24px;
  }

  .modal-header {
    padding: 18px 60px 18px 20px;
  }

  .modal-title {
    font-size: 1.5rem;
    line-height: 1.1;
    margin: 0;
  }

  .modal-body {
    max-height: calc(90vh - 85px);
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    padding: 16px 24px;
  }

  .gallery img {
    height: 150px;
  }

  .btn-primary {
    margin: 20px 24px;
    padding: 14px 24px;
    font-size: 0.9rem;
  }

  .main-image-container {
    max-height: 250px;
    padding: 16px 20px;
    margin-bottom: 20px;
  }

  #modal-main-image {
    max-height: 250px;
    border: 3px solid white;
  }

  .category-buttons {
    gap: 12px;
    padding: 0 24px 20px;
  }

  .category-btn {
    min-width: 100px;
    padding: 14px 16px;
    gap: 8px;
  }

  .category-btn svg {
    width: 20px;
    height: 20px;
  }

  .category-btn span {
    font-size: 0.8rem;
  }

  .detail-place-title {
    font-size: 2rem;
    transform: rotate(-1deg);
  }

  .detail-section-title {
    font-size: 1.5rem;
  }

  .detail-description {
    font-size: 1rem;
  }

  .detail-close {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .image-expand-btn {
    width: 44px;
    height: 44px;
    bottom: 15px;
    right: 15px;
  }

  .image-expand-btn svg {
    width: 20px;
    height: 20px;
  }

  .image-viewer-close {
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .image-viewer-controls {
    bottom: 20px;
    padding: 12px 16px;
    gap: 12px;
  }

  .viewer-btn {
    width: 40px;
    height: 40px;
  }

  .viewer-btn svg {
    width: 20px;
    height: 20px;
  }

  #viewer-image {
    max-width: 95%;
    max-height: 80vh;
  }

  .zoom-controls {
    top: 15px;
    right: 15px;
    padding: 10px;
    gap: 6px;
  }

  .zoom-btn {
    width: 36px;
    height: 36px;
  }

  .zoom-level {
    font-size: 0.8rem;
    padding: 6px 0;
  }
}

/* ========== PUNTOS DE INFORMACIÓN DEL CAMPUS ========== */
.info-lugar-container {
  background: white;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: 24px;
  position: relative;
  z-index: 1000;
  overflow: hidden;
  box-shadow: var(--shadow-large);
  animation: modalSlideUp 0.4s var(--ease-bounce);
  display: flex;
  flex-direction: column;
}

.info-lugar-content {
  padding: 32px 40px;
  overflow-y: auto;
  flex: 1;
  max-height: calc(90vh - 250px);
}

.info-lugar-body h3 {
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 600;
}

.info-lugar-body h3:first-child {
  margin-top: 0;
}

.info-lugar-body p {
  line-height: 1.7;
  color: #555;
  margin-bottom: 12px;
}

.info-lugar-body strong {
  color: var(--color-primary);
  font-weight: 600;
}

.info-lugar-body ul {
  list-style: none;
  padding-left: 0;
  margin: 12px 0;
}

.info-lugar-body ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: #555;
  line-height: 1.6;
}

.info-lugar-body ul li:before {
  content: "▸";
  position: absolute;
  left: 8px;
  color: var(--color-primary);
  font-weight: bold;
}

/* Marcador de información */
.punto-info-marker {
  background: linear-gradient(135deg, #FF6B9D, #C44569);
  width: 40px;
  height: 40px;
  border-radius: 50% 50% 50% 0;
  border: 3px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  position: relative;
  transform: rotate(-45deg);
}

.punto-info-marker span {
  transform: rotate(45deg);
}

.punto-info-marker::before {
  content: '';
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 107, 157, 0.3);
  animation: pulseMarker 2s infinite;
  z-index: -1;
}

.punto-info-marker:hover {
  transform: rotate(-45deg) scale(1.15);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.6);
  border-color: white;
}

/* ========== MARCADORES MEJORADOS DE INFORMACIÓN ========== */
.punto-info-marker-mejorado {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  transform: rotate(-45deg);
  animation: markerFadeIn 0.6s ease-out both;
}

.punto-info-marker-mejorado span {
  transform: rotate(45deg);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.punto-info-marker-mejorado::before {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.15;
  animation: pulseMarkerInfo 3s infinite;
  z-index: -1;
}

@keyframes markerFadeIn {
  0% {
    opacity: 0;
    transform: rotate(-45deg) scale(0.3) translateY(-20px);
  }
  60% {
    transform: rotate(-45deg) scale(1.1) translateY(0);
  }
  100% {
    opacity: 1;
    transform: rotate(-45deg) scale(1) translateY(0);
  }
}

@keyframes pulseMarkerInfo {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.1;
  }
}

.punto-info-marker-mejorado:hover {
  transform: rotate(-45deg) scale(1.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  border-width: 3px;
}

/* Marcadores adaptativos por nivel de zoom */
.punto-info-marker-mejorado.zoom-large {
  width: 36px;
  height: 36px;
  font-size: 0.9rem;
  border-width: 3px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.punto-info-marker-mejorado.zoom-large span {
  font-size: 0.9rem;
}

.punto-info-marker-mejorado.zoom-xlarge {
  width: 42px;
  height: 42px;
  font-size: 1rem;
  border-width: 3px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.punto-info-marker-mejorado.zoom-xlarge span {
  font-size: 1rem;
}

/* Tooltips mejorados */
.marker-tooltip-info {
  background: rgba(0, 0, 0, 0.85) !important;
  border: none !important;
  border-radius: 8px !important;
  color: white !important;
  padding: 8px 14px !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(10px);
}

.marker-tooltip-info::before {
  border-top-color: rgba(0, 0, 0, 0.85) !important;
}

/* Popup mejorado */
.popup-info-mejorado .leaflet-popup-content-wrapper {
  border-radius: 16px !important;
  padding: 0 !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

.popup-info-mejorado .leaflet-popup-content {
  margin: 16px !important;
}

.popup-info-mejorado .leaflet-popup-tip {
  background: white !important;
}