/* ========================================
   CONFIGURACIÓN GENERAL
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f6f7f9;
    color: #222;
}


img {
    display: block;
    width: 100%;
}


button,
input {
    font-family: inherit;
}



/* ========================================
   HEADER
======================================== */

.header {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
}


.header-contenido {
    max-width: 1350px;
    margin: auto;

    min-height: 82px;

    display: flex;
    align-items: center;

    gap: 35px;

    padding: 12px 25px;
}


.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
    color: #222;

    flex-shrink: 0;
}


.logo-rgz {
    background: #e31b23;
    color: white;

    font-size: 25px;
    font-weight: 900;

    padding: 10px 13px;

    border-radius: 8px;
}


.logo-texto {
    display: flex;
    flex-direction: column;
}


.logo-texto strong {
    font-size: 17px;
}


.logo-texto span {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
}



/* ========================================
   BUSCADOR
======================================== */

.buscador {
    display: flex;

    flex: 1;

    max-width: 650px;

    border: 1px solid #d7d7d7;
    border-radius: 10px;

    overflow: hidden;

    background: #f8f8f8;
}


.buscador input {
    flex: 1;

    border: 0;
    outline: 0;

    padding: 14px 16px;

    background: transparent;

    font-size: 14px;
}


.buscador button {
    width: 55px;

    border: 0;

    background: #124ca1;
    color: white;

    cursor: pointer;

    font-size: 18px;
}



/* ========================================
   CARRITO
======================================== */

.carrito-boton {
    border: 0;

    background: #124ca1;
    color: white;

    padding: 12px 16px;

    border-radius: 10px;

    display: flex;
    align-items: center;
    gap: 8px;

    cursor: pointer;
    text-decoration: none;
}


.carrito-icono {
    font-size: 20px;
}


.carrito-cantidad {
    background: #e31b23;

    min-width: 23px;
    height: 23px;

    padding: 0 6px;

    border-radius: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: bold;
}



/* ========================================
   BANNER
======================================== */

.banner {
    background:
        linear-gradient(
            120deg,
            #0e3e87,
            #125abf
        );

    color: white;

    overflow: hidden;
}


.banner-contenido {
    max-width: 1350px;

    min-height: 390px;

    margin: auto;

    padding: 50px 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.banner-texto {
    max-width: 650px;
}


.banner-etiqueta {
    display: inline-block;

    background: rgba(255,255,255,.15);

    padding: 8px 12px;

    border-radius: 20px;

    font-size: 12px;
    font-weight: bold;

    margin-bottom: 20px;
}


.banner h1 {
    font-size: 50px;
    line-height: 1.05;

    margin-bottom: 18px;
}


.banner p {
    font-size: 18px;

    opacity: .9;

    margin-bottom: 30px;
}


.boton-principal {
    display: inline-block;

    background: #e31b23;
    color: white;

    padding: 14px 25px;

    border-radius: 8px;

    text-decoration: none;

    font-weight: bold;
}


.banner-decoracion {
    width: 330px;
    display: flex;
    justify-content: center;
}


.circulo {
    width: 250px;
    height: 250px;

    border-radius: 50%;

    background: white;
    color: #e31b23;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 65px;
    font-weight: 900;

    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}



/* ========================================
   SECCIONES
======================================== */

.seccion {
    max-width: 1350px;

    margin: auto;

    padding: 65px 25px;
}


.titulo-seccion {
    display: flex;
    justify-content: space-between;
    align-items: end;

    margin-bottom: 30px;
}


.subtitulo {
    color: #e31b23;

    font-size: 12px;
    font-weight: bold;

    letter-spacing: 2px;
}


.titulo-seccion h2 {
    font-size: 31px;

    margin-top: 5px;
}



/* ========================================
   CATEGORÍAS
======================================== */

.categorias-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(190px, 1fr));

    gap: 20px;
}


.categoria-card {
    background: white;

    border-radius: 14px;

    overflow: hidden;

    box-shadow: 0 3px 15px rgba(0,0,0,.07);

    transition: .2s;
}


.categoria-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 8px 25px rgba(0,0,0,.12);
}


