/* frontend/css/espacios.css */

 * {
    margin: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    scroll-behavior: smooth;
    }

.header {
     display: flex;
     width: 100%;
     justify-content: center;
     padding: 20px 0px;
     position: fixed;
     transition: background-color 0.3s ease;
     z-index:10000;
 }


 .header.scrolled {
     background-color: rgba(0, 0, 0, 0.5);
     backdrop-filter: blur(10px);
     -webkit-backdrop-filter: blur(10px);
     transition: background-color 0.3s ease;
 }

 nav {
     width: 80%;
     display: flex;
     justify-content: space-between;
     align-items: center;
     color: white;
 }

 nav .logo {
     display: flex;
     gap: 20px;
 }


 nav ul {
     display: flex;
     list-style: none;
     gap: 30px;
 }

 nav ul li a {
     text-decoration: none;
     color: white;
     font-size: 12px;
     transition: 0.1s;
 }

 nav ul li a:hover {
     color: #12bcd3;
 }

 #hero {
    color: white;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 50vh; /* Ajustado para que no sea tan alto en la página de espacios */
    overflow: hidden;
    background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.9)), url(../assets/img/museoo.jpg); /* Puedes cambiar esta imagen si tienes una específica para espacios */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    justify-content: center;
    align-items: center;
}

.hero_content {
    display: flex;
    width: 80%;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    text-align: center; /* Centrar el texto en el hero */
}

.hero_content h1 {
    color: white;
    font-size: 3rem; /* Ajustado el tamaño de la fuente */
    text-shadow: 1px 1px 100px black;
    width: 100%; /* Asegurar que ocupe todo el ancho */
}

/* Barra de búsqueda en espacios culturales */
.search-section {
    width: 100%;
    margin: 20px auto; /* Centrar y añadir margen vertical */
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.search-container {
    width: 100%;
    max-width: 80%;
    position: relative;
    padding: 0 20px;
}

.search-input {
    width: 100%;
    padding: 18px 30px 18px 54px; /* Aumentado el padding para hacerla más grande */
    font-size: 20px; /* Aumentado el tamaño de la fuente */
    border: none;
    border-radius: 50px;
    background: rgba(230, 230, 230, 0.95);
    color: #000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.search-input::placeholder {
    color: #444;
    opacity: 0.7;
}

.search-input:focus {
    background: rgba(240, 240, 240, 1);
    box-shadow: 0 0 0 3px rgba(113, 99, 240, 0.25);
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 36px;
    transform: translateY(-50%);
    color: #555;
    font-size: 18px;
    pointer-events: none;
    opacity: 0.8;
}

/* Estilos para la cuadrícula de puntos culturales */
.puntos-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.puntos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
    align-items: stretch;
}

.punto-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
}

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

.punto-card-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.punto-card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.punto-card:hover .punto-card-img-container img {
    transform: scale(1.05);
}

.punto-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.punto-titulo {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.punto-descripcion {
    font-size: 0.95em;
    color: #666;
    line-height: 1.5;
    flex-grow: 1; /* Permite que la descripción ocupe el espacio disponible */
}

/* Footer */
#footer {
    display: flex;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #0461b8, #0da8e6);
    color: white;
    justify-content: center;
    align-items: center;
}

.footer {
    margin: 50px 0;
    height: 100%;
    display: flex;
    width: 100%; /* Ahora ocupa el 100% del ancho del #footer */
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 0 20px; /* Añadido padding para el espaciado interno */
    box-sizing: border-box; /* Asegura que el padding no añada ancho extra */
}

.footer-img {
    width: 50%;
    display: flex;
    gap: 50px;
}

.footer-img img {
    width: 100px;
}


.footer-datos {
    width: 50%;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 10px;
}

.footer-datos img {
    margin-left: 5px;
}

.footer-social {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.footer-social img {
    width: 20px;
}

/* Modal de Espacios Culturales */
.modal-overlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Asegura que esté por encima de todo */
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 600px;
    width: 90%;
    text-align: center;
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-content.active {
    opacity: 1;
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.modal-img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 2em;
    margin-bottom: 10px;
    color: #333;
}

.modal-horarios,
.modal-direccion,
.modal-description {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 8px;
}

.modal-map-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.modal-map-btn:hover {
    background-color: #0056b3;
}
