/*HOJA DE ESTILOS DE COMPLIANCE LABORAL*/
/*GENERALES*/
* {
    margin: 0;
}

h1 {
    font-family: 'Signika';
    font-weight: bolder;
    padding-top: 200px;
    padding-bottom: 170px;
    color: white;
    text-transform: uppercase;
    font-size: 50px;
}

h2 {
    font-family: 'Signika';
    text-transform: uppercase;
    padding-bottom: 45px;
    padding-top: 30px;
    font-size: xx-large;
}

h3 {
    font-family: 'Signika';
    text-transform: uppercase;
    padding-bottom: 2px;
    padding-top: 7px;
    font-size: 20px;
}

p {
    font-family: 'Signika';
    font-weight: lighter;
    font-size: 20px;
    padding-bottom: 10px;
}

/*BARRA DE NAVEGACION*/
.logo img {
    width: 100px;
}

.fondo-nav {
    background-color: #5B5B5B;
    margin: 0;

}

.nav-link {
    color: white;
    padding: 40px 36px !important;
    font-family: 'Signika';
}

.nav-link:hover,
.active .nav-link {
    color: white;
}

.nav-item:hover,
.active .nav-link {
    background-image: linear-gradient(#E1A861, #B6783B);
    color: white;
}


/*HEADER*/
.header-laboral {
    background-image: url(../imagenes/header-laboral.jpg);
    background-repeat: no-repeat;
    background-position: top;
    background-size: cover;
}

/*___________________________________________________SECCION DE TARJETAS__________________________________*/
.tarjetas {
    background-image: url(../imagenes/bg-laboral.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding-top: 70px;
    padding-bottom: 70px;
}

.flip-card-back h3 {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}



.flip-card {
    background-color: transparent;

    border-radius: 30px;
    width: 100%;
    /* ocupará el ancho de la columna */
    max-width: 300px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    /* esto las centra en su columna */

    margin-bottom: 1.5rem;

}

/* This container is needed to position the front and back side */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Position the front and back side */
.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    /* Safari */
    backface-visibility: hidden;
}

/* Style the front side (fallback if image is missing) */
.flip-card-front {
    background-color: #bbbbbb00;
    color: black;
    border-radius: 30px;
}

/* Style the back side */
.flip-card-back {
    background-color: black;
    color: white;
    border-radius: 30px;
    transform: rotateY(180deg);
}


.flip-card-back p {
    padding: 0.5rem 1rem;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    line-height: 1.4;
}

/*FOOTER*/
footer {
    background-color: #4B4A52;
    color: white;
    font-size: smaller;
    font-weight: lighter;
}

footer img {
    width: 70px;
    padding-bottom: 25px;
    padding-top: 20px;
}



@media (max-width: 767.98px) {
    .flip-card-back p {
        font-size: 1rem;
        /* o el tamaño que desees restaurar */
    }
}