:root {
    --color-white: #ffffff;
    --text-color-light: #666666;
    --primary-color: #5bc263;
    --primary-color-light: #70d985;
    --gallery-column-width-smartphone: 100%;
    --gallery-column-width-tablet: 50%;
    --gallery-column-width-pc: 33.3333%;
    --gallery-column-margin: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Merriweather Sans", sans-serif;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-color-light);
}

.txt-center {
    text-align: center;
}

.primary-color {
    color: var(--primary-color);
}

.mb05 {
    margin-bottom: 0.5rem;
}

.mb1 {
    margin-bottom: 1rem;
}

.mt05 {
    margin-top: 0.5rem;
}

.mt1 {
    margin-top: 1rem;
}

.mb2 {
    margin-bottom: 2rem;
}

.pt2 {
    padding-top: 2rem;
}

.py05 {
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.py3 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.px1 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.font-size-1-25 {
    font-size: 1.25rem;
}

.bg-color-primary {
    background-color: #f9f9f9;
}

.bg-primary-color {
    background-color: var(--primary-color);
}

.color-white {
    color: var(--color-white);
}

p,
ul,
li {
    margin: 0;
    padding: 0;
}

ul {
    list-style-type: none;
}

.flexbox-grid {
    display: grid;
}

a {
    text-decoration: none;
}

.container-plastikoswm {
    max-width: 1280px;
    margin: 0 auto;
}

.container-text-plastikoswm {
    max-width: 992px;
    margin: 0 auto;
}

/* CSS BOTON WHATSAPP */
.boton-whatsapp-flotante {
    border-radius: 50%;
    position: fixed;
    z-index: 2;
    bottom: 80px;
    right: 80px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.boton-whatsapp-flotante svg {
    width: 64px;
    height: auto;
}

.boton-whatsapp-flotante:hover {
    transform: scale(1.05);
}

/*** CSS HEADER ***/
.header_navbar {
    background-color: #fff;
    position: fixed;
    z-index: 1;
    width: 100%;
    top: 0;
}

header {
    background-color: var(--primary-color);
}

.header-top {
    display: flex;
    justify-content: end;
    gap: 1rem;
}

.header-top a {
    display: inline-block;
    font-size: 15px;
    color: var(--color-white);
    transition: all 0.3s linear;
    transform: perspective(1px) rotateY(0deg);
    backface-visibility: hidden;
}

.header-top a:hover {
    transform: scale(1.02) translateZ(0);
    color: var(--color-white);
}

.header-top a>span {
    vertical-align: middle;
}

/*** CSS NAV ***/
.img-logo-header {
    width: min(18vw, 100px);
}

.item-menu,
.item-submenu {
    font-size: 15px;
    font-weight: 600 !important;
    color: #7b7b7b !important;
}

.item-menu:hover {
    color: var(--primary-color) !important;
    border-bottom: 4px solid var(--primary-color);
}

a:is(:link, :active, :visited).active-link {
    color: var(--primary-color) !important;
    border-bottom: 4px solid var(--primary-color);
}

.navbar-expand-lg .navbar-nav .nav-link {
    height: 42.5px;
}

/*Sobrescritura del CSS para cambiar el color azul al hacer click en uno de los items del dropdown(sub-menu)*/
.dropdown .dropdown-menu .dropdown-item:focus {
    background-color: transparent;
    color: #202020;
}

/*** CSS SECTION-CENTER  ****/
.section-center {
    margin-top: 164.17px;
}

.hero-banner {
    position: relative;
    height: 600px;
}

.hero-banner-min {
    position: relative;
    height: 400px;
}

.hero-image-container,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-overlay.opacity-05 {
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.hero-text,
.hero-text-banner-min {
    max-width: 768px;
    color: var(--color-white);
}

.hero-text-banner-min h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero-text-banner-min p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.hero-text-banner-min a {
    display: block;
    margin: 0 auto;
    width: fit-content;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    border-radius: 0.5rem;
    line-height: 45px;
    padding: 0 1rem;
    font-size: 1.125rem;
    transition: all 0.3s linear;
}

.hero-text-banner-min a:hover {
    background-color: hsla(0, 0%, 100%, .3);
    border: 2px solid transparent;
    color: var(--color-white);
}

.hero-text-banner-min a svg {
    transition: all 0.5s ease;
}

.hero-text-banner-min a:hover svg {
    transform: translateX(3px);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text h1 {
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-text p {
        font-size: 1.125rem;
    }

    .hero-overlay {
        background-color: rgba(0, 0, 0, 0.6);
    }

    .hero-text-banner-min h2 {
        font-size: 1.5rem;
    }

    .hero-text-banner-min p {
        font-size: 1rem;
    }
}

/* Buttons */
.cta-button {
    text-decoration: none;
    line-height: 1.1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #1a7845;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background-color: #1e9152;
    color: var(--color-white);
}

.text-rolls {
    text-align: center;
}

.img-rolls img {
    margin-top: 20px;
    height: 100%;
    max-height: 250px;
}

.img-rolls h4 {
    margin: 1rem 0 0 0;
    padding: 0.3rem 0;
    width: 80%;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.section-down {
    background-color: var(--primary-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    font-style: italic;
    font-size: 1.125rem;
    gap: 0.5rem;
}

.section-down * {
    color: var(--color-white);
}

.section-down a {
    display: inline-block;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: all 0.3s linear;
    transform: perspective(1px) rotateY(0deg);
    backface-visibility: hidden;
}

.section-down a:hover {
    color: var(--color-white);
    transform: scale(1.03) translateZ(0);
}

.overflow-hidden {
    overflow: hidden;
}

/*** CSS FOOTER ****/
.footer-section {
    background: rgb(117, 117, 116);
}

.footer-section-contacto {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.footer-section-contacto h3 {
    text-align: left;
}

.footer-section-contacto ul {
    list-style: none;
    padding-left: 0px;
    margin-bottom: 0px;
}

.tit-footer {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.li_correo_footer {
    background: url('../images/img-icon/email-icon.png');
}

.li_whatsapp_footer {
    background: url('../images/img-icon/whatsapp-icon.png');
}

.li_cel_footer {
    background: url('../images/img-icon/phone-icon.png');
}

.li_dir_footer {
    background: url('../images/img-icon/home_icon.png');
}

.li_dir_footer p {
    margin-bottom: 0px;
    color: #c5c4c4;
    font-size: 16px;
}

.ul_li_contacto li {
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-left: 30px;
    margin: .5rem 0;
}

.ul_li_informacion li {
    margin: 5px 0;
}

.footer-section-contacto a {
    text-decoration: none;
    color: #c5c4c4;
    font-size: 16px;

}

.footer-section-contacto a:hover {
    color: #f3f2f2;
}

.imgmediosdepago {
    height: 30px;
    width: auto;
}

.mediosdepago li:nth-child(1) {
    padding-top: 8px;
}

.mediosdepago li:nth-child(2) {
    margin-top: 15px;
}

.footer-section-copyright {
    background: #1e1e1f;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    color: var(--color-white);
}

.footer-section-copyright span {
    font-size: 14px;
}

.row-plastikoswm-2-column {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

.border-radius-05 {
    border-radius: 0.5rem;
}

.col-plastikoswm-box>div img {
    width: 100%;
    height: 400px !important;
    object-fit: cover;
    object-position: center;
}

.col-plastikoswm-img {
    position: relative;
    height: 400px;
}

.col-plastikoswm-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.col-plastikoswm-text h2 {
    font-size: 1.5rem;
}

.link-cotizar {
    display: inline-block;
    color: var(--primary-color);
}

.link-cotizar:hover {
    color: var(--primary-color);
}

.link-cotizar svg {
    transition: all 0.3s ease;
}

.link-cotizar:hover svg {
    transform: translateX(5px);
}

.entering-from-below {
    opacity: 0;
    transform: translateY(15%);
}

.entering-from-below.observed-element {
    animation: enteringFromBelow 1s ease-out forwards;
}

@keyframes enteringFromBelow {
    from {
        opacity: 0;
        transform: translateY(15%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.entering-from-the-left {
    opacity: 0;
    transform: translateX(-15%);
}

.entering-from-the-left.observed-element {
    animation: enteringFromTheLeft 1s ease-out forwards;
}

@keyframes enteringFromTheLeft {
    from {
        opacity: 0;
        transform: translateX(-15%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.entering-from-the-right {
    opacity: 0;
    transform: translateX(15%);
}

.entering-from-the-right.observed-element {
    animation: enteringFromTheRight 1s ease-out forwards;
}

@keyframes enteringFromTheRight {
    from {
        opacity: 0;
        transform: translateX(15%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}

.item-contact-section {
    display: inline-block;
    color: var(--primary-color);
    padding-bottom: 3px;
    text-underline-offset: 5px;
    transition: all 500ms;
}

.item-contact-section:hover {
    color: var(--primary-color);
    transform: scale(1.02);
}

.contact-address h5 {
    text-align: left;
}

.section-center-ubicacion iframe {
    width: 100%;
    height: 450px
}

.link-primary-color {
    display: inline-block;
    text-decoration: underline;
    text-underline-offset: 2px;
    color: var(--primary-color);
    transition: all 0.3s linear;
    transform: perspective(1px) rotateY(0deg);
    backface-visibility: hidden;
}

.link-primary-color:hover {
    color: var(--primary-color);
    transform: scale(1.02) translateZ(0);
}

.ul-primary-plastikoswm {
    padding-left: 1.5rem;
}

.ul-primary-plastikoswm li {
    list-style-image: url('../images/img-icon/chevrons-right.svg');
    margin-bottom: 0.5rem;
}

.ul-primary-plastikoswm li>span {
    line-height: normal;
    vertical-align: top;
}

/*CSS Página bolsa-plastica*/
.bg-image-bolsa-plastica {
    background-image: url('../images/img-pagina-bolsa-plastica/fondo-bolsa-plastica.jpg');
}

.plastic-bags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gallery-column-margin) 0;
    /*El siguiente calc es para eliminar el margin-left de 2rem que se define en .plastic-bags figure para las imágenes de la izquierda*/
    margin-left: calc(var(--gallery-column-margin) * -1);
}

.plastic-bags figure {
    display: flex;
    flex-direction: column;
    width: calc(var(--gallery-column-width-pc) - var(--gallery-column-margin));
    margin-left: var(--gallery-column-margin);
    margin-bottom: 0px;
    box-shadow: inset 0 -3em 3em rgba(0, 0, 0, 0.1), 0.3em 0.3em 1em rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.plastic-bags figure img {
    width: 100%;
    height: auto;
}

.plastic-bags figcaption {
    padding: 1rem;
}

.plastic-bags a {
    /*Convertimos el tag a en bloque para que ocupe todo el ancho del div en donde está contenido*/
    display: block;
    text-align: center;
    color: #fff;
    text-decoration: none;
    background-color: var(--primary-color);
    padding: 10px;
    /*La siguiente propiedad ubica el tag a al final del div, en este caso es figure, pero para eso figure debe tener display:flex y flex-direction: column;*/
    margin-top: auto;
    font-weight: 600;
    transition-property: background-color;
    transition-timing-function: linear;
    transition-duration: 400ms;
}

.plastic-bags a:hover {
    color: var(--primary-color);
    background-color: var(--color-white);
    border: 2px solid var(--primary-color);
    padding: 8px;
}

.enter-through-the-center.observed-element {
    animation-name: enter-through-the-center;
    animation-timing-function: linear;
    animation-duration: 1s;
}

@keyframes enter-through-the-center {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/*CSS Página plastico-embalaje*/
.bg-image-plastico-embalaje {
    background-image: url('../images/img-pagina-plastico-embalaje/fondo-plastico-embalaje.jpg');
    text-shadow: 5px 5px 5px rgba(0, 0, 0, .5);
}

@media all and (max-width: 992px) {

    .header_navbar {
        background-color: transparent;
        position: static;
        z-index: 0;
    }

    .navbar-expand-lg .navbar-nav .nav-link {
        height: auto;
    }

    .item-menu:hover {
        border-bottom: none;
    }

    /*Los dos bloques siguientes de código permiten identar submenus en pantallas iguales o menores a 992px*/
    ul.dropdown-menu ul {
        padding-left: 25px !important;
    }

    ul.dropdown-menu ul li a {
        padding-left: 0px !important;
    }

    /*Rotamos la flecha del submenu hacia abajo*/
    a.dropdown-item.dropdown-toggle::before {
        transform: rotate(-90deg);
    }

    .footer-section-contacto>div>div:nth-child(3) {
        padding-top: 20px;
    }

    .section-center {
        margin-top: 0px;
    }

    .plastic-bags figure {
        width: calc(var(--gallery-column-width-tablet) - var(--gallery-column-margin));
    }
}

@media all and (max-width: 768px) {

    .hero-banner {
        height: 500px;
    }

    .col-plastikoswm-box>div img {
        height: 300px !important;
    }

    .boton-whatsapp-flotante {
        bottom: 60px;
        right: 35px;
    }

    .footer-section-contacto>div>div:nth-child(2) {
        padding-top: 20px;
    }

    .row-plastikoswm-2-column {
        grid-template-columns: repeat(1, 1fr);
    }

    .col-plastikoswm-img {
        order: -1;
    }

    .plastic-bags {
        justify-content: center;
    }

    .plastic-bags figure {
        max-width: 450px;
        width: calc(var(--gallery-column-width-smartphone) - var(--gallery-column-margin));
    }

}

@media all and (max-width: 576px) {
    .header-top {
        justify-content: space-between;
    }
}