/* styles.css - Estilos base para DJ COST COLOMBIA */
:root {
  --primary-color: #DD4F1D;
  --dark-bg: #18181b;
  --darker-bg: #000000;
  --text-light: #ffffff;
  --text-secondary: #6c757d;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--darker-bg);
  color: var(--text-light);
  font-family: 'Inter', Arial, sans-serif;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.loaded {
  opacity: 1;
}

/* Header y navegación */
.header {
  width: 100%;
  background: #000;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  border-bottom: 1px solid #222;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-img {
  width: 32px;
  height: 32px;
}
.logo-text {
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: 1px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-list {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
}
.nav-list li a.active,
.nav-list li a:hover {
  color: #DD4F1D;
}
.btn-tienda {
  background: #DD4F1D;
  color: #000;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  margin-left: 16px;
  transition: background 0.2s;
  border: none;
}
.btn-tienda:hover {
  background: #ff6b3d;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* Hero principal */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000 url('../images/hero-bg.jpg') no-repeat center center/cover;
  position: relative;
  padding-top: 72px;
  animation: fadeInHero 1.2s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #000 60%, #000c 100%);
  opacity: 0.7;
  z-index: 1;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 0 40px 0;
  animation: fadeIn 1s ease-out;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.hero .dj {
  color: #fff;
}
.hero .cost {
  color: #DD4F1D;
}
.hero-sub {
  font-size: 1.3rem;
  color: #e0e0e0;
  margin-bottom: 32px;
}
.hero-btns {
  display: flex;
  gap: 24px;
  justify-content: center;
}
.btn-main {
  background: #DD4F1D;
  color: #000;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  border: none;
  transition: background 0.2s, color 0.2s;
}
.btn-main:hover {
  background: #ff6b3d;
  color: #222;
}
.btn-outline {
  background: transparent;
  color: #DD4F1D;
  border: 2px solid #DD4F1D;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover {
  background: #DD4F1D;
  color: #000;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .container {
    padding: 0 15px;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-sub {
    font-size: 1.1rem;
  }
  .hero-btns {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .btn-main, .btn-outline {
    width: 80%;
    max-width: 300px;
    text-align: center;
    font-size: 1rem;
  }
  /* Adjust card flex basis for smaller screens */
  .experiencia-cards .exp-card,
  .row.g-5 > div > .card,
  .row.g-4 > div > .card {
    flex-basis: 100%;
    max-width: 400px; /* Optional: Limit max width even when full width */
    margin: 0 auto; /* Center cards when they take full width */
  }
}

@media (max-width: 768px) {
  .header-flex {
    height: 60px;
  }
  .nav-list {
    display: none;
  }
  .btn-tienda {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero-sub {
    font-size: 1rem;
  }
  .hero-content {
    padding: 40px 0 20px 0;
  }
  .experiencia-title, .sesiones h2, .galeria h2, .tienda h2, .contacto h2 {
    font-size: 2rem;
  }
  .experiencia-desc, .sesiones p, .galeria p, .tienda p, .contacto p {
    font-size: 1rem;
  }
  .row.g-5, .row.g-4 {
    gap: 30px; /* Adjust gap for smaller screens */
  }
  .card {
    margin-bottom: 30px; /* Ensure space between stacked cards */
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero-sub {
    font-size: 0.9rem;
  }
  .btn-main, .btn-outline {
    width: 90%;
    font-size: 0.9rem;
    padding: 12px 20px;
  }
  .experiencia-title, .sesiones h2, .galeria h2, .tienda h2, .contacto h2 {
    font-size: 1.8rem;
  }
  .container {
    padding: 0 10px; /* Reduce padding on very small screens */
  }
  #experiencia .row.g-5 > div {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
  }
  #experiencia .card {
    min-width: 90vw;
    max-width: 350px;
    min-height: 260px;
    max-height: 320px;
    margin: 0 auto;
    border-radius: 18px !important;
    padding: 0.7rem 0.7rem 0.7rem 0.7rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  #experiencia .card h3 {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem;
  }
  #experiencia .card p {
    font-size: 0.95rem !important;
    margin-bottom: 0;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
  }
  #sesiones .row.g-5 > div {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
  }
  #sesiones .card {
    min-width: 90vw;
    max-width: 350px;
    margin: 0 auto;
    border-radius: 18px !important;
    padding: 1rem !important;
  }
  #sesiones .card-img-top {
    height: 180px !important;
    max-width: 100%;
    object-fit: cover;
    border-radius: 12px;
  }
  #sesiones .p-4 {
    padding: 1rem !important;
  }
  #sesiones h3, #sesiones h5 {
    font-size: 1.1rem !important;
    word-break: break-word;
  }
  #sesiones .d-flex.justify-content-between.align-items-center.mt-3 {
    flex-direction: column;
    gap: 0.5rem;
  }
  #galeria .row.g-4 > div {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
  }
  #galeria .gallery-img-wrap {
    min-width: 44vw;
    max-width: 160px;
    min-height: 160px;
    max-height: 160px;
    margin: 0 auto;
    border-radius: 14px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #galeria .gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }
}

