/*  STYLESHEET FOR: nosotros 

Index:
+ VARIABLES
+ HERO
  - Img background specification
+ ABOUT CARDS
  - Section specifiaction
  - Cards specification
  - Movement specification
  - Card img specification
  - Text-movement specification
  - Title specification
  - Text specification
*/

/* ######################## VARIABLES ######################## */
:root{
    --base-color1: #cdd751; /*#e17743*/ /*#cdd751*/
    --base-color2: #929497;
    --base-color3: #1e56a2;
    --dark-text: #222222;
    --light-text: #f5f5f5;
    --light-bg: #eeeeee;
    --dark-bg: #0a1b2c;

    --font-base: 'Libre Franklin', sans-serif;
}

html {
    scroll-behavior: smooth;
}

*, *::after, *::before{
    margin: 0;
    padding: 0;
}


body{
    background-color: var(--light-bg) !important;
    font-family: var(--font-base) !important;
}

.page-wrapper{
    position: relative;
    margin: 0 auto;
    width: 100%;
    min-width: 300px;
    z-index: 9;
    overflow: hidden;
    height: auto;
}

@media only screen and (max-width: 2500px){
    .page-wrapper {
        overflow: hidden;
    }
}
    

/* ######################## HERO ######################## */
/* Img background specification */
#hero{
    height: 42rem;
    background-image: linear-gradient(90deg,rgba(206, 215, 80, 0.7),rgba(30, 85, 162, 0.7)), url(../img/banners/ngcnd_nosotros.jpeg);
    background-position: center;
    background-size: cover;
}

.divisor {
    height: 8rem;
    padding-top: 2rem;
    padding-left: 0.5rem ;
    border-left: 3px solid var(--light-text);
    animation: scroll-left 2.5s linear forwards;
}

@media screen and (max-width: 600px) {
    .divisor{
        border-left: none;
        padding-top: 0;
    }
}
/* ######################## HERO ######################## */
/* Section specifiaction */
#about-us{
    margin: 4rem 0 4rem 0;
    padding: 0 0 0 0;
}

#hero #herotitle {
    animation: scroll-left 2.5s linear forwards;
}

#hero #heropresentation {
    animation: scroll-left 2.5s linear forwards;
}

/* ######################## CARDS ######################## */
/* Cards specification*/
.card-custom{
    height: 36rem;
    padding: 2rem 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: 0.4s ease-in-out; /*OPCIÓN: 0.10s*/
    animation: appear 4s forwards 3s;
}

/* Movement specification*/
.card-custom:hover{
    transform: translateY(-10px);
}
.card-custom::before{
    width: 100%;
    height: 100%;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block; 
    background: linear-gradient(to bottom,rgba(255, 255, 255, 0.067), var(--light-bg));
    z-index: 2;
    box-shadow: 0px 7px 10px#222222;
    transition: 0.5s all;
    opacity: 0;
}
.card-custom:hover::before{
    opacity: 1;
}

/* Card img specification*/
.card-custom img{
    width: 47%;
    position: absolute;
    margin-top: -1.5rem;
    z-index: -1;
}

/* Title specification */
.card-custom .info h3{
    margin-top: 13.5rem;
    text-align: center;
    color: var(--dark-text);
}

/* Text specification*/
.card-custom .info p{
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    margin-top: 2rem;
}

/* Text-movement specification*/
.card-custom .info p{
    position: relative;
    z-index: 3;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s all;
}
.card-custom:hover .info p{
    opacity: 1;
    transform: translateY(0px);
}

/* ######################## ANIMATIONS ######################## */
@keyframes scroll-left {
    0% {
        transform: translateX(-20%);
    }

    100% {
        left: 100px;
    }
}

@keyframes zoom {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
    
}

@keyframes appear {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes up {
    0% {
        transform: translateY(-10%);
    }

    100% {
        top: 0px;
    }
}