.categoria-imagen {
    height: 165px;

    background: #f3f3f3;

    overflow: hidden;
}


.categoria-imagen img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.sin-imagen {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 50px;

    background: #eef1f5;
}


.categoria-info {
    padding: 18px;
}


.categoria-info h3 {
    font-size: 17px;

    margin-bottom: 7px;
}


.categoria-info span {
    color: #124ca1;

    font-size: 13px;

    font-weight: bold;
}



/* ========================================
   PRODUCTOS
======================================== */

.productos-seccion {
    padding-top: 20px;
}


.productos-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(230px, 1fr));

    gap: 22px;
}


.producto-card {
    background: white;

    border-radius: 14px;

    overflow: hidden;

    box-shadow: 0 3px 15px rgba(0,0,0,.07);

    transition: .2s;
}


.producto-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 8px 25px rgba(0,0,0,.12);
}


.producto-imagen {
    height: 240px;

    position: relative;

    background: #f3f3f3;

    overflow: hidden;
}


.producto-imagen img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.producto-sin-imagen {
    height: 240px;
}


.badge-destacado {
    position: absolute;

    top: 12px;
    left: 12px;

    background: #e31b23;
    color: white;

    font-size: 11px;
    font-weight: bold;

    padding: 6px 9px;

    border-radius: 6px;
}


.producto-info {
    padding: 18px;
}


.producto-categoria {
    color: #777;

    font-size: 12px;
}


.producto-info h3 {
    margin-top: 5px;
    margin-bottom: 7px;

    font-size: 17px;
}


.producto-codigo {
    display: block;

    font-size: 11px;

    color: #999;

    margin-bottom: 15px;
}



/* ========================================
   PRECIOS
======================================== */

.precios {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 9px;

    margin-top: 15px;
}


.precio-bloque {
    border: 1px solid #e6e6e6;

    border-radius: 8px;

    padding: 10px;
}


.precio-bloque span {
    display: block;

    font-size: 10px;

    color: #777;
}


.precio-bloque strong {
    display: block;

    margin-top: 3px;

    color: #222;
}


.precio-bloque.mayorista {
    background: #eef5ff;

    border-color: #cadfff;
}


.precio-bloque.mayorista strong {
    color: #124ca1;
}


.mayor-desde {
    font-size: 11px;

    color: #666;

    margin-top: 10px;
}


.mayor-desde strong {
    color: #124ca1;
}



/* ========================================
   BOTÓN PRODUCTO
======================================== */

.boton-producto {
    display: block;

    width: 100%;

    margin-top: 17px;

    padding: 12px;

    border: 0;

    border-radius: 8px;

    background: #124ca1;

    color: white;

    cursor: pointer;

    font-weight: bold;

    text-align: center;

    text-decoration: none;
}


.boton-producto:hover {
    background: #0c397c;
}



/* ========================================
   MENSAJES VACÍOS
======================================== */

.mensaje-vacio {
    grid-column: 1 / -1;

    text-align: center;

    background: white;

    border-radius: 12px;

    padding: 50px 20px;

    color: #777;
}


.mensaje-vacio h3 {
    color: #333;

    margin-bottom: 7px;
}



/* ========================================
   WHATSAPP
======================================== */

.whatsapp-flotante {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 58px;
    height: 58px;

    border-radius: 50%;

    background: #25d366;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    font-size: 27px;

    box-shadow: 0 5px 20px rgba(0,0,0,.25);

    z-index: 1000;
}



/* ========================================
   FOOTER
======================================== */

footer {
    background: #111827;
    color: white;

    margin-top: 40px;
}


.footer-contenido {
    max-width: 1350px;

    margin: auto;

    padding: 40px 25px;

    display: flex;
    justify-content: space-between;

    gap: 30px;
}


.footer-contenido p {
    color: #aeb6c5;

    margin-top: 7px;
}


.footer-final {
    border-top: 1px solid #293241;

    padding: 17px;

    text-align: center;

    font-size: 12px;

    color: #939bab;
}



