/* Estilos de FiestasDelCarmenWEB.html movidos a archivo externo */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a0a2e;
  --secondary: #6b21a8;
  --accent: #d946ef;
  --gold: #f59e0b;
  --light: #faf5ff;
  --dark: #0f0520;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--dark);
  color: white;
  overflow-x: hidden;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 5, 32, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217, 70, 239, 0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.nav-logo img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: contain;
  background: white;
  padding: 2px;
}

.nav-logo span {
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color 0.3s;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: white;
  transition: 0.3s;
}

/* Pages system */
.page {
  display: none;
  min-height: 100vh;
  padding-top: 70px;
}

.page.active {
  display: block;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 50% 50%,
      rgba(107, 33, 168, 0.3) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 20% 80%,
      rgba(217, 70, 239, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(245, 158, 11, 0.1) 0%,
      transparent 40%
    );
  animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  animation: float 15s infinite;
  opacity: 0.6;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-logo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: contain;
  background: white;
  padding: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 0 60px rgba(217, 70, 239, 0.4);
  animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, white, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h2 {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-dates {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 3rem;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: white;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  transition: all 0.3s;
  box-shadow: 0 4px 30px rgba(217, 70, 239, 0.4);
  cursor: pointer;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(217, 70, 239, 0.6);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  position: relative;
}

.scroll-indicator span::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollDot 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

@keyframes scrollDot {
  0% {
    opacity: 1;
    top: 8px;
  }
  100% {
    opacity: 0;
    top: 25px;
  }
}

/* Content sections */
.content-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, white, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  letter-spacing: 1px;
}

/* Countdown */
.countdown-section {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(107, 33, 168, 0.2),
    rgba(26, 10, 46, 0.8)
  );
  border-radius: 30px;
  margin: 2rem auto;
  max-width: 800px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.countdown-item {
  text-align: center;
}

.countdown-item .number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.countdown-item .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.6);
}

/* Highlights */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.highlight-card {
  background: linear-gradient(
    135deg,
    rgba(107, 33, 168, 0.15),
    rgba(15, 5, 32, 0.9)
  );
  border: 1px solid rgba(217, 70, 239, 0.15);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.highlight-card:hover {
  border-color: rgba(217, 70, 239, 0.5);
  transform: translateY(-5px);
}

.highlight-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.highlight-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.highlight-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Event Cards */
.events-grid {
  display: grid;
  gap: 2rem;
}

.event-day {
  background: linear-gradient(
    135deg,
    rgba(107, 33, 168, 0.1),
    rgba(217, 70, 239, 0.05)
  );
  border: 1px solid rgba(217, 70, 239, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.event-day::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--gold));
}

.event-day:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 70, 239, 0.4);
  box-shadow: 0 15px 50px rgba(107, 33, 168, 0.25);
}

.event-date {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}

.event-day h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.event-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.event-item:last-child {
  border-bottom: none;
}

.event-time {
  min-width: 65px;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
}

.event-description {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  font-size: 0.95rem;
}

.event-highlight {
  display: inline-block;
  background: rgba(217, 70, 239, 0.15);
  border: 1px solid rgba(217, 70, 239, 0.3);
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.5rem;
}

.special-banner {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.2),
    rgba(217, 70, 239, 0.1)
  );
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
}

.special-banner span {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Gallery / Media Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  aspect-ratio: 16/9;
  background: linear-gradient(
    135deg,
    rgba(107, 33, 168, 0.2),
    rgba(15, 5, 32, 0.8)
  );
  border: 2px dashed rgba(217, 70, 239, 0.3);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.gallery-item:hover {
  border-color: var(--accent);
  background: linear-gradient(
    135deg,
    rgba(107, 33, 168, 0.3),
    rgba(15, 5, 32, 0.7)
  );
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.gallery-placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.gallery-placeholder .icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.gallery-placeholder p {
  font-size: 0.85rem;
}

.gallery-item.has-media {
  border-style: solid;
  border-color: rgba(217, 70, 239, 0.3);
}

/* Peñas Section */
.penas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pena-card {
  background: linear-gradient(
    135deg,
    rgba(107, 33, 168, 0.15),
    rgba(15, 5, 32, 0.9)
  );
  border: 1px solid rgba(217, 70, 239, 0.2);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.pena-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(107, 33, 168, 0.2);
}

.pena-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
}

.pena-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.pena-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pena-motto {
  margin-top: 1rem;
  font-style: italic;
  color: var(--accent);
  font-size: 0.85rem;
}

/* Info cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.info-card {
  background: linear-gradient(
    135deg,
    rgba(107, 33, 168, 0.1),
    rgba(15, 5, 32, 0.9)
  );
  border: 1px solid rgba(217, 70, 239, 0.15);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s;
}

.info-card:hover {
  border-color: rgba(217, 70, 239, 0.4);
}

.info-card h4 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card p,
.info-card li {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  font-size: 0.9rem;
}

.info-card ul {
  list-style: none;
  padding: 0;
}

.info-card li::before {
  content: "→ ";
  color: var(--accent);
}

/* Footer */
footer {
  background: linear-gradient(to top, var(--dark), var(--primary));
  padding: 3rem 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(217, 70, 239, 0.2);
}

.footer-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: contain;
  background: white;
  padding: 3px;
  margin-bottom: 1rem;
  opacity: 0.9;
}

footer h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

footer p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.footer-credits {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15, 5, 32, 0.98);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(217, 70, 239, 0.2);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-logo {
    width: 140px;
    height: 140px;
  }

  .countdown {
    gap: 1rem;
  }
  .countdown-item .number {
    font-size: 2rem;
  }

  .event-day {
    padding: 1.5rem;
  }
  .content-section {
    padding: 3rem 1.25rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

html {
  scroll-behavior: smooth;
}