/* Experiencia Musical Única */
.experiencia {
  background: #111;
  padding: 64px 0 32px 0;
  text-align: center;
}
.experiencia-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.experiencia-desc {
  color: #ccc;
  font-size: 1.1rem;
  margin-bottom: 40px;
}
.experiencia-cards {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap; /* Added to allow wrapping on smaller screens */
}
.exp-card {
  background: #222;
  border-radius: 12px;
  padding: 25px;
  flex: 1 1 300px; /* Adjust flex basis for better responsiveness */
  max-width: 350px;
  min-height: 320px; /* Ensure consistent height */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.exp-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.exp-card:hover .exp-icon svg {
  stroke: #ffb84d; /* Lighter yellow on hover */
}
.exp-card .exp-icon svg {
  stroke: #DD4F1D;
}
.exp-icon {
  background: rgba(230, 162, 60, 0.2);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: inline-flex;
}
.exp-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.exp-card p {
  font-size: 1rem;
  color: #bbb;
  line-height: 1.6;
}
.exp-link {
  color: #DD4F1D;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  margin-top: auto; /* Push link to the bottom */
  transition: color 0.2s;
}
.exp-link svg {
  margin-left: 5px;
  transition: transform 0.2s;
}
.exp-link:hover {
  color: #ffb84d;
}
.exp-link:hover svg {
  transform: translateX(5px);
}

.text-warning {
  color: #DD4F1D !important;
}

.bg-black {
  background: #000 !important;
}

.bg-dark {
  background: #111 !important;
}

.navbar-dark .navbar-nav .nav-link.active, .navbar-dark .navbar-nav .nav-link:hover {
  color: #DD4F1D !important;
}

.btn-warning {
  background-color: #DD4F1D;
  border-color: #DD4F1D;
  color: #000;
}

.btn-warning:hover, .btn-warning:focus {
  background-color: #ff6b3d;
  border-color: #ff6b3d;
}

.btn-outline-warning {
  color: #DD4F1D;
  border-color: #DD4F1D;
}

.btn-outline-warning:hover, .btn-outline-warning:focus {
  background-color: #DD4F1D;
  border-color: #DD4F1D;
}

@keyframes fadeInCard {
  to { opacity: 1; transform: none; }
}

.btn, .btn-warning, .btn-outline-warning {
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn:active {
  transform: scale(0.97);
}

.navbar {
  animation: fadeInNavbar 1s cubic-bezier(0.4,0,0.2,1);
  transition: background-color 0.3s ease;
}
@keyframes fadeInNavbar {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: none; }
}

.navbar.scrolled {
  background-color: rgba(0,0,0,0.95) !important;
  backdrop-filter: blur(10px);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

/* Animación de entrada fade-in escalonado para tarjetas */
.card, .exp-card {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  animation: fadeInCard 0.8s cubic-bezier(0.4,0,0.2,1) forwards;
}
.card:nth-child(1), .exp-card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2), .exp-card:nth-child(2) { animation-delay: 0.4s; }
.card:nth-child(3), .exp-card:nth-child(3) { animation-delay: 0.6s; }
@keyframes fadeInCard {
  to { opacity: 1; transform: none; }
}

/* Hover animado para tarjetas */
.card, .exp-card {
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s cubic-bezier(0.4,0,0.2,1), background 0.3s, color 0.3s;
  will-change: transform, box-shadow;
  cursor: pointer;
}
.card:hover, .exp-card:hover {
  transform: translateY(-14px) scale(1.04);
  box-shadow: 0 16px 40px #DD4F1D55, 0 2px 8px #0008;
  background: #232323 !important;
}
.card:hover .exp-icon svg, .exp-card:hover .exp-icon svg {
  stroke: #ffb84d;
  filter: drop-shadow(0 0 8px #DD4F1D88);
  transition: stroke 0.3s, filter 0.3s;
}
.card .exp-icon svg, .exp-card .exp-icon svg {
  transition: stroke 0.3s, filter 0.3s;
}

.event-card {
  background: #111 !important;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px #0004;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s cubic-bezier(0.4,0,0.2,1), background 0.3s, color 0.3s;
  will-change: transform, box-shadow;
  cursor: pointer;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  animation: fadeInCard 0.8s cubic-bezier(0.4,0,0.2,1) forwards;
  animation-delay: 0.2s;
}
.event-card:hover {
  transform: translateY(-14px) scale(1.04);
  box-shadow: 0 16px 40px #DD4F1D55, 0 2px 8px #0008;
  background: #18181b !important;
}
.event-card .card-body {
  background: #000 !important;
  border-radius: 0 0 16px 16px;
}
.event-card .fw-bold.text-white {
  color: #fff !important;
}
.event-card .text-secondary {
  color: #bdbdbd !important;
}
.event-card .text-light {
  color: #e6e6e6 !important;
}
.event-card .btn-outline-warning {
  border-color: #DD4F1D;
  color: #DD4F1D;
  font-weight: bold;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.event-card .btn-outline-warning:hover {
  background: #DD4F1D;
  color: #000;
  border-color: #DD4F1D;
  box-shadow: 0 0 8px #DD4F1D88;
}
.event-img-wrap {
  position: relative;
}
.event-card .badge.bg-warning {
  position: absolute;
  left: 16px;
  bottom: 16px;
  font-size: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px #0006;
}

.gallery-img-wrap {
  overflow: hidden;
  border-radius: 12px;
  background: #222;
  position: relative;
  box-shadow: 0 2px 12px #0006;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  animation: fadeInGalleryImg 0.8s cubic-bezier(0.4,0,0.2,1) forwards;
}
.gallery-img-wrap:nth-child(1) { animation-delay: 0.1s; }
.gallery-img-wrap:nth-child(2) { animation-delay: 0.2s; }
.gallery-img-wrap:nth-child(3) { animation-delay: 0.3s; }
.gallery-img-wrap:nth-child(4) { animation-delay: 0.4s; }
.gallery-img-wrap:nth-child(5) { animation-delay: 0.5s; }
.gallery-img-wrap:nth-child(6) { animation-delay: 0.6s; }
.gallery-img-wrap:nth-child(7) { animation-delay: 0.7s; }
.gallery-img-wrap:nth-child(8) { animation-delay: 0.8s; }
@keyframes fadeInGalleryImg {
  to { opacity: 1; transform: none; }
}
.gallery-img {
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s, border 0.3s;
  border: 3px solid transparent;
}
.gallery-img-wrap:hover .gallery-img {
  transform: scale(1.08) rotate(-1deg);
  box-shadow: 0 8px 32px #DD4F1D55, 0 2px 8px #0008;
  border: 3px solid #DD4F1D;
  z-index: 2;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Efectos hover */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Cards */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card-img-top {
  transition: transform 0.5s ease;
}

.card:hover .card-img-top {
  transform: scale(1.1);
}

/* Botones */
.btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

/* Formularios */
.form-control {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(230, 162, 60, 0.25);
}

/* Galería */
.gallery-img-wrap {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.gallery-img {
  transition: transform 0.5s ease;
}

.gallery-img-wrap:hover .gallery-img {
  transform: scale(1.1);
}

/* Animaciones de entrada */
.fade-in {
  animation: fadeIn 1s ease-out;
}

.slide-in {
  animation: slideIn 1s ease-out;
}

/* Efectos de scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
  }
  
  .card {
    margin-bottom: 1rem;
  }
}

/* Utilidades */
.text-gradient {
  background: linear-gradient(45deg, var(--primary-color), #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gradient {
  background: linear-gradient(45deg, var(--dark-bg), var(--darker-bg));
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d4922c;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.3s ease;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

/* Loading spinner */
.loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--darker-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-spinner.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--primary-color);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mejoras en la accesibilidad */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Mejoras en el contraste */
.high-contrast {
  --primary-color: #ffd700;
  --text-light: #ffffff;
  --text-secondary: #cccccc;
}

/* Mejoras en la navegación por teclado */
:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Mejoras en la impresión */
@media print {
  .navbar,
  .hero,
  .btn,
  .gallery-img-wrap,
  .lightbox {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  a {
    text-decoration: none;
    color: black;
  }

  .container {
    width: 100%;
    max-width: none;
  }
}

/* --- Tabs personalizados para sección perfil --- */
#perfilTabs .nav-link {
  color: #DD4F1D !important; /* Dorado para inactivas */
  background: transparent !important;
  border: none !important;
  border-radius: 12px 12px 0 0 !important;
  margin: 0 12px;
  font-size: 1.15rem;
  padding: 12px 32px;
  transition: background 0.2s, color 0.2s;
}

#perfilTabs .nav-link.active {
  background: #18181b !important;
  color: #fff !important;
  border-bottom: 3px solid #DD4F1D !important;
  box-shadow: 0 4px 16px 0 #0004;
}

#perfilTabs .nav-link:not(.active):hover {
  color: #fff !important;
  background: #232326 !important;
}

.hero-section {
  position: relative;
  overflow: hidden;
}
.hero-bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.25; /* Ajusta la opacidad si lo deseas */
  pointer-events: none;
}
.hero-section > *:not(.hero-bg-video) {
  position: relative;
  z-index: 1;
} 