/*---------------------------------------------------------------------------------------------
# General Conf
-----------------------------------------------------------------------------------------------*/
:root {
    --font-default: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto,
        'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif,
        'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    --font-primary: 'Inter', sans-serif;
}

:root {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
}

html,
body {
    background-attachment: fixed;
    background-image: url(../imagenes/background.webp);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: var(--font-default);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
}

/* Remove spaces generates by AOS*/
.delete_space {
    overflow-x: hidden
}

/*---------------------------------------------------------------------------------------------
Header
-----------------------------------------------------------------------------------------------*/
#h1_header {
    background: linear-gradient(90deg, #d6c6b4 10%, #04aa69 50%, #d6c6b4 60%);
    background-clip: border-box;
    -webkit-background-clip: text;
    background-size: 200% auto;
    color: #04aa69;
    font: small-caps 700 250% serif;
    -webkit-text-fill-color: transparent;
    animation: title 3s linear infinite;
}

#h1_header img {
    @media screen and (max-width:600px) {
        display: none
    }
}

#h1_2 {
    background: linear-gradient(90deg, #FAF9F6 10%, #d6c6b4 50%, #FAF9F6 60%);
    background-clip: border-box;
    -webkit-background-clip: text;
    background-size: 200% auto;
    -webkit-text-fill-color: transparent;
    font: small-caps 700 65px serif;
    min-height: 85vh;
    letter-spacing: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 1263px) {
    #h1_2 {
        font: small-caps 700 45px serif;
        letter-spacing: 8px;
    }
}

@media (max-width: 1000px) {
    #h1_2 {
        font: small-caps 700 35px serif;
        letter-spacing: 5px;
    }
}

@keyframes title {
    to {
        background-position: 200%
    }
}

/*---------------------------------------------------------------------------------------------
# navbars & navpills
-----------------------------------------------------------------------------------------------*/
.navbar {
    box-shadow: rgb(122, 132, 155) 0px 20px 30px -10px;
    color: #3e4346;
    z-index: 3;
}

.navbar,
.dropdown-menu {
    background-color: #d6c6b4;
    font-size: 12px;
}

.nav-item>ul a:hover {
    border-radius: 30px;
    background-color: #04aa69;
    color: #FAF9F6;
}

.dropdown:hover>.dropdown-menu {
    display: block;
}

/*Without this, clicking will make it sticky*/
.dropdown>.dropdown-toggle:active {
    pointer-events: none;
}

/*Position the second sticky Navbar in equipoHSD.php*/
/* Turn off Sticky-top scrolling for tablets and phones */
@media (min-width:992px) {
    .sticky-lg-top2 {
        position: -webkit-sticky;
        position: sticky;
        top: 5px;
        z-index: 2
    }
}

.nav-pills {
    background-color: #d6c6b4;
    font-size: 12px;
}

.nav-pills .nav-link {
    color: #3e4346;
}

.nav-pills .nav-link:hover {
    background-color: transparent;
    color: #04aa69;
}

.nav-pills .nav-link.active {
    background-color: transparent;
    color: #04aa69;
}

/*---------------------------------------------------------------------------------------------
# Carousel
-----------------------------------------------------------------------------------------------*/
#myCarousel {
    height: 100vh;
}

.carousel-item:nth-child(1) {
    background-image: url('../imagenes/carouselIndex/esparrago_1.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.carousel-item:nth-child(2) {
    background-image: url('../imagenes/carouselIndex/esparrago_2.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.carousel-item:nth-child(3) {
    background-image: url('../imagenes/carouselIndex/esparrago_3.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.carousel-item:nth-child(4) {
    background-image: url('../imagenes/carouselIndex/esparrago_4.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

/* Height for devices larger than 576px */
@media (min-width: 992px) {
    #introCarousel {
        margin-top: -58.59px;
    }
}

/*---------------------------------------------------------------------------------------------
# Accordion & Card
-----------------------------------------------------------------------------------------------*/
.accordion {
    --bs-accordion-border-color: #d6c6b4;
    --bs-accordion-active-color: #04aa69;
}

.accordion p {
    font-size: 13px;
}

.accordion .accordion-body {
    font-size: 15px;
}

.accordion,
.card {
    text-align: left;
    border: 2px solid #d6c6b4;
    background-color: #FAF9F6;
}

.card {
    height: 100%;
}

.card .card-body .btn h5 {
    font-size: 14px;
}

.card .card-body .card-title {
    text-align: center;
    font-weight: bold;
}

.card .card-img-top {
    aspect-ratio: 6/3;
}

/*---------------------------------------------------------------------------------------------
# Certificaciones.php
-----------------------------------------------------------------------------------------------*/
#certificacion {
    border: 2px solid #d6c6b4;
    background-color: #FAF9F6;
    color: black;
}

#certificacion p {
    font-size: 20px
}

#certificacion .btn {
    background-color: #04aa69;
    color: #FAF9F6;
    font-size: 13px;
}


/*---------------------------------------------------------------------------------------------
# Corte esparrago
-----------------------------------------------------------------------------------------------*/
#corteEsparrago {
    height: 55px;
    overflow: hidden;
    transition: height .5s;
    text-align: left;
    interpolate-size: allow-keywords;
}

#corteEsparrago:hover {
    height: auto;
}

@media (max-width:1211px) {
    #corteEsparrago {
        height: 100%;
        pointer-events: none;
    }
}

#corteEsparrago .card-body .card-title {
    color: #1E201E;
}

#corteEsparrago .card-body .card-text {
    color: #3C3D37;
}

.lightbox {
    @media screen and (max-width:600px) {
        pointer-events: none;
        cursor: default;
    }
}

.lightbox {
    background-color: transparent;
}