:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #38bdf8;
  --accent: #06b6d4;
  --bg-dark: #0a0e1a;
  --bg-card: #0f172a;
  --bg-card-hover: #1e293b;
  --border: #1e293b;
  --border-light: #334155;
  --text-light: #e2e8f0;
  --text-muted: #94a3b8;
  --success: #10b981;
  --gradient-1: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 14, 26, 0.98);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1800px;
  margin: auto;
  padding: 18px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 15px;
  cursor: pointer;
}

.nav-links a:hover {
  color: var(--primary-light);
}

/* GALERÍA PRINCIPAL */
.gallery-container {
  max-width: 1400px;
  margin: 100px auto 60px;
  padding: 0 40px;
}

.gallery-header {
  text-align: center;
  margin-bottom: 48px;
}

.gallery-header h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gallery-header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* TABS NAVEGACIÓN */
.gallery-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-button {
  padding: 10px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-button:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: var(--bg-card-hover);
}

.tab-button.active {
  background: var(--gradient-1);
  color: white;
  border-color: var(--primary);
}

.tab-button i {
  font-size: 18px;
}

/* CONTENIDO DEL TAB */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

/* LAYOUT PRINCIPAL */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  margin-bottom: 60px;
  align-items: start;
}

/* IMAGEN PRINCIPAL */
.main-image-container {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border);
}

.main-image {
  width: 100%;
  aspect-ratio: 21/9;  /* Más panorámico */
  min-height: 350px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  background-size: contain;  /* Cambio de cover a contain */
  background-position: center;
  background-repeat: no-repeat;
}

/* Cuando hay imagen de fondo, oscurecer un poco para que el texto se vea */
.main-image.has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.7);
  z-index: 1;
}

/* OCULTAR EMOJI CUANDO HAY IMAGEN */
.main-image.has-image .main-icon {
  opacity: 0.2;  /* O usa 'display: none;' para ocultarlo completamente */
  font-size: 60px;  /* Hacer más pequeño si decides dejarlo visible */
}

.main-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
  z-index: 0;
}

.main-icon {
  font-size: 100px;
  margin-bottom: 20px;
  z-index: 2;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
  animation: float 3s ease-in-out infinite;
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-icon i {
  font-size: inherit;
  color: inherit;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

.main-title {
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  z-index: 2;
  text-align: center;
  line-height: 1.3;
}

.main-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  z-index: 2;
}

/* MINI IMÁGENES (3 en grid) */
.mini-images-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mini-image-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.mini-image-card:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.2);
}

.mini-image-card.active {
  border-color: var(--primary);
  background: rgba(14, 165, 233, 0.15);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}

.mini-image-card.active .mini-image-placeholder {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, #0f172a 100%);
}

.mini-image-card.active .mini-image-label {
  color: var(--primary-light);
  font-weight: 700;
}

.mini-image-placeholder {
  width: 100%;
  aspect-ratio: 21/9;  /* Más panorámico */
  min-height: 90px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background-size: contain;  /* Cambio de cover a contain */
  background-position: center;
  background-repeat: no-repeat;
}

.mini-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
}

.mini-image-placeholder i {
  font-size: 36px;
  color: var(--primary-light);
  z-index: 1;
}

/* Cuando hay imagen de fondo en mini */
.mini-image-placeholder.has-image i {
  display: none;
}

.mini-image-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
}

/* PANEL LATERAL */
.sidebar-panel {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  height: fit-content;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.sidebar-panel h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-light);
}

.sidebar-panel p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.features-list li {
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.features-list li i {
  color: var(--success);
  font-size: 16px;
}

.action-button {
  width: 100%;
  padding: 16px;
  background: var(--gradient-1);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

.action-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

/* RESPONSIVE */
@media (max-width: 1400px) {
  .gallery-container {
    max-width: 1400px;
    padding: 0 40px;
  }
  
  .nav-container {
    padding: 18px 40px;
  }
  
  .content-layout {
    grid-template-columns: 1fr 400px;
  }
}

@media (max-width: 1200px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar-panel {
    position: relative;
    top: 0;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .gallery-container {
    padding: 0 20px;
    margin-top: 80px;
  }
  
  .nav-container {
    padding: 18px 20px;
  }
  
  .gallery-header h1 {
    font-size: 32px;
  }
  
  .gallery-header p {
    font-size: 15px;
  }
  
  .mini-images-grid {
    grid-template-columns: 1fr;
  }
  
  .main-icon {
    font-size: 80px;
  }
  
  .main-title {
    font-size: 24px;
  }
  
  .main-image {
    min-height: 400px;
  }
  
  .gallery-tabs {
    padding: 0 10px;
  }
  
  .tab-button {
    font-size: 13px;
    padding: 10px 20px;
  }
  
  .content-layout {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .main-image {
    min-height: 300px;
  }
  
  .main-icon {
    font-size: 60px;
  }
  
  .main-title {
    font-size: 20px;
  }
  
  .gallery-header h1 {
    font-size: 28px;
  }
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}

/* SCROLLBAR PARA SIDEBAR */
.sidebar-panel::-webkit-scrollbar {
  width: 6px;
}

.sidebar-panel::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}


