/* ===== VARIABLES CSS ===== */
:root {
  --brand: #059669;
}

/* ===== ANIMACIONES ===== */
@keyframes blink-slower {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

@keyframes pulse-scale {
  0%, 100% { 
    transform: scale(1);
  }
  50% { 
    transform: scale(1.05);
  }
}

.animate-blink-slower {
  animation: blink-slower 6s infinite;
}

.animate-pulse-scale {
  animation: pulse-scale 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}

/* ===== CLASES ESPECIALES ===== */
.inst-fullscreen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 30;
  pointer-events: none;
}

.gradient-brand {
  background: linear-gradient(135deg, #059669, #0d9488);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ===== ESTILOS PARA MEDIOS EN GALERÍA ===== */
.media-container {
  position: relative;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.media-item {
  width: 100%;
  max-width: 28rem;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  margin-bottom: 1rem;
  cursor: pointer;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.play-button {
  width: 4rem;
  height: 4rem;
  color: white;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.3));
  fill: currentColor;
}

.play-button circle {
  fill: rgba(0, 0, 0, 0.5);
}

.play-button polygon {
  fill: white;
}

/* ===== MODALES ===== */
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal.hidden {
  display: none;
}

.modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-media {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background: white;
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
}

.modal-close-btn:hover {
  background: #f1f5f9;
}

/* ===== CONTROLES DE MÚSICA ===== */
#musicControl {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
}

#playMusicBtn {
  padding: 0.5rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  background: #059669;
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
}

#playMusicBtn:hover {
  background: #047857;
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f1f5f9;
}

.header-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .header-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .header-container {
    padding: 0 2rem;
  }
}

.logo {
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  font-size: 0.875rem;
  font-weight: 600;
  background: #0f172a;
  color: white;
  transition: background-color 0.3s;
}

.menu-btn:hover {
  background: #374151;
}

.menu-dropdown {
  position: absolute;
  right: 0;
  margin-top: 0.5rem;
  width: 12rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 50;
}

.menu-dropdown.hidden {
  display: none;
}

.menu-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  color: #374151;
  transition: background-color 0.3s;
}

.menu-dropdown a:hover {
  background: #f1f5f9;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 640px) {
  .media-item {
    max-width: 32rem;
  }
}

@media (min-width: 1024px) {
  .media-item {
    max-width: 28rem;
  }
}