@import "./estilos-comunes.css";

body{
    background-image: url('../recursos/fondo-inicio1.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}

.contenedor-principal{
    padding: 20px;
}

.contenedor-inicio {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    justify-content: center;
    width: 60%;
    height: 80%px;
    text-align: left;
    margin: 30px auto 0 auto;
    padding: 20px 25px;
    background-color: var(--fondo_transparente);
    border-radius: 3px;
}

.contenedor-inicio h2{
    font-size: 2em;
}

.contenedor-inicio p{
    font-size: 1.2em;
}

.contenedor-inicio h2,
.contenedor-inicio p {
    margin: 0 0 20px; 
}

.contenedor-inicio button {
    align-self: flex-end; 
    padding: 10px 20px; 
    cursor: pointer;
    margin-top: auto; 
    border: none; 
    background-color: #cfcac2;
    color: white; 
    border-radius: 5px
}

.contenedor-contacto{
    margin-right: 230px;
    margin-bottom: 20px;
    display: flex;
    justify-content: end;
}

.contenedor-contacto button{
    border-radius: 50%;
    background-color: transparent;
    border-color: transparent;
    margin: 10px 8px;
    cursor: pointer;
}

.contenedor-contacto img{
    height: 40px;
    width: 40px;
}

.contenedor-contacto img:hover{
    transform: scale(1.1, 1.1);
}

.contenedor-tratamientos{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 40px 0 0 0;
}

.servicio{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center; 
    flex: 1; 
    margin: 0 10px; 
    transition: transform 0.3s ease, font-weight 0.3s ease;
    cursor: pointer; 
}

.servicio img{
    width: 60px;
}

.servicio:hover {
    transform: scale(1.05); 
}

.servicio:hover p {
    font-weight: bold; 
}

#service-description{
    background-color: var(--fondo_transparente);
    width: 100%;
    border-radius: 5px;
}

.service-description-hidden {
    display: none;
}

.service-description-visible {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.service-description-content{
    max-width: 80%;
    margin: 0 auto;
}


/*Posta instagram*/

.instagram-feed {
    display: flex;
    justify-content: space-around;
    padding: 30px;
    margin: 50px 0 30px 0;
}
.instagram-post {
    flex: 1;
    margin: 0 10px; 
    border: 5px solid white;
    border-bottom: 30px solid white;
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    max-width: 25%;
}
.instagram-post img {
    width: 100%; 
    height: auto;
    display: block; 
}

.instagram-post:hover,
.contenedor-inicio button:hover {
    transform: scale(1.05, 1.05);
    box-shadow: 10px 8px 16px var(--oro_sombra);
}

/*FOOTER*/
footer {
    background-color: var(--fondo_transparente);
    color: black;
    padding: 20px 0;
    font-size: 1.2em;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mapas-ubi{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mapas-ubi a{
    text-decoration: none;
    color: black;
}

.mapas-ubi a:hover{
    text-decoration: underline;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#footer-social-media,.social-media-icon {
    margin: 0 10px;
}

#footer-social-media{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.social-media-icon img{
    height: 40px;
    margin: 0 20px;
}

#footer-map a, #footer-contact p {
    margin: 10px 0;
}

@media only screen and (max-width: 768px) {
    body{
        background-image: url('../recursos/fondo-movil.png');
    }
    .footer-container {
        flex-direction: column;
    }

    .footer-section {
        margin-bottom: 20px;
    }
    .contenedor-contacto{
        margin-right: auto;
        justify-content: center;
    }
}

@media only screen and (max-width: 600px){    
    .contenedor-inicio{
        width: 80%;
    }
    .instagram-feed{
        flex-direction: column;
        align-items: center;
        margin-top: 0;
    }

    #post{
        margin-top: 30px;
        max-width: 70%;
    }

    .contenedor-tratamientos{
        flex-direction: column;
    }

    .service-description-mobile {
        display: none;
    }
    .service-description-mobile.visible {
        display: block;
        background-color: var(--fondo_transparente);
        width: 100%;
        border-radius: 5px;
        padding: 10px;
        margin-bottom: 20px;
    }

    #footer-map a{
        font-size: calc(1rem - 3.8px);
    }
}
