* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

nav {
  background-color: rgb(0, 0, 0);
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo img {
  height: 45px;
  width: auto;
  display: block;
}

.logo {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  transition: all 0.3s ease;
}

.nav-links a {
  color: aliceblue;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-links a:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: aliceblue;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-btn {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: black;
    flex-direction: column;
    clip-path: circle(0px at 90% -10%);
    pointer-events: none;
    padding: 1.5rem;
  }

  .nav-links.active {
    clip-path: circle(1000px at 90% -10%);
    pointer-events: all;
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-links li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-links li:nth-child(4) {
    transition-delay: 0.4s;
  }
  .nav-links li:nth-child(5) {
    transition-delay: 0.5s;
  }
}

header {
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.hero {
  padding-top: 80px;
  position: relative;
  height: 100vh;
  background-image: url("public/fondo portada.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  text-align: center;
  color: white;
  padding: 1rem;
}

.hero-logo {
  width: 100%;
  max-width: 80%;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .hero-logo {
    width: 80%;
  }
  .hero-content h1 {
    font-size: 1.5rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}

.hero-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  background: red;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: 0.3s;
}

.hero-btn:hover {
  background: darkred;
}

@keyframes logoFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.logo-img {
  height: 45px;
  width: auto;
}

.events-section {
  padding: 4rem 2rem;
  background: #f5f5f5;
}

.events-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.events-month {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  color: #222;
}

/*grid reponsive*/
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/*CARD*/
.event-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.event-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.event-info {
  padding: 1rem;
  text-align: center;
}

.event-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.event-info p {
  font-size: 0.9rem;
  color: #666;
}

.event-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.event-modal.active {
  display: flex;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow: auto;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  position: relative;
  text-align: center;
}

.modal-content img {
  width: 100%;
  max-height: 45vh;
  object-fit: contain;
  border-radius: 15px;
  margin-bottom: 1rem;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.modal-buttons a {
  flex: 1;
  padding: 0.7rem;
  background: red;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
}

@media (max-width: 480px) {
  .modal-content img {
    max-height: 35vh;
  }

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

#modalPromoter,
#modalAddress {
  font-size: 0.95rem;
  color: #444;
  margin-top: 0.4rem;
}

.preview {
  margin-top: 30px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  text-align: center; /* Esto centra todo dentro de la tarjeta */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.preview img {
  max-width: 100%;
  border-radius: 8px;
  display: block;
  margin: 0 auto 15px auto;
}

.preview h2 {
  margin: 10px 0;
}

.preview p {
  margin: 5px 0;
  text-align: center; /* Fuerza centrado */
}

.preview a {
  display: inline-block; /* Que se vean como botones centrados */
  margin: 5px 10px;
  padding: 5px 10px;
  background: #007bff;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
}

.preview a:hover {
  background: #0056b3;
}

.event-search {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 2rem;
  display: block;
  padding: 10px 15px;
  border-radius: 25px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.section-separator {
  height: 0;
  width: 80%;
  margin: 4rem auto;
  background: linear-gradient(to right, transparent, #ccc, transparent);
}

.search-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
}

.search-container input {
  padding: 12px 16px;
  width: 280px;
  border-radius: 30px;
  border: 1px solid #ddd;
  font-size: 1rem;
  outline: none;
}

.search-container input:focus {
  border-color: red;
}

.search-container button {
  padding: 12px 22px;
  border-radius: 30px;
  border: none;
  background: red;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(255, 0, 0, 0.35);
}

.search-container button:hover {
  background: darkred;
  transform: translateY(-2px);
}
