/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: #f5f7fa;
    color: #333;
}

/* Filter Section Styles */
.filter-section {
    background: white;
    padding: 2rem;
    margin: 2rem auto;
    margin-top: 250px;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-section form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-section input,
.filter-section select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.filter-section input:focus,
.filter-section select:focus {
    outline: none;
    border-color: #1e3c72;
}

.filter-section button,
.filter-section a {
    display: inline-block;  /* Fuerza el mismo tipo de display */
    background: #1e3c72;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;         /* Ajusta el line-height para que coincida */
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}


.filter-section button:hover, 
.filter-section a:hover {
    background: #2a5298;
}

.filter-section a {
    text-align: center;
    text-decoration: none;
}

/* Event List Styles */
.event-list {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.event-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card img {
    width: 100%;
    height: 200px; /* Mantiene el contenedor de 200px de altura */
    object-fit: contain; /* Ajusta la imagen completa sin recortar */
    background-color: #fff; /* Opcional: color de fondo para rellenar espacios */
}

.event-card h2 {
    font-size: 1.5rem;
    padding: 1rem;
    color: #1e3c72;
}

.event-card p {
    padding: 0.5rem 1rem;
    color: #666;
}

.event-card .btn {
    display: block;
    background: #1e3c72;
    color: white;
    text-decoration: none;
    padding: 0.8rem;
    margin: 1rem;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.event-card .btn:hover {
    background: #2a5298;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .filter-section {
        margin: 1rem;
        margin-top: 250px;
        padding: 1rem;
    }

    .filter-section form {
        grid-template-columns: 1fr;
    }

    .event-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
        margin: 1rem;
    }
    
}

@media (max-width: 480px) {
    .event-card h2 {
        font-size: 1.2rem; /* Reduce el tamaño de la fuente en dispositivos pequeños */
        padding: 0.5rem; /* Reduce el padding para más espacio */
    }
}

/* Loading State Styles */
.loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: #666;
}

/* Empty State Styles */
.event-list p {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: #666;
    grid-column: 1 / -1;
}

  nav a {
    text-decoration: none;
    font-size: 24px;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

/* Efecto de subrayado que aparece desde el centro */
nav a:hover {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 100%;
}
    /* Estilos para el autocompletado personalizado */
    #nombreSuggestions {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: #fff;
      border: 1px solid #ccc;
      max-height: 200px;
      overflow-y: auto;
      z-index: 1000;
    }
    #nombreSuggestions div {
      padding: 5px 10px;
      cursor: pointer;
      border-bottom: 1px solid #eee;
    }
    #nombreSuggestions div:hover {
      background: #f0f0f0;
    }
    
      .logo-img {
    height: 160px; /* Usa height en lugar de max-height */
    width: auto;
    transition: height 0.3s ease-in-out, margin 0.3s ease-in-out; /* Suaviza la animación */
    margin-top: 80px;
    margin-bottom: 80px;
    margin-right: 50px;
}

/* Cuando se hace scroll */
.logo-img.shrink {
    height: 80px !important; /* Ajusta el tamaño */
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    margin-right: 20px !important;
}
