/* 
   Comparsa Bella Mariana - Estilos Modernos 2026 
   Diseño Premium & Responsive
*/

:root {
  /* Colors */
  --primary-color: #2c1e4a;
  /* Deep Purple */
  --secondary-color: #d60064;
  /* Vibrant Pink */
  --accent-color: #fbbf24;
  /* Gold */
  --text-color: #333333;
  --light-bg: #f8f9fa;
  --dark-bg: #1a1a2e;
  --white: #ffffff;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;

  /* Spacing */
  --header-height: 80px;

  /* Shadows */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
}

/* --- Resets & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* --- Utilities --- */
.section {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--light-bg);
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(45deg, var(--secondary-color), #ff4757);
  color: white;
  box-shadow: 0 4px 15px rgba(214, 0, 100, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(214, 0, 100, 0.6);
}

.btn-outline {
  border-color: white;
  color: white;
}

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

/* --- Header --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.main-header.scrolled {
  height: 60px;
  background: rgba(255, 255, 255, 0.98);
}

.header-container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--primary-color);
}

.logo img {
  height: 50px;
  transition: height 0.3s;
}

.scrolled .logo img {
  height: 40px;
}

.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}

.main-nav a {
  font-weight: 500;
  color: var(--primary-color);
  position: relative;
}

.main-nav a:not(.btn-highlight)::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s;
}

.main-nav a:not(.btn-highlight):hover::after,
.main-nav a.active::after {
  width: 100%;
}

.btn-highlight {
  background: var(--primary-color);
  color: white !important;
  padding: 8px 20px;
  border-radius: 20px;
}

.btn-highlight:hover {
  background: var(--secondary-color);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: url('../img/2026/chicas.jpg') center/cover no-repeat fixed;
  /* Fallback image */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-top: 0;
  /* Cover behind header */
}

/* Use a better specific hero image if available, otherwise fallback */
.hero-overlay {
  position: absolute;
  top: 0;
  inset: 0;
  background: linear-gradient(135deg, rgba(44, 30, 74, 0.85), rgba(214, 0, 100, 0.6));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--header-height);
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Countdown */
.hero-countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.time-unit {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 15px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 90px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  animation: floating 3s ease-in-out infinite;
}

.time-unit span {
  display: block;
}

.time-unit span:first-child {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.time-unit .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-5px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* --- About Section & Stats --- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  display: inline-block;
  position: relative;
}

.divider {
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.about-text p {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  color: #555;
  line-height: 1.8;
}

.about-text .lead-text {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.stat-box {
  display: flex;
  gap: 30px;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat .number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary-color);
  line-height: 1;
}

.stat .label {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
}

.rounded-shadow {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  cursor: pointer;
}

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

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


/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.lightbox-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 900px;
  max-height: 80vh;
  object-fit: contain;
  animation: zoomIn 0.3s;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

@keyframes zoomIn {
  from {
    transform: scale(0)
  }

  to {
    transform: scale(1)
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--secondary-color);
  text-decoration: none;
  cursor: pointer;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
  background: rgba(0, 0, 0, 0.5);
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: var(--secondary-color);
}

@media only screen and (max-width: 700px) {
  .lightbox-content {
    width: 95%;
  }

  .prev,
  .next {
    padding: 10px;
    font-size: 20px;
  }
}

/* --- Sponsors --- */
.sponsors-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.sponsor-logo {
  max-height: 80px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s;
}

.sponsor-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* --- Contact Page --- */
.page-header {
  background: var(--primary-color);
  color: white;
  padding: 120px 0 60px;
  text-align: center;
}

.contact-wrapper {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.modern-form .form-group {
  margin-bottom: 20px;
}

.modern-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.modern-form input,
.modern-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-family: inherit;
  transition: border 0.3s;
}

.modern-form input:focus,
.modern-form textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.shadow-box {
  box-shadow: var(--shadow-lg);
}

.btn-block {
  width: 100%;
}

/* --- Footer --- */
.main-footer {
  background: linear-gradient(to right, #1a1a2e, #2c1e4a);
  color: #e0e0e0;
  padding: 80px 0 30px;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

/* Optional decorative top border */
.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.legal-links {
  font-size: 0.85rem;
  opacity: 0.8;
}

.legal-links a {
  color: #ccc;
  text-decoration: none;
  margin: 0 5px;
  transition: color 0.2s;
}

.legal-links a:hover {
  color: white;
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand h3 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.footer-brand p {
  margin-bottom: 25px;
  opacity: 0.8;
}

.footer-logo {
  max-width: 120px;
  margin-bottom: 20px;
}

.social-links-modern {
  display: flex;
  gap: 15px;
}

.social-links-modern a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-links-modern a:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.footer-links h4::after,
.footer-contact h4::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--secondary-color);
  margin-top: 5px;
  border-radius: 2px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #ccc;
  transition: all 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  color: #ccc;
}

.footer-contact i {
  color: var(--secondary-color);
  width: 20px;
  text-align: center;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  opacity: 0.6;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
}

/* --- Animations --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-200 {
  transition-delay: 0.2s;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 0;
    background: white;
    overflow: hidden;
    transition: height 0.3s ease;
    box-shadow: var(--shadow-md);
  }

  .main-nav.active {
    height: auto;
    padding-bottom: 20px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 0;
  }

  .main-nav li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  .main-nav a {
    display: block;
    padding: 15px 0;
  }

  .main-nav li:last-child {
    border-bottom: none;
  }

  .main-nav a.btn-highlight {
    margin-top: 15px;
    display: inline-block;
    width: auto;
    padding: 10px 25px;
    /* Smaller padding */
    font-size: 0.9rem;
    /* Slightly smaller text */
    border-radius: 50px;
    /* Back to pill shape */
  }

  /* Hero */
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    order: -1;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
  }

  .about-image img {
    max-width: 80%;
  }

  .about-text {
    text-align: center;
    padding: 0 10px;
  }

  .about-text p {
    font-size: 1.1rem;
    /* Specific margin for mobile */
  }

  /* Stats */
  .stat-box {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 2rem;
  }

  /* Contact */
  .contact-wrapper {
    padding: 20px;
  }

  .page-header {
    padding: 100px 0 40px;
  }

  /* WhatsApp Float Mobile */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 20px;
    right: 20px;
  }
}

/* Mask Divider */
.mask-divider {
  text-align: center;
  margin-top: -30px;
  margin-bottom: -15px;
  position: relative;
  z-index: 100;
}

.mask-divider i {
  background: #1a1a2e;
  /* Match footer background */
  color: #fbbf24;
  font-size: 2.2rem;
  padding: 12px;
  border-radius: 50%;
  /* Subtle glow */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
  border: 3px solid #fbbf24;
  transition: transform 0.3s ease;
}

.mask-divider:hover i {
  transform: scale(1.1) rotate(5deg);
}

/* --- Cookie Banner --- */
.cookie-banner {
  display: none;
  /* Hidden by default, JS shows it */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  padding: 20px;
  border-top: 4px solid var(--secondary-color);
  animation: slideUp 0.5s ease;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-content h3 {
  margin: 0 0 5px 0;
  font-size: 1.2rem;
}

.cookie-content p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
  flex: 1;
  min-width: 300px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cookie-link {
  font-size: 0.85rem;
  text-decoration: underline;
  color: #666;
  margin-left: 10px;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-content p {
    min-width: 100%;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}