/* Reseteo básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f3f3f3;
}

/* Header Minimalista */
header {
    background-color: #fafafa;
    padding: 30px 20px;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background-color: #f9f9f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Contenedor de Header */
.contenedor-header {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-link {
    flex-shrink: 0;
}

.logo-minimalista {
    width: 70px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.logo-minimalista:hover {
    transform: scale(1.1);
}

.textos-header {
    flex-grow: 1;
    text-align: left;
}

.textos-header h1 {
    font-size: 2.2em;
    color: #4b4b4b;
    font-weight: 600;
}

.subtitulo-header {
    font-size: 1em;
    color: #888888;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

/* Logo viejo */
.logo {
    width: 100px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

/* Main */
main {
    margin: 0 auto;
    position: relative;
    background-color: #f3f3f3;
    padding: 20px;
    border-radius: 15px;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #333;
}

p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: #555;
}

.contenedor {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 20px;
}


.columna-info {
    flex: 1;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    border: 3px solid #c7a3e4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
}

.columna-imagenes {
    flex: 0 0 65%; /* Máximo 40% del contenedor padre */
    display: flex;
    flex-wrap: wrap;
    gap: 4%;
}

.columna-imagenes img {
    width: 46%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 10px;
    display: block;
}

.columna-imagenes img:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

.columna-info:hover, .columna-imagenes:hover {
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Imágenes reseña */
.img-reseña {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.img-reseña img {
    border-radius: 10px;
    width: 70%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-reseña img:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

/* Textos */
.info, .contacto, .opiniones {
    text-align: center;
    margin-bottom: 10px;
}

.que_somos {
    margin-top: 20px;
    margin-bottom: 15px;
}

.que_somos p {
    margin-bottom: 20px;
}

/* Contacto */
.info-contacto {
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.item-contacto a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icono-contacto {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Mapa */
.mapa {
    border-radius: 10px;
    width: 100%;
    height: 450px;
    border: 0;
    margin-bottom: 20px;
}

/* Botones */
.boton-link {
    display: block; /* Antes inline-block */
    width: 100%; /* Que ocupe todo el ancho disponible */
    background-color: #c7a3e4;
    color: white;
    text-decoration: none; /* No subrayado */
    padding: 12px 0; /* Más uniforme */
    font-size: 1em;
    margin: 20px 0 0 0; /* Margen arriba, para separarlo de la imagen */
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}


button:hover, .boton-link:hover {
    background-color: #8c62b7;
    transform: translateY(-3px);
}

/* Footer */
footer {
    width: 100%;
    text-align: center;
    margin-top: 40px;
    font-size: 0.9em;
    color: #555;
}

/* Loading */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #c7a3e4;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

/* Animación de spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .contenedor {
        flex-direction: column;
        padding: 10px;
    }

    .contenedor-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .textos-header {
        text-align: center;
    }

    .columna-info {
        padding: 15px;
    }

    .columna-imagenes img {
        max-width: 100%;
        height: auto;
    }

    .img-reseña img {
        width: 100%;
    }

    .mapa {
        height: 300px;
    }

    button {
        width: 100%;
        padding: 12px 0;
    }
}
