body {
    overflow-y: scroll;
}

@view-transition {
    navigation: auto;
}

/*****************************/
/*          CABECERA         */
/*****************************/

.cabecera-principal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 90px;
    transition: height 0.3s ease, background-color 0.3s ease;
    will-change: height;
    contain: layout style;
}

.cabecera-principal.reducida {
    height: 55px;
    background-color: rgba(255, 255, 255, 0.9);
}

.cabecera-principal.reducida:hover {
    height: 90px;
    background-color: white;
}

.cabecera-principal .contenedor-cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 2rem;
    margin: 0 auto;
}

.cabecera-principal .seccion-izquierda {
    display: flex;
}

.cabecera-principal .boton-menu-hamburguesa {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 27px;
    height: 17px;
    position: relative;
    top: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 9999;
}

.cabecera-principal .linea-hamburguesa {
    width: 100%;
    height: 2px;
    background-color: #3A3A34;
    transition: all 0.3s ease;
}

.cabecera-principal .boton-menu-hamburguesa.abierto .linea-hamburguesa:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.cabecera-principal .boton-menu-hamburguesa.abierto .linea-hamburguesa:nth-child(2) {
    opacity: 0;
}

.cabecera-principal .boton-menu-hamburguesa.abierto .linea-hamburguesa:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.cabecera-principal .navegacion-principal {
    display: flex;
    gap: 1rem;
    margin-left: 1.1rem;
}

.cabecera-principal .enlace-navegacion {
    font-size: calc(0.55rem + 0.6vw);
    font-weight: 500;
    color: #3A3A34;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cabecera-principal .enlace-navegacion:hover {
    color: #4a7c3e;
}