/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 850px) {

    .header-contenido {
        flex-wrap: wrap;
        gap: 12px;
    }


    .buscador {
        order: 3;

        flex-basis: 100%;

        max-width: none;
    }


    .carrito-boton {
        margin-left: auto;
    }


    .banner-contenido {
        min-height: auto;

        padding: 50px 25px;
    }


    .banner h1 {
        font-size: 37px;
    }


    .banner-decoracion {
        display: none;
    }


    .footer-contenido {
        flex-direction: column;
    }

}



@media (max-width: 520px) {

    .logo-texto span {
        display: none;
    }


    .logo-texto strong {
        font-size: 14px;
    }


    .carrito-boton > span:nth-child(2) {
        display: none;
    }


    .seccion {
        padding-left: 15px;
        padding-right: 15px;
    }


    .categorias-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;
    }


    .categoria-imagen {
        height: 130px;
    }


    .productos-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;
    }


    .producto-imagen {
        height: 170px;
    }


    .producto-info {
        padding: 12px;
    }


    .producto-info h3 {
        font-size: 14px;
    }


    .precios {
        grid-template-columns: 1fr;
    }


    .banner h1 {
        font-size: 32px;
    }

}
/* ========================================
   ENLACES DE CATEGORÍAS
======================================== */

.categoria-enlace {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ========================================
   CABECERA DE CATEGORÍA
======================================== */

.categoria-cabecera {
    background: #eef4fc;
    border-bottom: 1px solid #dce6f3;
}


.categoria-cabecera-contenido {
    max-width: 1350px;
    margin: auto;
    padding: 35px 25px;
}


.volver-inicio {
    display: inline-block;

    text-decoration: none;

    color: #124ca1;

    font-size: 13px;
    font-weight: bold;

    margin-bottom: 25px;
}


.volver-inicio:hover {
    text-decoration: underline;
}


.categoria-cabecera-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


.categoria-subtitulo {
    display: block;

    margin-bottom: 5px;
}


.categoria-cabecera h1 {
    font-size: 38px;

    margin-bottom: 8px;
}


.categoria-cabecera p {
    color: #667085;
}


.categoria-cabecera-imagen {
    width: 130px;
    height: 130px;

    flex-shrink: 0;

    border-radius: 15px;

    overflow: hidden;

    background: white;

    box-shadow: 0 5px 20px rgba(0,0,0,.08);
}


.categoria-cabecera-imagen img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}



/* ========================================
   CANTIDAD DE PRODUCTOS
======================================== */

.cantidad-productos {
    font-size: 13px;

    color: #667085;

    background: white;

    border: 1px solid #e5e7eb;

    padding: 8px 13px;

    border-radius: 20px;
}



/* ========================================
   BOTÓN VOLVER
======================================== */

.boton-volver {
    display: inline-block;

    margin-top: 20px;

    background: #124ca1;
    color: white;

    padding: 11px 20px;

    border-radius: 8px;

    text-decoration: none;

    font-weight: bold;
}


.mensaje-vacio-icono {
    font-size: 45px;

    margin-bottom: 15px;
}



/* ========================================
   RESPONSIVE CATEGORÍA
======================================== */

@media (max-width: 600px) {

    .categoria-cabecera-flex {
        align-items: flex-start;
    }


    .categoria-cabecera h1 {
        font-size: 29px;
    }


    .categoria-cabecera-imagen {
        width: 85px;
        height: 85px;
    }


    .cantidad-productos {
        display: none;
    }

}   
/* ========================================
   DETALLE DEL PRODUCTO
======================================== */

.detalle-pagina {
    min-height: 70vh;
}


.detalle-contenedor {
    max-width: 1250px;
    margin: auto;
    padding: 35px 25px 70px;
}


.detalle-ruta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 8px;

    margin-bottom: 30px;

    font-size: 13px;

    color: #777;
}


.detalle-ruta a {
    color: #124ca1;

    text-decoration: none;
}


.detalle-ruta a:hover {
    text-decoration: underline;
}


.detalle-grid {
    display: grid;

    grid-template-columns:
        minmax(350px, 1fr)
        minmax(400px, 1fr);

    gap: 55px;

    align-items: start;
}



/* ========================================
   IMAGEN DEL PRODUCTO
======================================== */

.detalle-imagen-area {
    position: sticky;
    top: 115px;
}


