/* Included color classes.. 
	.red 
	.blue 
	.orange
*/
@import url(https://fonts.googleapis.com/css?family=Raleway:400,800);

#servicios {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 5rem;
}

#servicios p {
    font-size: 18px;
    text-align: left;
    line-height: 1.1;
}

.servicios {
    width: 100%;
    height: auto;
    background-image: url('../../img/craneo.png');
    background-size: cover;
    /* Cubre todo el ancho, incluso más */
    background-repeat: no-repeat;
    background-position: center;
    background-color: #222222;
    padding: 2rem 1rem;
    color: #fff;
    text-align: left;
}


.servicios h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.servicios p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}


figure.snip1171 {
    font-family: 'Raleway', Arial, sans-serif;
    position: relative;
    overflow: hidden;
    margin: 10px;
    min-width: 220px;
    max-width: 310px;
    width: 100%;
    background: #222222;
    color: #333;
    text-align: left;
    box-shadow: 0 4px 12px rgb(255, 255, 255);
}

figure.snip1171 * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all 0.35s cubic-bezier(0.25, 0.5, 0.5, 0.9);
    transition: all 0.35s cubic-bezier(0.25, 0.5, 0.5, 0.9);
}

figure.snip1171 img {
    max-width: 100%;
    vertical-align: top;
}

figure.snip1171 figcaption {
    position: relative;
    background-color: #ffffff;
    padding: 20px 25px 50px;
}

figure.snip1171 h3 {
    position: absolute;
    bottom: 100%;
    padding: 0px 25px;
    line-height: 44px;
    margin: 0;
    left: 0;
    font-weight: 400;
    background-color: #222222;
    color: hsl(0, 0%, 100%);
}

figure.snip1171 h3 span {
    font-weight: 800;
}

figure.snip1171 h3:before {
    position: absolute;
    left: 100%;
    border-style: solid;
    border-width: 44px 0 0 12px;
    border-color: transparent transparent transparent #000000;
    content: '';
    top: 0;
}

figure.snip1171 p {
    font-size: 17px;
    font-weight: 500;
    text-align: left;
    margin: 0;
    line-height: 1.3em;
}


figure.snip1171 a {
    text-decoration: none;
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #222222;
    line-height: 40px;
    padding: 0 10px;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9em;
    text-transform: uppercase;
}

figure.snip1171 a:before {
    position: absolute;
    right: 100%;
    border-style: solid;
    border-width: 0 0 40px 12px;
    border-color: transparent transparent #222222;
    content: '';
    top: 0;
}

figure.snip1171:hover img,
figure.snip1171.hover img {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

@media (max-width: 500px) {
    #servicios {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    #servicios h1 {
        font-size: 1.2rem;
        /* Ajustar tamaño para móvil */
        text-align: center;
        /* Centrar texto para mejor estética */
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    #servicios p {
        font-size: 17px;
        /* Tamaño legible en móvil */
        text-align: left;
        /* Centrar párrafo también */
        line-height: 1.1;
        margin-bottom: 1rem;
    }
}