.cabecera-principal .logo-cabecera {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.cabecera-principal .logo-cabecera>img {
    width: 70px;
    height: 46px;
    transition: height 0.3s ease;
}

.cabecera-principal.reducida .logo-cabecera>img {
    height: 40px;
}

.cabecera-principal.reducida:hover .logo-cabecera>img {
    height: 60px;
}

.cabecera-principal .acciones-cabecera {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cabecera-principal .buscador-cabecera {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    gap: 6px;
}

.cabecera-principal .input-buscador {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 0.95rem;
    color: #3A3A34;
}

.cabecera-principal .input-buscador::placeholder {
    color: #7E7E7C;
}

.cabecera-principal .boton-buscar {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    color: #3A3A34;
}

.cabecera-principal .boton-buscar .icono-lupa {
    width: 20px;
    height: 100%;
}

.cabecera-principal .icono-svg {
    width: 20px;
    height: 100%;
}

.cabecera-principal .icono-accion {
    color: #3A3A34;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.cabecera-principal .icono-accion:hover {
    color: #4a7c3e;
}

/*****************************/
/*    MENU DESPLEGABLE PC    */
/*****************************/

.cabecera-principal .menu-desplegable-pc {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0 2rem;
    will-change: max-height;
    contain: layout style;
}

.cabecera-principal .menu-desplegable-pc.abierto {
    max-height: 700px;
    height: max(60vh, 600px);
    padding: 2rem;
}

.cabecera-principal .contenido-menu-pc {
    display: flex;
    gap: 2.1rem;
    margin: 0 auto;
    padding-left: 0.3rem;
    height: 100%;
}

.cabecera-principal .contenido-menu-pc .columna-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cabecera-principal .menu-desplegable-pc .columna-principal {
    padding-right: 1rem;
    border-right: 1px solid #e5e5e5;
    min-width: 20vw;
}


.cabecera-principal .contenido-menu-pc .columna-lateral {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 200px;
    padding-right: 2rem;
    border-right: 1px solid #e5e5e5;
}

.cabecera-principal .contenido-menu-pc .columna-lateral .enlaces-superiores {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cabecera-principal .contenido-menu-pc .columna-lateral .enlace-lateral {
    font-size: 1.1rem;
    color: #3A3A34;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
}

.cabecera-principal .contenido-menu-pc .columna-lateral .enlace-lateral-destacado {
    font-weight: 600;
    text-decoration: underline;
}

.cabecera-principal .contenido-menu-pc .columna-lateral .enlace-lateral:hover {
    color: #c67b24;
}

.cabecera-principal .contenido-menu-pc .columna-lateral .enlaces-inferiores {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
}

.cabecera-principal .contenido-menu-pc .columna-lateral .enlace-lateral-inferior {
    font-size: 0.8rem;
    color: #7E7E7C;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 300;
}

.cabecera-principal .contenido-menu-pc .columna-lateral .enlace-lateral-inferior:hover {
    color: #3A3A34;
}

.cabecera-principal .contenido-menu-pc .columna-lateral .enlace-contacto {
    margin-top: 1rem;
}

.cabecera-principal .contenido-menu-pc .columna-lateral .enlace-contacto h4 {
    font-size: 1.1rem;
    font-weight: 400;
    color: #3A3A34;
    margin: 0 0 0.5rem 0;
}

.cabecera-principal .contenido-menu-pc .columna-lateral .enlace-contacto a {
    text-decoration: none;
    color: #3A3A34;
}

.cabecera-principal .contenido-menu-pc .columna-lateral .enlace-contacto p {
    font-size: 0.75rem;
    color: #7E7E7C;
    margin: 0.25rem 0;
    line-height: 1.2;
}

.cabecera-principal .contenido-menu-pc .columna-secundaria,
.cabecera-principal .contenido-menu-pc .columna-terciaria {
    display: none;
}

.cabecera-principal .contenido-menu-pc .columna-secundaria.visible {
    display: flex;
    min-width: 20vw;
    border-right: 1px solid #e5e5e5;
}

.cabecera-principal .contenido-menu-pc .columna-terciaria.visible {
    display: flex;
    min-width: 20vw;
}

.cabecera-principal .contenido-menu-pc .columna-secundaria.visible,
.cabecera-principal .contenido-menu-pc .columna-terciaria.visible {
    display: flex;
    min-width: 20vw;
}

.cabecera-principal .contenido-menu-pc div.item-menu {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-right: 0.5rem;
}

.cabecera-principal .contenido-menu-pc button.item-menu {
    font-size: 0.95rem;
    color: #3A3A34;
    text-decoration: none;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
}

.cabecera-principal .contenido-menu-pc a.item-menu {
    color: #3A3A34;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
    padding-right: 0.5rem;
}

.cabecera-principal .contenido-menu-pc img.item-menu.flecha {
    width: 8px;
    height: 15px;
}

.cabecera-principal .contenido-menu-pc .item-menu:hover .flecha {
    transition: all 0.2s;
    opacity: 1;
    stroke: #3A3A34;
}

.cabecera-principal .contenido-menu-pc button.item-menu:hover {
    color: #4a7c3e;
}

.cabecera-principal .contenido-menu-pc button.item-menu.principal {
    font-weight: 500;
}

.cabecera-principal .contenido-menu-pc button.item-menu.secundario {
    font-weight: 400;
}

.cabecera-principal .contenido-menu-pc button.item-menu.terciario {
    font-weight: 300;
}

.cabecera-principal .contenido-menu-pc button.item-menu.destacado {
    color: #c9532a;
}

/*****************************/
/*    MENU DESPLEGABLE MOVIL    */
/*****************************/

.cabecera-principal .menu-desplegable-movil {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    max-height: none;
    background-color: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 0;
    box-shadow: none;
    overflow-y: auto;
    z-index: 1001;
    will-change: transform;
    contain: layout style paint;
}

.cabecera-principal .menu-desplegable-movil.abierto {
    transform: translateX(0);
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
    padding: 0;
    max-height: none;
    overflow-y: scroll;
    overflow-x: hidden;
    padding-bottom: 20vh;
}

.cabecera-principal .menu-desplegable-movil .contenido-menu.movil {
    display: block;
    padding: 0;
    gap: 0;
}

.cabecera-principal .menu-desplegable-movil .cabecera-menu-movil {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 10;
}

.cabecera-principal .menu-desplegable-movil .titulo-menu-movil {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
}

.cabecera-principal .menu-desplegable-movil .enlaces-superiores-movil {
    display: flex;
    flex-direction: column;
    /* background-color: #f8f8f8; */
    border-bottom: 1.9px solid #e5e5e5;
    padding-bottom: 4vh;
}

.cabecera-principal .menu-desplegable-movil .enlace-superior-movil {
    padding: 0.2rem 1.5rem;
    font-size: 1.1rem;
    color: #3A3A34;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cabecera-principal .menu-desplegable-movil .enlace-superior-movil:hover {
    background-color: #efefef;
}

.cabecera-principal .menu-desplegable-movil .enlace-destacado-movil {
    font-weight: 600;
}

.cabecera-principal .menu-desplegable-movil .columna-menu {
    display: block;
    gap: 0;
}

.cabecera-principal .menu-desplegable-movil .columna-principal {
    display: block;
}

.cabecera-principal .menu-desplegable-movil .columna-secundaria,
.cabecera-principal .menu-desplegable-movil .columna-terciaria {
    padding-left: 1.5rem;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease;
}

.cabecera-principal .menu-desplegable-movil .columna-secundaria.visible,
.cabecera-principal .menu-desplegable-movil .columna-terciaria.visible {
    display: block;
    max-height: 600px;
}

.cabecera-principal .menu-desplegable-movil .item-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: #3A3A34;
    padding: 0.3rem 1.5rem;
    transition: 0.3s ease;
    text-decoration: none;
    background: none;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
}

.cabecera-principal .menu-desplegable-movil .item-menu.principal {
    font-weight: 400;
    padding-left: 1.5rem;
}

.cabecera-principal .menu-desplegable-movil .item-menu.secundario {
    font-weight: 400;
    padding-left: 3rem;
    font-size: 0.95rem;
}

.cabecera-principal .menu-desplegable-movil .item-menu.terciario {
    font-weight: 300;
    padding-left: 4.5rem;
    font-size: 0.9rem;
}

.cabecera-principal .menu-desplegable-movil .item-menu.principal::after,
.cabecera-principal .menu-desplegable-movil .item-menu.secundario::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: #7E7E7C;
    transition: transform 0.3s ease;
}

.cabecera-principal .contenido-menu-movil .item-menu:hover {
    color: #4a7c3e;
}

.cabecera-principal .menu-desplegable-movil .item-menu.abierto {
    color: #c67b24;
}

.cabecera-principal .menu-desplegable-movil .item-menu.principal.abierto::after,
.cabecera-principal .menu-desplegable-movil .item-menu.secundario.abierto::after {
    transform: rotate(45deg);
}

.cabecera-principal .menu-desplegable-movil .item-menu[data-info="enlace-directo"]::after {
    content: '';
}

.cabecera-principal .menu-desplegable-movil .enlaces-inferiores-movil {
    display: flex;
    flex-direction: column;
    margin-top: 3rem;
}

.cabecera-principal .menu-desplegable-movil .enlace-inferior-movil {
    padding: 0.2rem 1.5rem;
    font-size: 0.8rem;
    color: #7E7E7C;
    text-decoration: none;
    /* border-bottom: 1px solid #e5e5e5; */
    transition: background-color 0.3s ease;
}

.cabecera-principal .menu-desplegable-movil .enlace-inferior-movil:hover {
    background-color: #efefef;
    color: #3A3A34;
}

.cabecera-principal .menu-desplegable-movil .contacto-movil {
    padding: 1.5rem 1.5rem;
}

.cabecera-principal .menu-desplegable-movil .contacto-movil h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #3A3A34;
    margin: 0;
}