.detalle-imagen-principal {
    width: 100%;
    aspect-ratio: 1 / 1;

    border-radius: 18px;

    overflow: hidden;

    background: white;

    border: 1px solid #e7e7e7;

    box-shadow: 0 5px 25px rgba(0,0,0,.07);
}


.detalle-imagen-principal img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    padding: 20px;
}


.detalle-sin-imagen {
    width: 100%;
    height: 100%;

    min-height: 450px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 80px;

    background: #eef1f5;
}



/* ========================================
   INFORMACIÓN DEL PRODUCTO
======================================== */

.detalle-info {
    background: white;

    border-radius: 18px;

    padding: 30px;

    box-shadow: 0 5px 25px rgba(0,0,0,.06);
}


.detalle-categoria {
    display: inline-block;

    color: #124ca1;

    font-size: 12px;
    font-weight: bold;

    text-transform: uppercase;

    margin-bottom: 8px;
}


.detalle-info h1 {
    font-size: 32px;

    line-height: 1.15;

    margin-bottom: 10px;
}


.detalle-codigo {
    color: #7a7a7a;

    font-size: 12px;

    margin-bottom: 20px;
}


.detalle-descripcion {
    color: #5f6670;

    line-height: 1.6;

    margin-bottom: 25px;
}



/* ========================================
   PRECIOS DEL DETALLE
======================================== */

.detalle-precios {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;

    margin-top: 20px;
}


.detalle-precio {
    padding: 16px;

    border: 1px solid #e5e7eb;

    border-radius: 12px;
}


.detalle-precio span {
    display: block;

    color: #707070;

    font-size: 12px;

    margin-bottom: 5px;
}


.detalle-precio strong {
    font-size: 24px;

    color: #222;
}


.detalle-precio.mayorista {
    background: #eef5ff;

    border-color: #c9dcfa;
}


.detalle-precio.mayorista strong {
    color: #124ca1;
}


.detalle-mayorista-info {
    margin-top: 12px;

    background: #f8fafc;

    border-radius: 8px;

    padding: 10px 12px;

    font-size: 12px;

    color: #667085;
}


.detalle-mayorista-info strong {
    color: #124ca1;
}



/* ========================================
   SELECTOR
======================================== */

.selector-producto {
    margin-top: 30px;

    border-top: 1px solid #ececec;

    padding-top: 25px;
}


.selector-titulo {
    margin-bottom: 18px;
}


.selector-titulo h2 {
    font-size: 19px;

    margin-bottom: 5px;
}


.selector-titulo p {
    color: #777;

    font-size: 13px;
}



/* ========================================
   VARIANTES
======================================== */

.variantes-lista {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.variante-fila {
    min-height: 72px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 10px 12px;

    border: 1px solid #e5e7eb;

    border-radius: 11px;

    transition: .2s;
}


.variante-fila:hover {
    border-color: #b9cdeb;

    background: #fafcff;
}


.variante-datos {
    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;
}


.variante-miniatura {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 8px;

    border: 1px solid #e5e7eb;
}


.sin-miniatura {
    display: flex;

    align-items: center;
    justify-content: center;

    background: #eef1f5;

    font-size: 21px;
}


.variante-nombre {
    display: block;

    font-size: 14px;
}


.variante-codigo {
    display: block;

    color: #999;

    font-size: 10px;

    margin-top: 3px;
}



/* ========================================
   CONTADOR
======================================== */

.contador {
    display: flex;

    align-items: center;

    border: 1px solid #d9dce1;

    border-radius: 9px;

    overflow: hidden;

    background: white;

    flex-shrink: 0;
}


.contador-boton {
    width: 38px;
    height: 38px;

    border: 0;

    background: #f2f4f7;

    color: #124ca1;

    font-size: 20px;

    font-weight: bold;

    cursor: pointer;
}


.contador-boton:hover {
    background: #e4eaf3;
}


.contador input {
    width: 55px;
    height: 38px;

    border: 0;

    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;

    outline: none;

    text-align: center;

    font-size: 14px;

    font-weight: bold;
}


.contador input::-webkit-inner-spin-button,
.contador input::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}



/* ========================================
   PRODUCTO SIN VARIANTES
======================================== */

