/* ==================== VARIABLES ==================== */
:root {
  --color-primary: #c0392b;
  --color-primary-dark: #922b21;
  --color-accent: #f1c40f;
  --color-accent-dark: #d4a90c;
  --color-blue: #1a5276;
  --color-bg: #faf8f5;
  --color-bg-alt: #f0ebe3;
  --color-text: #2c2c2c;
  --color-text-light: #5c5c5c;
  --color-white: #ffffff;
  --color-footer: #1a1a2e;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.18);
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== RESET & BASE ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; }
a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; }

.section {
  padding: 100px 0;
  position: relative;
}

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary), var(--color-blue));
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--color-text);
  margin-bottom: 20px;
}

.section-text {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 650px;
  margin: 0 auto;
}

/* ==================== NAVBAR ==================== */
#navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 10px 0;
  transition: var(--transition);
}

#navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
}

.nav-logo {
  border-radius: 4px;
  object-fit: cover;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--color-text);
  margin: 0 2px;
  padding: 8px 14px !important;
  border-radius: 6px;
  font-size: 0.92rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--color-primary);
  background: rgba(192, 57, 43, 0.06);
}

.btn-nav-contact {
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
  border-radius: 30px !important;
  padding: 8px 22px !important;
  margin-left: 8px;
}

.btn-nav-contact:hover {
  background: var(--color-primary-dark) !important;
  color: var(--color-white) !important;
}

/* ==================== HERO ==================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #1a1a2e 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 50%, rgba(192, 57, 43, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(241, 196, 15, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(26, 82, 118, 0.2) 0%, transparent 50%);
  animation: heroBgFloat 20s ease-in-out infinite;
}

@keyframes heroBgFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -2%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4H36zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo {
  border-radius: 12px;
  filter: drop-shadow(0 4px 16px rgba(241, 196, 15, 0.3));
  object-fit: cover;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--color-white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--color-accent);
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  max-width: 500px;
  margin: 12px auto 0;
}

.btn-hero {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  padding: 12px 36px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition);
}

.btn-hero:hover {
  background: var(--color-accent);
  color: #1a1a2e;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(241, 196, 15, 0.3);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 10px;
  background: var(--color-accent);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { top: 6px; opacity: 1; }
  50% { top: 20px; opacity: 0.3; }
}

/* ==================== WELCOME ==================== */
.welcome-section {
  background: var(--color-white);
  text-align: center;
}

.welcome-section .section-text {
  font-size: 1.15rem;
  line-height: 1.8;
}

.btn-outline-primary {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 30px;
}

.btn-outline-primary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ==================== CULTURE SECTION ==================== */
.culture-section {
  background: var(--color-bg-alt);
}

.culture-section h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--color-primary-dark);
}

.culture-section p {
  color: var(--color-text-light);
  font-size: 1.02rem;
}

/* ==================== GALERÍA ==================== */
.gallery-section {
  background: var(--color-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: var(--color-white);
  padding: 30px 12px 10px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* ==================== DANZA ==================== */
.dance-section {
  background: var(--color-bg-alt);
}

.dance-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.dance-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.dance-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.dance-card:hover img {
  transform: scale(1.05);
}

.dance-card .gallery-caption {
  opacity: 1;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 40px 16px 14px;
}

/* ==================== ARTICLES ==================== */
.articles-section {
  background: var(--color-white);
}

.card-article {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-img-wrapper {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-article:hover .card-img {
  transform: scale(1.06);
}

.card-body-article {
  padding: 24px;
}

.card-body-article h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.card-body-article p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-link-article {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-link-article:hover {
  color: var(--color-primary-dark);
  gap: 10px;
}

/* ==================== INSTRUMENTOS ==================== */
.instruments-section {
  background: var(--color-bg-alt);
}

.instrument-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.instrument-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.instrument-img {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.instrument-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.instrument-card:hover .instrument-img img {
  transform: scale(1.08);
}

.instrument-card h4 {
  font-size: 1.1rem;
  padding: 16px 16px 0;
  color: var(--color-primary-dark);
}

.instrument-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  padding: 8px 16px 20px;
  margin: 0;
}

/* ==================== VIDEOS ==================== */
.videos-section {
  background: var(--color-white);
}

.card-video {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card-video:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.video-player {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-info {
  padding: 20px;
}

.video-info h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--color-primary-dark);
}

.video-info p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin: 0;
}

/* ==================== ABOUT ==================== */
.about-section {
  background: var(--color-bg-alt);
  text-align: center;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.brand-big {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.brand-small {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-text-light);
  letter-spacing: 3px;
}

/* ==================== CONTACT ==================== */
.contact-section {
  background: var(--color-white);
}

.contact-section h3 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--color-primary-dark);
}

.contact-logo {
  max-width: 200px;
  border-radius: 8px;
}

.contact-info {
  font-size: 1rem;
  margin-bottom: 8px;
}

.contact-info a {
  color: var(--color-primary);
  font-weight: 500;
}

.contact-info a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.form-contact .form-control {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--color-white);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-contact .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.form-contact .form-label {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--color-text);
  margin-bottom: 4px;
}

.btn-submit {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border: none;
  color: var(--color-white);
  font-weight: 600;
  padding: 14px;
  border-radius: 30px;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.35);
  color: var(--color-white);
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--color-footer);
  color: rgba(255, 255, 255, 0.7);
  padding: 30px 0;
  font-size: 0.9rem;
}

.footer strong {
  color: var(--color-white);
}

.footer-link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--color-accent);
}

.footer-credit {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-small {
  font-size: 0.8rem;
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
}

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

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--color-white);
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 1;
  transition: var(--transition);
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--color-accent);
  transform: scale(1.2);
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 20px;
  border-radius: 20px;
}

/* ==================== MODAL ARTÍCULO ==================== */
.modal-article-content {
  border-radius: var(--radius);
  border: none;
}

.modal-article-content .modal-body {
  padding: 30px;
}

.modal-article-content .modal-body h2 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  margin-bottom: 20px;
  font-size: 1.6rem;
}

.modal-article-content .modal-body p {
  color: var(--color-text-light);
  line-height: 1.8;
  font-size: 1.02rem;
}

.modal-article-content .modal-body img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 24px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .section { padding: 70px 0; }
  .section-title { font-size: 2rem; }
  .hero-title { font-size: 2.3rem; }

  .navbar-nav {
    padding: 16px 0;
    gap: 4px;
  }

  .btn-nav-contact {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1rem; }
  .section-title { font-size: 1.6rem; }
  .culture-section h3 { font-size: 1.3rem; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .card-body-article { padding: 18px; }
  .card-body-article h3 { font-size: 1rem; }

  .instrument-card h4 { font-size: 1rem; }

  .dance-card img {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

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