body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background: #f2f3fa; /* gris muy claro con tono azulado */ 
  color: #1a1a1a;
}

.header {
  background: linear-gradient(135deg, #00182c, #4c20c4);
  color: #fff;
  padding: 40px 20px; /* este padding ya es suficiente */
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  position: relative;
  z-index: 1;

  display: flex;
  justify-content: center;  /* Centra horizontalmente */
  align-items: center;      /* Centra verticalmente */
  gap: 20px;                /* Espacio entre elementos */
  flex-wrap: wrap;          /* Para que se acomode bien en pantallas pequeñas */
}

.logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

h1 {
  margin: 10px 0 0;
  font-size: 2.5rem;
}

.grid-item h1{
  color: #50cff5;
}

.grid-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
}

.grid-item0 {
  background-color: #1E293B;
  color: white;
  border-radius: 30px;
  padding: 5px 20px;
  box-shadow: 0 4px 8px rgba(7, 7, 7, 0.1);
  transition: transform 0.3s;
}

.grid-item {
  background-color: #1E293B;
  color: white;
  border-radius: 30px;
  padding: 5px 20px;
  padding-bottom: 20px;
  box-shadow: 0 4px 8px rgba(7, 7, 7, 0.1);
  transition: transform 0.3s;
}

.grid-item:hover {
  transform: translateY(-5px);
}

.grid-item h2 {
  color: #00232e;
}

.grid-item a {
  color: #033646;
  text-decoration: none;
  font-weight: bold;
}

.menucontent {
display: flex;
align-items: flex-start; /* Alinea el contenido arriba */
}

.menucontent {
  background: linear-gradient(90deg, #150050, #3F0071);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  padding: 10px 0;
  border-radius: 11px;
  text-align: center;
  overflow-x: auto; /* En caso de muchos ítems, permite scroll horizontal */
}

/* Estilo de la barra (scroll horizontal móvil opcional) */
.menucontent::-webkit-scrollbar {
  height: 6px;
}

.menucontent::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 6px;
}