.producto-sin-variantes-selector {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    border: 1px solid #e5e7eb;

    padding: 15px;

    border-radius: 10px;
}


.producto-sin-variantes-selector > span {
    font-weight: bold;
}



/* ========================================
   RESUMEN
======================================== */

.resumen-compra {
    margin-top: 25px;

    padding: 20px;

    background: #f7f9fc;

    border-radius: 13px;

    border: 1px solid #e2e8f0;
}


.resumen-linea {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 6px 0;

    font-size: 13px;
}


.resumen-linea span {
    color: #667085;
}


.aviso-mayorista {
    margin-top: 12px;

    background: #fff7e6;

    border: 1px solid #ffe3a6;

    color: #7a5310;

    padding: 10px 12px;

    border-radius: 8px;

    font-size: 12px;
}


.mayorista-aplicado {
    display: none;

    margin-top: 12px;

    background: #eaf8ee;

    border: 1px solid #bee7c9;

    color: #16733a;

    padding: 10px 12px;

    border-radius: 8px;

    font-size: 13px;

    font-weight: bold;
}


.resumen-total {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-top: 18px;

    padding-top: 15px;

    border-top: 1px solid #dfe3e8;
}


.resumen-total span {
    font-weight: bold;
}


.resumen-total strong {
    color: #124ca1;

    font-size: 27px;
}



/* ========================================
   AGREGAR AL CARRITO
======================================== */

.agregar-carrito {
    width: 100%;

    margin-top: 18px;

    padding: 15px;

    border: 0;

    border-radius: 9px;

    background: #e31b23;

    color: white;

    font-weight: bold;

    font-size: 15px;

    cursor: pointer;
}


.agregar-carrito:hover:not(:disabled) {
    background: #c9141b;
}


.agregar-carrito:disabled {
    background: #b8bcc4;

    cursor: not-allowed;
}


.aviso-carrito-paso {
    margin-top: 8px;

    color: #999;

    text-align: center;

    font-size: 10px;
}



/* ========================================
   RESPONSIVE DETALLE
======================================== */

@media (max-width: 900px) {

    .detalle-grid {
        grid-template-columns: 1fr;

        gap: 25px;
    }


    .detalle-imagen-area {
        position: static;
    }


    .detalle-imagen-principal {
        max-width: 600px;

        margin: auto;
    }

}



@media (max-width: 520px) {

    .detalle-contenedor {
        padding:
            20px
            12px
            45px;
    }


    .detalle-info {
        padding: 18px;

        border-radius: 13px;
    }


    .detalle-info h1 {
        font-size: 25px;
    }


    .detalle-precios {
        grid-template-columns: 1fr 1fr;

        gap: 8px;
    }


    .detalle-precio {
        padding: 11px;
    }


    .detalle-precio strong {
        font-size: 18px;
    }


    .variante-fila {
        align-items: center;

        padding: 9px;
    }


    .variante-miniatura {
        width: 42px;
        height: 42px;
    }


    .contador-boton {
        width: 33px;
        height: 35px;
    }


    .contador input {
        width: 42px;
        height: 35px;
    }


    .detalle-ruta {
        font-size: 11px;
    }

}

/* ========================================
   CARRITO
======================================== */

.carrito-pagina {
    min-height: 70vh;
}


.carrito-contenedor {
    max-width: 1300px;
    margin: auto;

    padding: 40px 25px 80px;
}


.carrito-cabecera {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 30px;
}


.carrito-cabecera h1 {
    font-size: 35px;
    margin-bottom: 5px;
}


.carrito-cabecera p {
    color: #667085;
}


.vaciar-carrito {
    border: 1px solid #e31b23;

    background: white;
    color: #e31b23;

    padding: 10px 15px;

    border-radius: 8px;

    cursor: pointer;
}


.carrito-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        330px;

    gap: 25px;

    align-items: start;
}


.carrito-productos {
    display: flex;
    flex-direction: column;

    gap: 20px;
}


.carrito-grupo {
    background: white;

    border-radius: 14px;

    border: 1px solid #e5e7eb;

    overflow: hidden;
}


.carrito-producto-titulo {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 20px;

    border-bottom: 1px solid #e5e7eb;
}


