:root {
    --ve-main-color: #bba95a;
    --ve-second-color: #1b1f30;
    --ve-third-color:#3c3c3c;
    --ve-border-color: #c2c2c2;
    --ve-bg-color: #f8f7f4;

}

body {
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: bottom !important; 

}

h1.logo {
    font-weight: 700;
}

header.main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
    width: 100%;
}

header.main nav.main {
    flex-grow: 1;
}

header.main nav.main ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

header.main nav.main ul li {
    padding: 5px 10px;
    border-radius: 4px;
}
nav.woocommerce-MyAccount-navigation ul li.is-active a,
header.main nav.main ul li.current_page_item {
    background-color: var(--ve-second-color);
    color: white;

}



header.main nav.main ul li.current_page_item a {
    color: white;

}

header.main nav.main ul li:not(.carrito-en-nav):hover {
    background-color: var(--ve-main-color);
}


header.main .admin-key {
    display: block;
    width: 15px;
    margin-left: 30px;
}

header.main .admin-key path {
    fill: #000;
}

header.main img.logo-cliente {
    max-width: 170px;
    padding-top: 4px;
}

/* ##### WOOCOMMERCE ##### */


nav.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
}

nav.woocommerce-MyAccount-navigation ul li {
    padding: 5px 10px;
    border-radius: 4px;
}

nav.woocommerce-MyAccount-navigation ul li a {
    padding: 5px 10px;
    border-radius: 4px;
}

nav.woocommerce-MyAccount-navigation ul li a:hover {
    background-color: var(--ve-main-color);
}

nav.woocommerce-MyAccount-navigation ul li a.is-active {
    background-color: var(--ve-second-color);
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button, 
:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit, 
:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button, 
:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button, 
:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt,
 .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt, 
 .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt, 
 .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt, 
 :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit.alt, 
 :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button.alt, 
 :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button.alt, 
 :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button.alt {
    border: 0;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: var(--ve-main-color);
    color: #fff;
 }

 .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit:hover, 
 .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button:hover, 
 .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button:hover, 
 .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button:hover, 
 :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit:hover, 
 :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button:hover, 
 :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button:hover, 
 :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button:hover,
 .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:hover, 
 .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:hover, 
 .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:hover, 
 .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:hover, 
 :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit.alt:hover, 
 :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button.alt:hover, 
 :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button.alt:hover, 
 :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button.alt:hover {
    background-color: var(--ve-second-color);
    color: #fff;
}


.woocommerce .custom-forget form.lost_reset_password .form-row-first {
    width: 100%;
}

.error404 main {
    align-content: center;
}

.error404 main > section {
    text-align: center;
}

.error404 main > section a:hover {
    text-decoration: underline;
}   

/* WELCOME */

#welcome {
    
}

#welcome section > .flex {
    display: flex;
    align-items: center;
    gap: 10px 40px;
}

#welcome section > .flex > div {
    flex: 1 1 0;

}

#welcome .content {
    margin-bottom: 20px;
}

#welcome .woocommerce.flex {
    display: flex;
    gap: 30px;

}

#welcome .woocommerce.flex > div {
    flex: 1 1 0; /* flex-grow: 1; flex-shrink: 1; flex-basis: 0; */

}

#welcome .woocommerce .custom-login {
    margin-top: 20px;
}

#welcome .woocommerce form.login, 
#welcome .woocommerce form.lost_reset_password {
    border: 1px solid var(--ve-border-color);
    padding: 20px;
    margin: 0;
    text-align: left;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
}

#welcome .woocommerce .custom-forget {
    display: none;
}

#welcome .woocommerce #signup,
#welcome .woocommerce #signin {
    background-color: var(--ve-main-color);
    text-align: center;
    padding: 10px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.1em;
    border-radius: 0 0 5px 5px;
}

#welcome .woocommerce #signup:hover,
#welcome .woocommerce #signin:hover {
    background-color: var(--ve-second-color);
}

.woocommerce form .form-row select,
.woocommerce form .form-row input.input-text, 
.woocommerce form .form-row textarea,
.woocommerce input#username, 
.woocommerce input#password,
.woocommerce input#user_login,
.woocommerce input#password_1,
.woocommerce input#password_2 {
    border: 1px solid var(--ve-border-color);
    padding: 10px;
    border-radius: 4px;
    background-color: #fff;
}

.woocommerce form .form-row a {
    text-decoration: underline;
}

.woocommerce form .form-row a:hover {
    color: var(--ve-main-color);
}