.menucontent ul {
  list-style: none;
  margin: 0;
  padding: 0 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.menucontent li {
  margin: 0 10px;
}

.menucontent a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  padding: 8px 12px;
  display: inline-block;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.menucontent a:hover {
  background: linear-gradient(90deg, #4B0082, #7B1FA2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transform: scale(1.08);
  z-index: 2;
}


.carousel {
  position: relative;
  width: 100%;
  max-width: 1500px;
  border-radius: 15px; /* mantenido */
  margin: 20px auto;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* mejora visual */
}

.carousel-images {
  position: relative;
  width: 100%;
}

.carousel-images img {
  width: 100%;
  height: auto;
  display: none;
  transition: opacity 0.5s ease-in-out, transform 0.3s ease;
  border-radius: 15px; /* igual que el contenedor */
  object-fit: cover;
}

.carousel-images img.active {
  display: block;
  opacity: 1;
  transform: scale(1.01);
}

button.prev,
button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
}

button.prev {
  left: 10px;
}

button.next {
  right: 10px;
}

.mini-calendario {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  justify-content: center;
}

.evento-box {
  background-color: #520258; /* Morado oscuro */
  color: #fff;
  padding: 15px;
  border-radius: 10px;
  width: 250px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

/* Ícono de calendario */
.evento-box i {
  font-size: 20px;
  margin-bottom: 10px;
  color: #fff;
}


.evento-box p {
  margin: 0;
  font-weight: bold;
  font-size: 16px;
}

.evento-box small {
  font-size: 13px;
  margin-top: 5px;
  opacity: 0.85;
}

.btn-ver-mas {
  margin-top: auto;
  align-self: flex-end;
  background-color: #7c3aed;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
  transition: background-color 0.3s ease;
}

.btn-ver-mas:hover {
  background-color: #6d28d9;
}


.contact-section {
  padding: 50px 20px;
  font-family: 'Segoe UI', sans-serif;
  color: white;
}

.contact-container {
  max-width: 1000px;
  margin: auto;
  background: linear-gradient(to bottom right, #3c10db , #06041a); /* El fondo interno con degradado */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.contact-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-section p {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1rem;
}

.contact-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-group.half {
  width: calc(50% - 10px);
}

.form-group.full {
  width: 100%;
}

.contact-form label {
  margin-bottom: 5px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .info {
  font-size: 0.95rem;
  text-align: center;
  margin-top: 10px;
}

.contact-form button {
  background-color: #7126a3;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  margin: 20px auto 0;
  display: block;
}

.contact-form button:hover {
  background-color: #1ab3ce;
}

  .calendar-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 40px 20px;
    }

  .calendar-title {
      text-align: center;
      color: #00222c;
      margin-bottom: 30px;
      font-size: 2rem;
    }

  .calendar {
    display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 20px;
    }

  .month {
    display: flex;
      background-color: #e0f7fa;
      border-radius: 12px;
      padding: 15px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

  

  .month h3 {
      text-align: center;
      margin: 0 0 10px;
      color: #0cdfee;
    }

  .days {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      text-align: center;
      font-size: 0.8rem;
    }

  .day-name {
      font-weight: bold;
      color: #00222c;
    }

  .day {
      padding: 5px;
      color: #333;
    }

    .contenido {
      background-color: #b2f0f2;
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 0;
    }

    .card {
      background-color: white;
      border-radius: 12px;
      padding: 30px;
      max-width: 800px;
      width: 100%;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

.section-separator {
  border-top: 1px solid #ccc;
  margin: 30px 0;
}

.nombre {
  font-weight: bold;
  font-size: 1.1em;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #7332eb;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0fb8f5;
}

.descripcion{
  color: #1487b1;
}

.feria {
 width: 200px;             /* Tamaño moderado, puedes ajustar */
  height: 200px;
  object-fit: cover;        /* Recorta para que no se deforme */
  float: right;             /* La manda al lado derecho del contenido */
  margin: 10px;             /* Espacio alrededor */
}

.footer {
  background: linear-gradient(90deg,#4c20c4,#00182c);
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
}

/* === HEADER RESPONSIVE === */

/* Estilos generales: ocultar hamburguesa */
.hamburger {
  display: none;
}

@media (max-width: 354px){
.header {
  position: relative;
  z-index: 1000;
}
  .logo {
    width: 30px;
    height: 30px;
  }

  .header h1 {
    font-size: 0.6rem;
  }

  .header h2 {
    font-size: 0.5rem;
    margin-top: 20px;
  }
 
  .menucontent {
    background: linear-gradient(135deg, #1c003c, #3F0071);
    border-radius: 12px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.5);
    padding: 10px;
  }

  .menucontent ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .menucontent a {
    display: block;
    padding: 6px 12px;
    color: white;
    font-size: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease;
  }

  .menucontent a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

@media (min-width: 354px) and  (max-width: 365px){
.header {
  position: relative;
  z-index: 1000;
}
  .logo {
    width: 30px;
    height: 30px;
  }

  .header h1 {
    font-size: 0.7rem;
  }

  .header h2 {
    font-size: 0.6rem;
    margin-top: 20px;
  }

  .carousel button {
    z-index: 1;
  }

.hamburger {
  display: block;
  font-size: 12px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 900;
  margin-top: 10px;
  /* margin: 0 auto; Esto ayuda si no usas flex */
}

  .menu-wrapper {
    /* position: relative; */
    display: flex;
    justify-content: center;
  }

  .menucontent {
    display: none;
    position: absolute;
    top: 40px; /* justo debajo del botón */
    right: 3px;
    width: 200px;
    background: linear-gradient(135deg, #1c003c, #3F0071);
    border-radius: 12px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.5);
    padding: 10px;
    z-index: 1000;
    margin-top: 50px;
    margin-right: 20px;
  }

  .menucontent.active {
    display: flex;
    flex-direction: column;
  }

  .menucontent ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .menucontent li {
    width: 100%;
  }

  .menucontent a {
    display: block;
    padding: 6px 12px;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease;
  }

  .menucontent a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  body {
    overflow-x: hidden;
  }
}

@media (min-width: 361px) and (max-width: 640px) {
.header {
  position: relative;
  z-index: 1000;
}
  .logo {
    width: 30px;
    height: 30px;
  }

  .header h1 {
    font-size: 0.9rem;
  }

  .header h2 {
    font-size: 0.6rem;
    margin-top: 20px;
  }

  .carousel button {
    z-index: 1;
  }

.hamburger {
  display: block;
  font-size: 12px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 900;
  margin-top: 10px;
  /* margin: 0 auto; Esto ayuda si no usas flex */
}

  .menu-wrapper {
    /* position: relative; */
    display: flex;
    justify-content: center;
  }

  .menucontent {
    display: none;
    position: absolute;
    top: 40px; /* justo debajo del botón */
    right: 3px;
    width: 200px;
    background: linear-gradient(135deg, #1c003c, #3F0071);
    border-radius: 12px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.5);
    padding: 10px;
    z-index: 1000;
    margin-top: 50px;
    margin-right: 30px;
  }

  .menucontent.active {
    display: flex;
    flex-direction: column;
  }

  .menucontent ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .menucontent li {
    width: 100%;
  }

  .menucontent a {
    display: block;
    padding: 6px 12px;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease;
  }

  .menucontent a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  body {
    overflow-x: hidden;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .header {
  position: relative;
  z-index: 1000;
}
  .logo {
    width: 60px;
    height: 60px;
  }

  .header h1 {
    font-size: 1.2rem;
  }

  .header h2 {
    font-size: 0.9rem;
    margin-top: 20px;
  }

  .carousel button {
    z-index: 1;
  }
  .hamburger {
  display: block;
  font-size: 20px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  margin-left: 150px;
  z-index: 900; /* Reducido para que quede por debajo del menú */
  }

  .menu-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-end;
  }

  .menucontent {
    display: none;
    position: absolute;
    top: 40px; /* justo debajo del botón */
    right: 10px;
    width: 200px;
    background: linear-gradient(135deg, #1c003c, #3F0071);
    border-radius: 12px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.5);
    padding: 10px;
    z-index: 1000;
    margin-top: 60px;
    margin-right: 30px;
  }

  .menucontent.active {
    display: flex;
    flex-direction: column;
  }

  .menucontent ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .menucontent li {
    width: 100%;
  }

  .menucontent a {
    display: block;
    padding: 6px 12px;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease;
  }

  .menucontent a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  body {
    overflow-x: hidden;
  }
}