.carrito-producto-titulo h2 {
    margin-top: 4px;

    font-size: 19px;
}


.carrito-grupo-resumen {
    text-align: right;

    display: flex;
    flex-direction: column;

    gap: 4px;

    font-size: 12px;
}


.carrito-mayorista {
    color: #16733a;
}


.carrito-menor {
    color: #667085;
}


.carrito-lineas {
    padding: 0 20px;
}


.carrito-linea {
    display: grid;

    grid-template-columns:
        minmax(200px, 1fr)
        auto
        120px
        35px;

    align-items: center;

    gap: 18px;

    padding: 15px 0;

    border-bottom: 1px solid #eeeeee;
}


.carrito-linea:last-child {
    border-bottom: none;
}


.carrito-linea-producto {
    display: flex;

    align-items: center;

    gap: 12px;
}


.carrito-linea-producto span {
    display: block;

    margin-top: 4px;

    color: #999;

    font-size: 10px;
}


.carrito-miniatura {
    width: 55px;
    height: 55px;

    object-fit: cover;

    border-radius: 8px;

    border: 1px solid #e5e7eb;
}


.carrito-sin-imagen {
    display: flex;

    align-items: center;
    justify-content: center;

    background: #eef1f5;
}


.carrito-cantidad-control {
    display: flex;

    border: 1px solid #d9dce1;

    border-radius: 8px;

    overflow: hidden;
}


.carrito-cantidad-control button {
    width: 34px;

    border: 0;

    background: #f2f4f7;

    color: #124ca1;

    font-size: 18px;

    cursor: pointer;
}


.carrito-cantidad-control input {
    width: 46px;
    height: 36px;

    border: 0;

    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;

    text-align: center;

    outline: none;
}


.carrito-precio {
    text-align: right;
}


.carrito-precio span {
    display: block;

    color: #777;

    font-size: 10px;
}


.carrito-precio strong {
    display: block;

    margin-top: 4px;
}


.eliminar-linea {
    width: 30px;
    height: 30px;

    border: 0;

    border-radius: 50%;

    background: #fff0f0;

    color: #e31b23;

    cursor: pointer;

    font-size: 18px;
}


.carrito-total-producto {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 14px 20px;

    background: #f8fafc;

    font-size: 13px;
}


.carrito-total-producto strong {
    color: #124ca1;

    font-size: 18px;
}



/* ========================================
   RESUMEN CARRITO
======================================== */

.carrito-resumen {
    position: sticky;
    top: 110px;

    background: white;

    border: 1px solid #e5e7eb;

    border-radius: 14px;

    padding: 22px;
}


.carrito-resumen h2 {
    margin-bottom: 20px;
}


.carrito-resumen-linea {
    display: flex;

    justify-content: space-between;

    padding: 10px 0;

    color: #667085;
}


.carrito-resumen-total {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-top: 10px;

    padding-top: 18px;

    border-top: 1px solid #ddd;
}


.carrito-resumen-total strong {
    color: #124ca1;

    font-size: 26px;
}


.actualizar-carrito {
    width: 100%;

    margin-top: 20px;

    padding: 12px;

    border: 1px solid #124ca1;

    border-radius: 8px;

    background: white;

    color: #124ca1;

    font-weight: bold;

    cursor: pointer;
}


.continuar-pedido {
    display: block;

    width: 100%;

    margin-top: 10px;

    padding: 14px;

    border: 0;

    border-radius: 8px;

    background: #e31b23;

    color: white;

    font-weight: bold;

    text-align: center;

    text-decoration: none;

    cursor: pointer;
}


.continuar-pedido:hover {
    background: #c9141b;
}




.carrito-nota {
    margin-top: 10px;

    text-align: center;

    color: #999;

    font-size: 10px;

    line-height: 1.4;
}



/* ========================================
   CARRITO VACÍO
======================================== */

.carrito-vacio {
    background: white;

    border-radius: 15px;

    padding: 80px 20px;

    text-align: center;
}


.carrito-vacio-icono {
    font-size: 65px;

    margin-bottom: 20px;
}


.carrito-vacio h2 {
    margin-bottom: 8px;
}