body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link) {
    background-color: var(--ve-second-color);
    color: white;
    border-radius: 4px;
}

body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link):hover {
    background-color: var(--ve-main-color);
    color: white;
}

.woocommerce table.my_account_orders .button {
    margin: 0 5px 5px 0;
}

.woocommerce-account .woocommerce-MyAccount-content {
    background-color: white;
    padding: 30px;
    border-radius: 4px;
}

/* PRODUCTS */

#products {

}


#products  section {
    height: 100%;
}

#products .productos-usuario {
    list-style: none;
    display: flex;
    padding-left: 0;
    flex-wrap: wrap;
}

#products .productos-usuario li {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    margin-right: 20px;
    margin-bottom: 20px;
}

#products .productos-usuario .product-title {
    font-size: 1.6em;
    margin-bottom: 20px;
    display: block;
}

#products .productos-usuario .imagen-destacada, 
#products .productos-usuario .product-gallery {
    aspect-ratio: 1 / 1; /* Mantener proporción 1:1 */
    width: 100%; /* Ancho máximo */
    position: relative; /* Para asegurarse de que el contenido de la imagen se ajuste bien */
    overflow: hidden; /* Para evitar que la imagen se desborde */
    display: flex; /* Centrar la imagen si no llena todo el espacio */
    justify-content: center;
    align-items: center;
    background-color: var(--ve-bg-color); /* Opcional, fondo por si la imagen no llena todo el espacio */
    border-radius: 10px;
}

#products .productos-usuario .imagen-destacada img,
#products .productos-usuario .product-gallery img {
    height: 100%; /* La imagen toma la altura completa del contenedor */
    object-fit: contain; /* Ajustar la imagen sin distorsión, recortando si es necesario */
    mix-blend-mode: multiply;
    background-color: ;
}

#products .price {
    font-size: 2em;
}

#products .no-products {
    text-align: center;
    align-content: center;
    height: 100%;
}

#products .no-products img {
    max-width: 150px;
    opacity: 0.4;
}

#products p.fine-print {
    line-height: 1;
}


/* GENERAL */
.carrito-en-nav {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    margin-top: 7px;
}


.carrito-en-nav .fas.fa-shopping-cart {
    font-size: 20px; /* Tamaño del icono */
    color: #333;
}

.carrito-en-nav .cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--color-secundario);
    color: #fff;
    border-radius: 50%;
    padding: 3px 7px;
    font-size: 12px;
}

.icon-carrito {
    font-size: 20px;
    color: #333;
}

.carrito-en-nav .cart-count {
    background-color: var(--color-secundario);
    color: #fff;
    border-radius: 50%;
    padding: 3px 7px;
    font-size: 12px;
    position: absolute;
    top: -10px;
    right: -10px;
}

.woocommerce-product-gallery {
    max-width: 500px;
    margin: 0 auto;
}

.woocommerce-product-gallery .woocommerce-product-gallery__image {
    border: 1px solid var(--ve-border-color);
    padding: 5px;
}

.woocommerce-product-gallery .flex-control-thumbs img {
    border: 2px solid var(--ve-border-color);
    padding: 5px;
    margin: 5px;
}


/* Single */

main.single-campaign header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

main.single-campaign .client-info {
    margin-bottom: 20px;
}

main.single-campaign .client-info .client-url {
    font-size: 1.4em;
    margin-bottom: 10px;
    display: block;
}

main.single-campaign .btn-back {
    display: block;
    text-decoration: underline;
    cursor: pointer;
}

main.single-campaign h1 {
    margin: 0 0 5px 0;
}

main.single-campaign h2 {
    font-size: 2.8em;
    margin: 0;
}