.cabecera-principal .menu-desplegable-movil .contacto-movil a {
    font-size: 1.2rem;
    font-weight: 600;
    color: #3A3A34;
    margin: 0;
    text-decoration: none;
}

/*****************************/
/*    CARRITO LATERAL    */
/*****************************/

.cabecera-principal .carrito-lateral {
    position: fixed;
    top: 0;
    right: 0;
    width: 30%;
    min-width: 450px;
    height: 100vh;
    height: 100dvh;
    background-color: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 10001;
}

.cabecera-principal .carrito-lateral.abierto {
    transform: translateX(0);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
}

.cabecera-principal .contenido-carrito {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
}

.cabecera-principal .cabecera-carrito {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.cabecera-principal .titulo-carrito {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
    padding-right: 25px;
    color: #7E7E7C;

}

.cabecera-principal .titulo-carrito h3 {
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.05rem;
    margin: 0;
    padding-bottom: 0.2rem;
}

.cabecera-principal .titulo-carrito p {
    font-size: 1rem;
    font-weight: 300;
    text-decoration: underline;
    margin: 0;
}

.cabecera-principal .boton-cerrar-carrito {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #3A3A34;
}

.cabecera-principal .boton-cerrar-carrito .icono-cerrar {
    width: 30px;
}

.cabecera-principal .productos-carrito {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-right: 0.6rem;
}

.cabecera-principal .producto-carrito {
    display: flex;
    gap: 0.6rem;
    padding-bottom: 0.8rem;
}

.cabecera-principal .producto-carrito a.enlace-imagen {
    line-height: 0;
}


.cabecera-principal .imagen-producto-carrito {
    width: 80px;
    height: 100%;
    object-fit: cover;
}

.cabecera-principal .info-producto-carrito {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0rem;
    padding-right: 12px;
    border-bottom: 1px solid #e5e5e5;
}


.cabecera-principal .cantidad-precio-carrito .selector-cantidad-producto {
    display: flex;
    flex-basis: 25%;
    border: 1px solid #CCC;
    padding-left: 0.3rem;
    padding-right: 0.3rem;
    align-items: center;
}

.cabecera-principal .cantidad-precio-carrito .boton-cantidad {
    width: 25%;
    height: 21px;
    background: white;
    border: none;
    font-size: 1.2rem;
    color: #3A3A34;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cabecera-principal .cantidad-precio-carrito .boton-cantidad .icono-cantidad {
    width: 13px;
}

.cabecera-principal .cantidad-precio-carrito .boton-cantidad:hover {
    background-color: #f5f5f5;
}

.cabecera-principal .cantidad-precio-carrito .input-cantidad {
    width: 50%;
    border: none;
    text-align: center;
    font-size: 0.8rem;
    color: #3A3A34;
}

.cabecera-principal .info-producto-carrito .input-cantidad:focus {
    outline: none;
}




.cabecera-principal .info-producto-carrito a.enlace-producto {
    text-decoration: none;
    color: #7E7E7C;
}

.cabecera-principal .info-producto-carrito h4.nombre-producto-carrito {
    display: inline-block;
}


.cabecera-principal .info-producto-carrito h4.nombre-producto-carrito::after {
    content: '';
    width: 0px;
    height: 1px;
    display: block;
    background: black;
    transition: 300ms;
}

.cabecera-principal .info-producto-carrito h4.nombre-producto-carrito:hover::after {
    width: 100%;
}

.cabecera-principal .nombre-producto-carrito {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.cabecera-principal .descripcion-producto-carrito {
    font-size: 0.9rem;
    color: #7E7E7C;
    margin: 0;
}

.cabecera-principal .cantidad-precio-carrito {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-bottom: 0.4rem;
}

.cabecera-principal .cantidad-carrito {
    font-size: 0.9rem;
    color: #7E7E7C;
}

.cabecera-principal .precio-producto-carrito {
    font-size: 1rem;
    font-weight: 600;
    color: #7E7E7C;
}

.cabecera-principal .footer-carrito {
    margin-top: 2rem;
    padding-top: 0.6rem;
    border-top: 1px solid #7E7E7C;
}

.cabecera-principal .total-carrito {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cabecera-principal .texto-total {
    font-size: 1.25rem;
    font-weight: 500;
    color: #7E7E7C;
}

.cabecera-principal .precio-total {
    font-size: 1.3rem;
    font-weight: 600;
    color: #7E7E7C;
}

.cabecera-principal div.boton-proceder-pago {
    width: 100%;
    display: flex;
    justify-content: center;
}

.cabecera-principal div.boton-proceder-pago a.boton-proceder-pago {
    width: 50%;
}

.cabecera-principal button.boton-proceder-pago {
    width: 100%;
    padding: 0.5rem;
    background-color: #7E7E7C;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 2rem;
}

.cabecera-principal button.boton-proceder-pago:hover {
    background-color: #3A3A34;
}

/*****************************/
/*    OVERLAY MENU    */
/*****************************/

.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    contain: strict;
}

.overlay-menu.visible {
    opacity: 1;
    visibility: visible;
}

/*****************************/
/*    RESPONSIVE CABECERA    */
/*****************************/

@media (max-width: 990px) {
    .cabecera-principal {
        height: 70px;
    }

    .cabecera-principal.reducida {
        height: 55px;
    }

    .cabecera-principal.reducida:hover {
        height: 55px;
    }

    .cabecera-principal .contenedor-cabecera {
        padding: 0 1rem;
    }

    .cabecera-principal .navegacion-principal {
        display: none;
    }

    .cabecera-principal .logo-cabecera>img {
        height: 50px;
    }

    .cabecera-principal.reducida .logo-cabecera>img {
        height: 40px;
    }

    .cabecera-principal .buscador-cabecera {
        width: auto;
        padding: 0;
        background: none;
    }

    .cabecera-principal .input-buscador {
        display: none;
    }

    .cabecera-principal .acciones-cabecera {
        gap: 1rem;
    }


    .cabecera-principal .carrito-lateral {
        width: 100vw;
        min-width: auto;
        padding-top: 5vh;
    }

    .menu-pc {
        display: none;
    }

    .menu-movil {
        display: block;
    }
}

@media (min-width: 991px) {
    .cabecera-principal .cabecera-menu-movil {
        display: none;
    }
}


/****/
/*    VIEW TRANSITIONS BUSCADOR    */
/****/


.cabecera-principal .buscador-cabecera.buscador-oculto {
    opacity: 0;
    visibility: hidden;
    width: 0;
    padding: 0;
    overflow: hidden;
}

::view-transition-old(buscador-transicion),
::view-transition-new(buscador-transicion) {
    animation-duration: 0.3s;
}

.seccion-buscador .contenedor-input-busqueda {
    view-transition-name: buscador-transicion;
}

/*****************************/
/*    MAIN - SECCIONES    */
/*****************************/

main.secciones {
    display: flex;
    gap: 20px;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: start;
    align-items: center;
    margin-top: 90px;
}

main.secciones section {
    width: 100%;
    height: auto;
}

@media (max-width: 990px) {
    main.secciones {
        margin-top: 70px;
    }
}

/*****************************/
/*    PRODUCTOS    */
/*****************************/

span.icono-oferta {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1 !important;
}

span.icono-oferta .icono-oferta {
    width: 100% !important;
    height: 100% !important;
    background-color: transparent !important;
}

@media (max-width: 768px) {
    span.icono-oferta {
        width: 32px;
        height: 32px;
        top: 0.75rem;
        right: 0.75rem;
    }
}

a.enlace-producto {
    text-decoration: none;
}

.tarjeta-producto .contenedor-imagen {
    position: relative;
    overflow: hidden;
}

.boton-anadir-carrito {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 9%;
    background-color: rgba(83, 83, 83, 0.9);
    color: #ffff;
    border: none;
    font-size: 0.8rem;
    font-weight: 400;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(100%);
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}

.tarjeta-producto:hover .boton-anadir-carrito {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .boton-anadir-carrito {
        opacity: 1;
        transform: translateY(0);
        font-size: 1rem;
        height: 10%;
    }
}

.boton-anadir-carrito:hover {
    background-color: rgba(51, 51, 51, 1);
}

.boton-anadir-carrito:active {
    transform: translateY(-5%) scale(0.9);
    box-shadow: inset 0 2px 6px rgba(163, 51, 51, 0.35);
    background-color: rgba(163, 51, 51, 0.75);
}

.boton-anadir-carrito:focus-visible {
    outline: 2px solid #ffff;
    outline-offset: -2px;
}

.overlay-carrito {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    contain: strict;
}

.overlay-carrito.visible {
    opacity: 1;
    visibility: visible;
}

body.carrito-abierto {
    overflow: hidden;
}

.carrito-lateral {
    transform: translateX(100%);
    transition: transform 0.3s ease;
    will-change: transform;
    contain: layout style paint;
}

.carrito-lateral.abierto {
    transform: translateX(0);
}

.boton-en-carrito {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.boton-eliminar-producto-carrito {
    position: absolute;
    top: 0px;
    right: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1px 5px 5px 5px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.boton-eliminar-producto-carrito:hover {
    opacity: 1;
}

.boton-eliminar-producto-carrito .icono-eliminar {
    width: 18px;
    height: 18px;
}

.producto-carrito {
    position: relative;
}

.carrito-notificacion {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.carrito-notificacion.visible {
    opacity: 1;
    transform: translateX(0);
}

.carrito-notificacion.notificacion-error {
    background-color: #fee;
    color: #c00;
    border-left: 4px solid #c00;
}

.carrito-notificacion.notificacion-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.carrito-notificacion.notificacion-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/*****************************/
/*    FOOTER    */
/*****************************/

.footer-principal {
    background-color: white;
    padding: 40px 0;
}

.footer-principal .contenedor-footer {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-principal .seccion-newsletter {
    text-align: center;
    margin-bottom: 60px;
}

.footer-principal .titulo-newsletter {
    font-size: 1.9rem;
    font-weight: 400;
    color: #3A3A34;
    margin: 0;
    letter-spacing: 0.5px;
}

.footer-principal .descripcion-newsletter {
    font-size: 1.1rem;
    color: #7E7E7C;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px;
}

.footer-principal .boton-newsletter {
    background-color: transparent;
    border: 1px solid #7E7E7C;
    border-radius: 50px;
    padding: 7px 30px;
    font-size: 1.2rem;
    color: #7E7E7C;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-principal .boton-newsletter:hover {
    border-color: #3A3A34;
    color: #3A3A34;
}

.footer-principal .columnas-footer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
    text-align: center;
}

.footer-principal .columna-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-principal .titulo-columna {
    font-size: 0.9rem;
    font-weight: 700;
    color: #3A3A34;
    margin: 0 0 8px;
    text-transform: none;
}

.footer-principal .texto-columna {
    font-size: 0.9rem;
    color: #7E7E7C;
    margin: 0;
    line-height: 1.1rem;
}

.footer-principal .texto-columna a{
    text-decoration: none;
    color: #7E7E7C;
}

.footer-principal .enlace-columna {
    font-size: 0.9rem;
    color: #7E7E7C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-principal .enlace-columna:hover {
    color: #3A3A34;
}

.footer-principal .redes-sociales {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-principal .enlace-red-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.footer-principal .enlace-red-social:hover {
    transform: scale(1.1);
}

.footer-principal .icono-red-social {
    width: 100%;
    height: 100%;
}

.footer-principal .enlaces-legales {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.footer-principal .enlace-legal {
    font-size: 12px;
    color: #7E7E7C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-principal .enlace-legal:hover {
    color: #3A3A34;
}

.footer-principal .separador-legal {
    font-size: 12px;
    color: #7E7E7C;
}

.footer-principal .copyright {
    text-align: center;
    font-size: 12px;
    color: #7E7E7C;
    margin: 0;
}

.footer-principal .popup-newsletter {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
}

.footer-principal .popup-newsletter.activo {
    display: flex;
}

.footer-principal .contenido-popup-newsletter {
    width: 400px;
    height: 400px;
    background-color: #7E7E7C;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .footer-principal {
        padding: 60px 0 30px;
    }

    .footer-principal .contenedor-footer {
        padding: 0 20px;
    }

    .footer-principal .titulo-newsletter {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .footer-principal .descripcion-newsletter {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .footer-principal .boton-newsletter {
        padding: 12px 40px;
        font-size: 0.9rem;
    }

    .footer-principal .columnas-footer {
        grid-template-columns: 1fr 1fr;
        gap: 40px 20px;
        margin-bottom: 40px;
    }

    .footer-principal .redes-sociales {
        gap: 15px;
        margin-bottom: 25px;
    }

    .footer-principal .contenido-popup-newsletter {
        width: 90%;
        max-width: 400px;
    }
}


/*****************************/
/*  BOTON SUBIR   */
/*****************************/

.boton_subir {
    position: fixed;
    bottom: 40px;
    right: 40px;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0);
    will-change: opacity, visibility;
    contain: layout style paint;
}

.boton_subir.mostrar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.boton_subir:hover {
    transform: translateY(-2px) scale(1.05);
    background-color: transparent;
}

.boton_subir:active {
    transform: translateY(0);
}

.boton_subir .icono_flecha {
    width: 45px;
    height: 45px;
}

@media (max-width: 768px) {
    .boton_subir {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    .boton_subir .icono_flecha {
        width: 45px;
        height: 45px;
    }
}

/*****************************/
/*  GENERALES   */
/*****************************/

.negrita {
    font-weight: bold !important;
}

.oculto {
    display: none !important;
}

@media (hover: none) {
    .cabecera-principal .enlace-navegacion:hover {
        color: #3A3A34;
    }
    
    .cabecera-principal.reducida:hover {
        height: 55px;
        background-color: rgba(255, 255, 255, 0.9);
    }
    
    .cabecera-principal.reducida:hover .logo-cabecera>img {
        height: 40px;
    }
    
    .cabecera-principal .icono-accion:hover {
        color: #3A3A34;
    }
    
    .cabecera-principal .contenido-menu-pc .columna-lateral .enlace-lateral:hover {
        color: #3A3A34;
    }
    
    .cabecera-principal .contenido-menu-pc .columna-lateral .enlace-lateral-inferior:hover {
        color: #7E7E7C;
    }
    
    .cabecera-principal .contenido-menu-pc .item-menu:hover .flecha {
        opacity: inherit;
        stroke: inherit;
    }
    
    .cabecera-principal .contenido-menu-pc button.item-menu:hover {
        color: #3A3A34;
    }
    
    .cabecera-principal .menu-desplegable-movil .enlace-superior-movil:hover {
        background-color: transparent;
    }
    
    .cabecera-principal .contenido-menu-movil .item-menu:hover {
        color: #3A3A34;
    }
    
    .cabecera-principal .menu-desplegable-movil .enlace-inferior-movil:hover {
        background-color: transparent;
        color: #7E7E7C;
    }
    
    .cabecera-principal .cantidad-precio-carrito .boton-cantidad:hover {
        background-color: white;
    }
    
    .cabecera-principal .info-producto-carrito h4.nombre-producto-carrito:hover::after {
        width: 0px;
    }
    
    .cabecera-principal button.boton-proceder-pago:hover {
        background-color: #7E7E7C;
    }
    
    .tarjeta-producto:hover .boton-anadir-carrito {
        opacity: 1;
        transform: translateY(0);
    }
    
    .boton-anadir-carrito:hover {
        background-color: rgba(83, 83, 83, 0.9);
    }
    
    .boton-eliminar-producto-carrito:hover {
        opacity: 0.7;
    }
    
    .footer-principal .boton-newsletter:hover {
        border-color: #7E7E7C;
        color: #7E7E7C;
    }
    
    .footer-principal .enlace-columna:hover {
        color: #7E7E7C;
    }
    
    .footer-principal .enlace-red-social:hover {
        transform: scale(1);
    }
    
    .footer-principal .enlace-legal:hover {
        color: #7E7E7C;
    }
    
    .boton_subir:hover {
        transform: translateY(0);
        background-color: rgba(0, 0, 0, 0);
    }
}