.carrito-vacio p {
    color: #777;

    margin-bottom: 25px;
}



/* ========================================
   RESPONSIVE CARRITO
======================================== */

@media (max-width: 900px) {

    .carrito-layout {
        grid-template-columns: 1fr;
    }


    .carrito-resumen {
        position: static;
    }

}


@media (max-width: 650px) {

    .carrito-cabecera {
        align-items: flex-start;
        flex-direction: column;
    }


    .carrito-linea {
        grid-template-columns:
            1fr
            auto;

        gap: 12px;
    }


    .carrito-linea-producto {
        grid-column: 1 / -1;
    }


    .carrito-precio {
        text-align: left;
    }


    .eliminar-linea {
        position: absolute;
        right: 15px;
    }


    .carrito-linea {
        position: relative;
    }

}

/* ========================================
   FINALIZAR PEDIDO
======================================== */

.finalizar-pagina {
    min-height: 75vh;
}


.finalizar-contenedor {
    max-width: 1150px;
    margin: auto;

    padding: 45px 25px 80px;
}


.finalizar-titulo {
    margin-bottom: 30px;
}


.finalizar-titulo h1 {
    margin-top: 5px;

    font-size: 35px;
}


.finalizar-titulo p {
    margin-top: 7px;

    color: #667085;
}


.finalizar-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        380px;

    gap: 25px;

    align-items: start;
}


.datos-cliente,
.finalizar-resumen {
    background: white;

    border: 1px solid #e5e7eb;

    border-radius: 14px;

    padding: 25px;
}


.datos-cliente h2,
.finalizar-resumen h2 {
    margin-bottom: 22px;
}


.campo-formulario {
    margin-bottom: 17px;
}


.campo-formulario label {
    display: block;

    margin-bottom: 6px;

    font-size: 13px;

    font-weight: bold;
}


.campo-formulario input,
.campo-formulario textarea {
    width: 100%;

    padding: 12px 13px;

    border: 1px solid #d5d9df;

    border-radius: 8px;

    outline: none;

    font-size: 14px;
}


.campo-formulario input:focus,
.campo-formulario textarea:focus {
    border-color: #124ca1;
}


.formulario-dos-columnas {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;
}


.errorlist {
    margin-top: 5px;

    padding-left: 18px;

    color: #e31b23;

    font-size: 12px;
}


.registrar-pedido {
    width: 100%;

    margin-top: 10px;

    padding: 15px;

    border: 0;

    border-radius: 8px;

    background: #e31b23;

    color: white;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;
}


.registrar-pedido:hover {
    background: #c9141b;
}



/* ========================================
   RESUMEN FINAL
======================================== */

.finalizar-resumen {
    position: sticky;

    top: 110px;
}


.checkout-producto {
    padding: 15px 0;

    border-bottom: 1px solid #ececec;
}


.checkout-producto-titulo {
    display: flex;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 10px;
}


.checkout-producto-titulo span {
    color: #667085;

    font-size: 11px;
}


.checkout-mayor {
    color: #16733a !important;

    font-weight: bold;
}


.checkout-linea {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    padding: 5px 0;

    font-size: 12px;

    color: #667085;
}


.checkout-unidades {
    display: flex;

    justify-content: space-between;

    padding: 15px 0;
}


.checkout-total {
    display: flex;

    justify-content: space-between;

    align-items: center;

    border-top: 1px solid #ddd;

    padding-top: 17px;
}


.checkout-total strong {
    color: #124ca1;

    font-size: 25px;
}


.checkout-aviso {
    margin-top: 15px;

    padding: 10px;

    border-radius: 8px;

    background: #fff7e6;

    color: #7a5310;

    font-size: 11px;
}



/* ========================================
   PEDIDO CREADO
======================================== */

.pedido-creado-pagina {
    min-height: 80vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 45px 20px;
}


.pedido-creado-card {
    width: 100%;

    max-width: 650px;

    background: white;

    border-radius: 16px;

    padding: 35px;

    text-align: center;

    box-shadow: 0 7px 30px rgba(0,0,0,.08);
}


.pedido-check {
    width: 65px;
    height: 65px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eaf8ee;

    color: #16733a;

    font-size: 32px;

    font-weight: bold;
}