main.single-campaign .summary .flex {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

main.single-campaign .summary .item {
    display: flex;
    flex-direction: column;
    flex-direction: column-reverse;
    margin-bottom: 10px;
    text-align: center;
}

main.single-campaign .summary .item {
    margin-bottom: 5px;
    font-size: 2.4rem;
}

main.single-campaign .summary strong {
    font-size: 1rem;
}

main.single-campaign .table-container {
    width: 100%;
    overflow-x: auto;
    font-size: 0.85em;
}

main.single-campaign table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

main.single-campaign th,
main.single-campaign td {
    padding: 10px;
    text-align: left;
    border: 1px solid var(--ve-border-color);
}
main.single-campaign td.vendido {
    color: rgb(84, 174, 84);
    font-weight: 700;
}

main.single-campaign th{
    background-color: #f4f4f4;
    font-weight: bold;
}

main.single-campaign tr:nth-child(odd) {
    background-color: white;
}

main.single-campaign tr:nth-child(even) {
    background-color: #f9f9f9;
}

main.single-campaign tr:hover {
    background-color: #f1f1f1;
}

main.single-campaign .btn-export {
    display: inline-block;
    margin-top: 20px;
}


/* Política de privacidad para usuario institucional */


main.privacy-institutional {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

main.privacy-institutional article {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
}
main.privacy-institutional article .content {
    overflow-y: auto;
    height: 40vh;
    min-height: 200px;
    border: 1px solid #c1c1c1;
    border-radius: 4px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f6f8f8;
}

main.privacy-institutional article .buttons {
    text-align: center;
}

main.privacy-institutional article .buttons .deny-privacy {
    text-decoration: underline;
    cursor: pointer;
}

main.privacy-institutional article .buttons .deny-privacy:hover {
    color: #768983;
}


main.privacy-institutional form .btn-main {
    margin-bottom: 20px;
}

main.privacy-institutional .group {
    margin-bottom: 10px;
}

.real-deny-privacy {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: #c4dbd5;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}

.real-deny-privacy h3 {
    margin-bottom: 15px;
}

.real-deny-privacy .text {
    margin-bottom: 20px;
}

#close-real-deny-privacy {
    margin-bottom: 10px;
}

#btn-real-deny-privacy {
    text-decoration: underline;
    cursor: pointer;
}

#btn-real-deny-privacy:hover {
    color: #768983;
}


.real-deny-privacy .content {
    background-color: #fff;
    padding: 40px;
    width: 90%;
    max-width: 650px;
    border-radius: 4px;
    text-align: center;
}








/* Estructura de diseño tipo dos columnas para el checkout */
.woocommerce-checkout #customer_details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
    width: 48%; /* Dos columnas con espacio entre ellas */
}

/* Mover el resumen del pedido a la derecha */
.woocommerce-checkout .woocommerce-checkout-review-order {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background: #fff;
}

/* Centrar el botón de "Realizar pedido" */
.woocommerce-checkout #payment #place_order {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    text-align: center;
}

/* Alinear notas de pedido a la derecha */
.woocommerce-checkout .woocommerce-additional-fields {
    width: 48%;
    float: right;
    margin-top: 20px;
}

.woocommerce-order .woocommerce-thankyou-order-received {
    font-size: 2em;
    text-align: center;
    padding: 50px 0;
}

.gls-extra-label {
    font-weight: 300;
    display: block;
    margin: 5px 10px;
}


/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .woocommerce-checkout #customer_details {
        flex-direction: column;
    }

    .woocommerce-checkout #customer_details .col-1,
    .woocommerce-checkout #customer_details .col-2,
    .woocommerce-checkout .woocommerce-additional-fields {
        width: 100%;
    }

    .woocommerce-checkout .woocommerce-checkout-review-order {
        width: 100%;
        margin: 20px 0;
    }

    .woocommerce-checkout #payment #place_order {
        width: 100%;
        margin: 20px auto;
    }
}


@media (max-width: 600px) {
    main.single-campaign table, 
    main.single-campaign thead, 
    main.single-campaign tbody, 
    main.single-campaign th, 
    main.single-campaign td, 
    main.single-campaign tr {
        display: block;
    }

    main.single-campaign thead tr {
        display: none; /* Oculta los encabezados en pantallas pequeñas */
    }

    main.single-campaign tr {
        margin-bottom: 10px;
        border: 1px solid var(--ve-border-color);
        border-radius: 8px;
        padding: 10px;
        background-color: #fff;
    }

    main.single-campaign td {
        display: flex;
        justify-content: space-between;
        padding: 8px;
        border-bottom: 1px solid var(--ve-border-color);
    }

    main.single-campaign td:before {
        content: attr(data-label);
        font-weight: bold;
        text-transform: uppercase;
        flex-basis: 40%;
        color: #333;
    }

    main.single-campaign td:last-child {
        border-bottom: none;
    }
}

@media (max-width: 450px) {

    header.main {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    header.main nav.main ul {
        justify-content: center;
    }


    #welcome section > .flex {
        flex-wrap: wrap;
    }

    #welcome section > .flex > div {
        flex-basis: fit-content;
    }

    .woocommerce table.shop_table_responsive tr td, 
    .woocommerce-page table.shop_table_responsive tr td {
        display: flex;
        flex-wrap: wrap;
    }

    .woocommerce table.my_account_orders .button {
        padding: 0 !important;
        border: none !important;
    }
}


