/*
Theme Name: RGImports
Theme URI: http://rgimports.com.pe/
Author: nfocostudios
Author URI: https://nfocostudios.com/
Description: Web de maquinaria
Tags: maquinaria, vehiculos, importaciones
Version: 1.3
Requires at least: 5.0
Tested up to: 5.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rgimports
*/

:root {
    /*--rg-yellow: #efcc12;*/
    --rg-yellow: #ffbd2b;
    --rg-black: #232b2d;
    --rg-grey: rgb(122,122,122);
    --rg-white: #fff;
    --mobile: 480px;
    --tablet: 768px;
    --laptop: 1024px;
    --desktop: 1200px;
}

body {
    font-family: "Open Sans", serif;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

main {
    flex: 1;
}

.main-header {
    background-color: var(--rg-black);
    padding: 25px 0;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

body.admin-bar header {
  top: 32px; /* Altura de la admin bar en pantallas normales */
}

@media screen and (max-width: 782px) {
  body.admin-bar header {
    top: 46px; /* Altura de la admin bar en pantallas pequeñas */
  }
}

.main-header__logo {
}

.custom-logo-link img {
    height: 100px;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.main-header__menu-mobile {
    display: none;
}

.main-header__nav-link {
    color: #fff;
    font-weight: 600;
    padding-left: 20px;
    padding-right: 20px;
}

.main-header__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
}

.main-header__nav li a,
.main-header__nav-mobile li a {
    font-size: 16px;
    padding-left: 20px;
    padding-right: 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    display: block;
    transition: .5s ease all;
}

.main-header__nav li:hover a,
.main-header__nav-mobile li:hover a{
    color: var(--rg-yellow);
}

.main-header__nav li.current_page_item a {
    color: var(--rg-yellow);
}

.main-header__nav li.current_page_item {
    position: relative;
}

.main-header__nav li.current_page_item::before {
    content: '';
    position: absolute;
    bottom: -10px;
    height: 3px;
    width: 50%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--rg-yellow);
}

.main-header__nav-mobile {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 20px 0 0 0;
}

.main-header__nav-mobile li:not(:last-child) {
    margin-bottom: 20px;
}

/* Splide */
.splide__slide {
    position: relative;
}

.splide__img {
    filter: brightness( 100% ) contrast( 100% ) saturate( 0% ) blur( 0px );
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.splide__img--only {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.splide__caption {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42,42,42,.8);
    display: flex;
    align-items: center;
}

.splide__caption-title {
    color: #fff;
    font-weight: 700;
    font-size: 45px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .splide__caption-title {
        font-size: 60px;
    }
}

@media (min-width: 1400px) {
    .splide__caption-title {
        font-size: 80px;
    }
}


.splide__caption-subtitle {
    color: var(--rg-yellow);
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.splide__caption-description {
    color: rgb(250, 250, 250);
    font-weight: 500;
    line-height: 25.6px;
}

.splide__caption-img {
    position: absolute;
    top: 0;
    height: 100%;
}

/* about us */

.about-us {
    padding: 120px 0;
}

.about-us__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-us__icon {
    background-color: var(--rg-yellow);
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.about-us__img-bg {
    width: 90%;
    background-color: var(--rg-yellow);
    border-radius: 10px;
    transform: translate(0, 5%);
    aspect-ratio: 1 / 1;
}

.about-us__img {
    transform: translate(5%, -5%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.our-products {
    background-color: #F1F1F1;
    padding: 80px 0;
}

.our-products__content {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.our-products__content::before {
    position: absolute;
    content: '';
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0,0,0,0.3);
}

.our-products__content-img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    transition: .3s ease all;

}

.our-products__content-caption {
    position: absolute;
    content: '';
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    transition: .4s ease all;
    background-color: transparent;
    display: flex;
    align-items: end;
    justify-content: start;
    overflow: hidden;
    padding: 2.1em 2.1em 0 2.1em;
}

.our-products__content-link:hover .our-products__content-caption {
    background-color: var(--rg-yellow);
}

.our-products__content-link:hover .our-products__content-bottom {
    transform: translateY(-30px);
}

.our-products__content-title {
    color: #fff;
    font-size: 24px;
    line-height: 25px;
    font-weight: 700;
    margin-bottom: 0;
}

.our-products__content-bottom {
    transition: .4s ease all;
    transform: translateY(-20px);
}

.our-products__content-link:hover .our-products__content-subtitle  {
    opacity: 1;
}

.our-products__content-subtitle {
    margin-top: 10px;
    color: #fff;
    margin-bottom: 0;
    transition: .4s ease all;
    opacity: 0;
}

.reviews {
    padding: 80px 0;
}

.review-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.review-card__img img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.review-card__title {
    color: var(--rg-black);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.review-card__rating {
    color: var(--rg-yellow);
    font-size: 18px;
    margin-bottom: 5px;
}

.review-card__description {
    color: var(--rg-grey);
    font-size: 16px;
    text-align: left;
}


.main-footer {
    background-color: var(--rg-black);
    padding: 60px 0 20px 0;
}

.main-footer__title {
    color: #fff;
    font-size: 24px;
    line-height: 1.2em;
    font-weight: 700;
}

.main-footer_items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-footer__title {
    margin-bottom: 30px;
}

.main-footer__item:not(:last-child) {
    margin-bottom: 20px;
}

.main-footer__item-link {
    text-decoration: none;
}

.main-footer_items li a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

@media (min-width: 576px) {
    .main-footer_items li a {
        justify-content: left;
    }
}

.main-footer__item-link:hover span {
    color: var(--rg-yellow);
}

.main-footer__item-link span {
    color: #fff;
    transition: .3s ease all;
    text-align: center;
}

@media (min-width: 576px) {
    .main-footer__item-link span {
        text-align: left;
    }
}

.main-footer__item-link i {
    color: var(--rg-yellow);
    width: 20px;
    min-width: 20px;
    text-align: center;
    margin-right: 5px;
}

.main-footer__copyright {
    border-top: 1px solid rgb(54, 54, 54);
    padding-top: 20px;
}

.main-footer__logo {
    width: 60px;
    margin-bottom: 20px;
}

.main-footer__description {
    width: 100%;

}

@media(min-width: 768px) {
    .main-footer__description {
        width: 90%;

    }
}

.banner {
    height: 300px;
    position: relative;
}

.banner__bg {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.banner__content {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(24, 24, 24, 1), rgba(24, 24, 24, .80), rgba(24, 24, 24, .50));
    display: flex;
    align-items: end;
}

.banner__title {
    color: #fff;
    font-weight: 700;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.contact-form {
    padding: 80px 0;
}

.contact-form .form-control:not(input[type=file]) {
    background-color: transparent;
    border: 1px solid #d9d7d7;
    height: 55px;
    line-height: 25px;
    color: #848484;
    font-weight: 400;
    padding: 9px 20px;
    transition: all 300ms ease;
    border-radius: 0;
}

.contact-form .form-select {
    background-color: transparent;
    border: 1px solid #d9d7d7;
    height: 55px;
    line-height: 25px;
    color: #848484;
    font-weight: 400;
    padding: 9px 20px;
    transition: all 300ms ease;
    border-radius: 0;
}

.contact-form input[type=file].form-control {
    border-radius: 0;
}

.contact-form textarea.form-control:not(input[type=file]) {
    height: 150px;
    resize: none;
}

.contact-form .form-control:not(input[type=file]):focus, .contact-form .form-control:not(input[type=file]):hover,
.contact-form .form-select:focus, .contact-form .form-select:hover {
    border-color: var(--rg-yellow);
    box-shadow: none;
}

.products, .gallery {
    padding: 80px 0;
}

.products__item {
    position: relative;
    display: block;
    overflow: hidden;
}

.products__item.sold::before {
    content: 'Vendido';
    position: absolute;
    background-color: rgb(255, 60, 60);
    padding: 5px 45px;
    right: -45px;
    top: 18px;
    font-weight: bold;
    transform: rotate(45deg);
    color: #fff;
}

.products__item-img {
    object-fit: cover;
    width: 100%;
    aspect-ratio: 1 / 1;

}

.products__item-detail {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #181818, transparent);
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding-left: 25px;
    padding-bottom: 25px;
    transition: all 300ms ease;
}

.products__item-detail:hover {
    background-color: rgba(0,0,0,.9);
}

.products__item-content {
    transition: all 300ms ease;
    position: relative;
    z-index: 9;
}

.products__item-detail:hover .products__item-content {
    margin-bottom: 30px;
    position: relative;

}

.products__item-detail .products__item-content::before {
    content: '';
    position: absolute;
    left: 0;
    width: 0;
    bottom: -20px;
    height: 3px;
    background-color: var(--rg-yellow);
    overflow: auto;
}

.products__item-detail:hover .products__item-content::before {
    width: 60px;
    transition: all 300ms ease;
    transition-delay: 300ms;
}

.products__item-detail .products__item-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    color: var(--rg-yellow);
    font-weight: 700;
    transform: translate(-50%, -50%);
    opacity: 0;
    font-size: 20px;
}

.products__item-detail:hover .products__item-icon {
    opacity: 1;
}

.products__item-title {
    color: #fff;
    font-size: 20px;
}

.products__item-subtitle {
    color: var(--rg-yellow);
    font-size: 16px;
}

.single-product {
    padding: 80px 0;
}

.single-product__video iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
    height: 100%;
	margin-bottom: 20px;
}

.single-product__img {
    width: 100%;
    /*aspect-ratio: 4 / 3;*/
}

.single-product__img-content {
    top: 10px;
    position: sticky;
}

.single-product__price {
    font-size: 20px;
}

.single-product__price span {
    font-weight: bold;
    font-size: 30px;
}

.gallery__content {
    display: grid;
    gap: 2px;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 576px) {
    .gallery__content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .gallery__content {
        grid-template-columns: repeat(6, 1fr);
    }
}

.gallery__item {
    overflow: hidden;
}

.gallery__item img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transform: scale(1);
    transition: .5s all ease;
}

.gallery__item:hover img {
    transform: scale(1.5);
}


.who-we-are {
    padding: 80px 0;
}

.who-we-are__item {
    width: 100%;
    border-radius: 10px;
}


/* Reutilizable */
.btn {
    font-weight: 600;
    padding: 15px 30px;
    line-height: 16px;
}

.rg-title {
    color: var(--rg-black);
    font-weight: 700;
    font-size: 40px;

    @media(min-width: 768px) {
        font-size: 45px;
    }

    @media(min-width: 1400px) {
        font-size: 54px;
    }
}

.rg-title-sm {
    font-size: 32px;
    color: var(--rg-black);
    font-weight: 700;
    margin-bottom: 0;
}

.rg-title-xs {
    font-size: 24px;
    color: var(--rg-black);
    font-weight: 700;
    margin-bottom: 0;
}

.rg-title span, .rg-title-sm span {
    color: var(--rg-yellow);
}

.rg-subtitle {
    color: var(--rg-yellow);
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.rg-description {
    color: var(--rg-grey);
}

.rg-description-sm {
    color: var(--rg-grey);
    font-size: 18px;
}

.breadcrumb-item > a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--rg-yellow);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #fff;
}

.btn__whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
}

.btn__whatsapp-icon {
    width: 65px;
    height: 65px;
    background: #25d366;
    color: #fff;
    font-size: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-decoration: none;
    order: 2;
}

.btn__whatsapp-text {
    color: #000;
    order: 1;
    margin-right: 20px;
    font-size: 16px;
    width: 250px;
    opacity: 0;
    background-color: #fff;
    border-radius: 10px;
    padding: 5px 10px;
    text-align: center;
    transition: .4s all ease;
}

.btn__whatsapp-icon:hover + .btn__whatsapp-text {
    opacity: 1;
}

.btn-warning {
    background-color: var(--rg-yellow);
}

.splide__arrow {
    background-color: transparent;
    color: #fff;
    font-size: 40px;
    opacity: 1;
    width: auto;
    height: auto;
}

.splide__arrow--prev {
    left: .5em;
}

.splide__arrow--next {
    right: .5em;
}

#map {
    height: 200px; /* Ajusta la altura del mapa */
    width: 100%;
    border-radius: 8px;
}