.pedido-creado-card h1 {
    margin: 7px 0;

    color: #124ca1;
}


.pedido-creado-card > p {
    color: #667085;

    margin-bottom: 20px;
}


.pedido-estado {
    display: inline-block;

    padding: 8px 13px;

    background: #fff7e6;

    border-radius: 20px;

    color: #7a5310;

    font-size: 12px;
}


.pedido-creado-detalle {
    margin-top: 25px;

    border-top: 1px solid #e5e7eb;
}


.pedido-creado-linea {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 13px 0;

    border-bottom: 1px solid #eee;

    text-align: left;
}


.pedido-creado-linea span,
.pedido-creado-linea small {
    display: block;

    margin-top: 3px;

    color: #777;
}


.pedido-creado-total {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 20px 0;
}


.pedido-creado-total strong {
    color: #124ca1;

    font-size: 25px;
}


.pedido-pendiente-aviso {
    margin-bottom: 25px;

    padding: 12px;

    border-radius: 8px;

    background: #eef5ff;

    color: #124ca1;

    font-size: 12px;
}


@media (max-width: 800px) {

    .finalizar-grid {
        grid-template-columns: 1fr;
    }


    .finalizar-resumen {
        position: static;
    }

}


@media (max-width: 520px) {

    .formulario-dos-columnas {
        grid-template-columns: 1fr;
        gap: 0;
    }


    .pedido-creado-card {
        padding: 25px 18px;
    }

}

/* ========================================
   BOTÓN WHATSAPP DEL PEDIDO
======================================== */

.boton-whatsapp-pedido {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    width: 100%;

    margin-top: 10px;

    padding: 15px 20px;

    border-radius: 10px;

    background: #25d366;

    color: white;

    text-decoration: none;

    font-size: 15px;

    font-weight: bold;

    transition: .2s;
}


.boton-whatsapp-pedido:hover {
    background: #1ebc59;

    transform: translateY(-1px);
}


.whatsapp-pedido-icono {
    font-size: 21px;
}


.whatsapp-redireccion-texto {
    margin-top: 10px;

    color: #777;

    font-size: 11px;

    text-align: center;
}


.separador-pedido {
    display: flex;

    align-items: center;

    gap: 12px;

    margin: 22px 0 15px;

    color: #aaa;

    font-size: 12px;
}


.separador-pedido::before,
.separador-pedido::after {
    content: "";

    flex: 1;

    height: 1px;

    background: #e5e7eb;
}


.volver-catalogo-pedido {
    display: inline-block;

    color: #124ca1;

    text-decoration: none;

    font-size: 13px;

    font-weight: bold;
}


.volver-catalogo-pedido:hover {
    text-decoration: underline;
}

/* ========================================
   BÚSQUEDA
======================================== */

.busqueda-cabecera {
    margin-bottom: 35px;
}


.busqueda-cabecera h1 {
    margin-top: 6px;

    font-size: 34px;

    line-height: 1.2;
}


.busqueda-cabecera p {
    margin-top: 8px;

    color: #667085;
}


.busqueda-cabecera p strong {
    color: #124ca1;
}


/* ========================================
   SIN RESULTADOS
======================================== */

.busqueda-sin-resultados {
    background: white;

    border: 1px solid #e5e7eb;

    border-radius: 15px;

    padding: 70px 25px;

    text-align: center;
}


.busqueda-vacia-icono {
    margin-bottom: 15px;

    font-size: 55px;
}


.busqueda-sin-resultados h2 {
    margin-bottom: 10px;
}


.busqueda-sin-resultados p {
    margin: 5px 0;

    color: #667085;
}


.busqueda-sin-resultados .boton-principal {
    margin-top: 25px;
}


/* ========================================
   BUSCADOR INPUT SEARCH
======================================== */

.buscador input[type="search"] {
    flex: 1;

    border: 0;
    outline: 0;

    padding: 14px 16px;

    background: transparent;

    font-size: 14px;
}


/* Quitar X automático en algunos navegadores */

.buscador input[type="search"]::-webkit-search-cancel-button {
    cursor: pointer;
}