* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f7f7;
    color: #222;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    background: #111;
    color: white;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 26px;
    font-weight: bold;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a {
    color: white;
}

.main-nav a:hover {
    opacity: 0.75;
}


/* =========================================================
   INDICADOR DEL CARRITO
========================================================= */

.main-nav .cart-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.main-nav .cart-badge {
    position: absolute;

    top: -13px;
    right: -18px;

    min-width: 22px;
    height: 22px;

    padding: 0 6px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #e00000 !important;
    color: #ffffff !important;

    border: 2px solid #ffffff;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;

    z-index: 20;

    opacity: 1 !important;
}


/* Evita que el hover del enlace haga desaparecer el círculo */
.main-nav .cart-nav-link:hover .cart-badge {
    opacity: 1 !important;
}


/* =========================================================
   CONTENIDO GENERAL
========================================================= */

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 35px;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    margin-top: 60px;
    background: #111;
    color: white;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}


/* =========================================================
   MENSAJES
========================================================= */

.messages {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 20px;
}

.message {
    padding: 14px;
    background: #fff3cd;
    border: 1px solid #ffe69c;
    border-radius: 6px;
}


/* =========================================================
   CATÁLOGO
========================================================= */

.catalog-header {
    margin-bottom: 30px;
}

.catalog-header h1 {
    margin: 0 0 10px;
    font-size: 34px;
}

.catalog-header p {
    margin: 0;
    color: #666;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 320px));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.product-image {
    width: 100%;
    height: 230px;

    background: #ffffff;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

    padding: 12px;
}

.no-image {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #888;
}

.product-card-content {
    padding: 20px;
}

.product-card h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.product-description {
    color: #555;
    line-height: 1.5;
}

.product-price {
    font-size: 25px;
    font-weight: bold;
    margin: 18px 0 8px;
}

.product-price span {
    display: block;
    margin-top: 3px;

    font-size: 14px;
    font-weight: normal;

    color: #777;
}

.product-weight {
    color: #555;
}

.product-estimated {
    margin-top: 12px;
}

.stock {
    margin: 15px 0;
    font-weight: bold;
}

.stock-ok {
    color: #237a36;
}

.stock-request {
    color: #946200;
}

.stock-out {
    color: #b3261e;
}


/* =========================================================
   BOTONES
========================================================= */

.button {
    display: inline-block;

    padding: 12px 18px;

    border-radius: 7px;

    font-weight: bold;

    cursor: pointer;
}

.button-primary {
    background: #111;
    color: white;
}

.button-primary:hover {
    background: #333;
}

.button-secondary {
    background: #eeeeee;
    color: #222;
}

.button-secondary:hover {
    background: #dddddd;
}

.button-danger {
    background: #b3261e;
    color: white;
}

.button-danger:hover {
    background: #8f1f19;
}


/* =========================================================
   ELEMENTOS GENERALES
========================================================= */

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    margin: 0 0 8px;
    font-size: 34px;
}

.page-header p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
}

.muted {
    color: #666;
}

.text-danger {
    color: #b3261e;
}

.text-success {
    color: #237a36;
}


/* =========================================================
   DETALLE DEL PRODUCTO
========================================================= */

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 50px;
    align-items: start;
}

.product-detail-gallery {
    background: white;

    border: 1px solid #e5e5e5;
    border-radius: 12px;

    padding: 20px;
}

.product-main-image {
    width: 100%;
    height: 460px;

    object-fit: contain;

    display: block;
}

.product-detail-info h1 {
    margin-top: 0;
    margin-bottom: 10px;

    font-size: 38px;
}

.product-detail-description {
    color: #555;

    line-height: 1.6;

    font-size: 17px;
}

.detail-price {
    margin: 25px 0 5px;

    font-size: 34px;
    font-weight: 700;
}

.detail-price span {
    font-size: 16px;
    font-weight: normal;

    color: #666;
}

.product-info-box {
    margin: 25px 0;
    padding: 20px;

    background: #f5f5f5;

    border-radius: 10px;
}

.product-info-box p {
    margin: 8px 0;
}

.estimated-warning {
    margin: 20px 0;
    padding: 16px;

    background: #fff8e1;

    border: 1px solid #f0d98b;
    border-radius: 8px;

    line-height: 1.5;
}

.product-media-section {
    margin-top: 50px;
}

.product-media-section h2 {
    margin-bottom: 20px;
}

.product-media-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.product-media-grid img,
.product-media-grid video {
    width: 100%;
    height: 250px;

    object-fit: contain;

    background: white;

    border: 1px solid #e5e5e5;
    border-radius: 10px;
}


/* =========================================================
   CARRITO
========================================================= */

.cart-layout {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 360px;

    gap: 35px;

    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;

    gap: 18px;
}

.cart-item {
    background: white;

    border: 1px solid #e5e5e5;
    border-radius: 12px;

    padding: 22px;
}

.cart-item h2 {
    margin-top: 0;
}

.cart-quantity {
    display: flex;
    align-items: center;

    gap: 12px;

    margin: 18px 0;
}

.quantity-button {
    width: 36px;
    height: 36px;

    border-radius: 6px;

    background: #111;
    color: white;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
}

.quantity-value {
    min-width: 30px;

    text-align: center;

    font-weight: bold;
}

.remove-link {
    color: #b3261e;
    font-weight: 600;
}

.cart-summary {
    position: sticky;

    top: 25px;

    background: white;

    border: 1px solid #e5e5e5;
    border-radius: 12px;

    padding: 25px;
}

.cart-summary h2 {
    margin-top: 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;

    margin: 15px 0;
}

.summary-total {
    border-top: 1px solid #ddd;

    padding-top: 18px;
    margin-top: 18px;

    font-size: 22px;
    font-weight: bold;
}


/* =========================================================
   FORMULARIOS
========================================================= */

.auth-container,
.form-container {
    max-width: 560px;
    margin: 20px auto;
}

.form-card {
    background: white;

    border: 1px solid #e5e5e5;
    border-radius: 12px;

    padding: 30px;
}

.form-card h1 {
    margin-top: 0;
}

.form-card form p {
    margin-bottom: 20px;
}

.form-card label {
    display: block;

    margin-bottom: 7px;

    font-weight: 600;
}

.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;

    padding: 12px 13px;

    border: 1px solid #cccccc;
    border-radius: 7px;

    font: inherit;

    background: white;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    outline: none;

    border-color: #333;
}

.form-card ul.errorlist {
    margin: 6px 0;

    padding-left: 20px;

    color: #b3261e;
}

.form-card .helptext {
    display: block;

    margin-top: 5px;

    color: #777;

    font-size: 13px;
}

.form-actions {
    margin-top: 25px;
}

.form-actions .button {
    border: 0;
    font-size: 16px;
}

.form-card hr {
    border: 0;
    border-top: 1px solid #e5e5e5;

    margin: 28px 0;
}

.form-card .button-primary {
    border: 0;
}


/* =========================================================
   ERRORES DE FORMULARIO
========================================================= */

.form-error {
    margin: 15px 0;

    padding: 12px 14px;

    background: #fdeaea;

    border: 1px solid #e4aaaa;
    border-radius: 7px;

    color: #9b1c1c;
}

.form-error ul {
    margin: 0;

    padding-left: 20px;
}


/* =========================================================
   MI CUENTA
========================================================= */

.account-grid {
    display: grid;

    grid-template-columns: 320px minmax(0, 1fr);

    gap: 30px;

    align-items: start;
}

.account-sidebar,
.account-section {
    background: white;

    border: 1px solid #e5e5e5;
    border-radius: 12px;

    padding: 24px;
}

.account-sidebar h2,
.account-section h2 {
    margin-top: 0;
}

.account-sidebar p {
    line-height: 1.5;
}

.account-content {
    display: flex;
    flex-direction: column;

    gap: 25px;
}

.address-card,
.order-card {
    border: 1px solid #e5e5e5;
    border-radius: 9px;

    padding: 18px;

    margin-bottom: 15px;
}

.address-card:last-child,
.order-card:last-child {
    margin-bottom: 0;
}

.order-card-header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;
}

.order-status {
    padding: 6px 10px;

    background: #eeeeee;

    border-radius: 20px;

    font-size: 14px;
    font-weight: bold;
}


/* =========================================================
   CHECKOUT
========================================================= */

.checkout-layout {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 380px;

    gap: 35px;

    align-items: start;
}

.checkout-section {
    background: white;

    border: 1px solid #e5e5e5;
    border-radius: 12px;

    padding: 25px;

    margin-bottom: 22px;
}

.checkout-section h2 {
    margin-top: 0;
}

.checkout-address {
    border: 1px solid #ddd;

    padding: 15px;

    border-radius: 8px;

    margin-bottom: 10px;
}

.checkout-address label {
    cursor: pointer;
}

.payment-options ul {
    list-style: none;

    padding: 0;
}

.payment-options li {
    margin: 12px 0;
}

.checkout-summary {
    position: sticky;

    top: 25px;

    background: white;

    border: 1px solid #e5e5e5;
    border-radius: 12px;

    padding: 25px;
}


/* =========================================================
   PEDIDO CONFIRMADO
========================================================= */

.success-card {
    max-width: 720px;

    margin: 30px auto;

    background: white;

    border: 1px solid #e5e5e5;
    border-radius: 12px;

    padding: 35px;

    text-align: center;
}

.success-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #e5f5e9;
    color: #237a36;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 35px;
    font-weight: bold;
}

.success-card h1 {
    margin-bottom: 10px;
}

.success-info {
    margin: 30px 0;

    padding: 20px;

    background: #f5f5f5;

    border-radius: 10px;

    text-align: left;
}

.success-info p {
    margin: 10px 0;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail,
    .cart-layout,
    .checkout-layout,
    .account-grid {
        grid-template-columns: 1fr;
    }

    .cart-summary,
    .checkout-summary {
        position: static;
    }

    .product-media-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 700px) {

    .header-container {
        flex-direction: column;

        gap: 15px;
    }

    .main-nav {
        flex-wrap: wrap;

        justify-content: center;

        gap: 18px;
    }

}

@media (max-width: 768px) {


    .product-grid {
        grid-template-columns: 1fr;
    }

    .catalog-header h1 {
        font-size: 29px;
    }

    .product-detail-info h1 {
        font-size: 30px;
    }

    .product-main-image {
        height: 320px;
    }

    .product-media-grid {
        grid-template-columns: 1fr;
    }

    .product-media-grid img,
    .product-media-grid video {
        height: 260px;
    }

    .form-card {
        padding: 22px;
    }

    .order-card-header {
        flex-direction: column;

        align-items: flex-start;
    }


.header-inner {
    width: 100%;
    min-height: auto;
    padding: 12px 16px;
    gap: 12px;
    box-sizing: border-box;
}

.header-brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 8px;
}

.main-header .header-brand .header-logo {
    width: 54px !important;
    height: 54px !important;
    max-width: 54px !important;
    max-height: 54px !important;
}

.brand-name {
    min-width: 0;
}

.brand-name strong {
    font-size: 21px;
    white-space: nowrap;
}

.header-user {
    margin-left: auto;
    gap: 12px;
    flex: 0 0 auto;
}

.header-search {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    height: 48px;
}

.header-search input {
    min-width: 0;
    padding: 0 16px;
    font-size: 16px;
}

.header-search button {
    flex: 0 0 auto;
    padding: 0 18px;
}

.category-inner {
    width: 100%;
    max-width: 100%;
}

.category-inner a {
    flex: 0 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}




.category-inner {
    display: flex;
    width: 100%;
    overflow-x: hidden;
}

.category-inner a {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 8px;
    justify-content: center;
    text-align: center;
    font-size: 14px;
}




.category-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    overflow: visible;
}

.category-inner a {
    min-width: 0;
    width: 100%;
    height: 48px;
    padding: 0 6px;
    justify-content: center;
    text-align: center;
    white-space: normal;
    font-size: 14px;
    box-sizing: border-box;
}




}

/* =========================================================
   CARRUSEL DE OFERTAS - AJUSTE DEFINITIVO
========================================================= */

.offers-section {
    width: 100%;
    margin: 0 0 45px 0;
}

.offers-section .offers-header {
    margin-bottom: 18px;
}

.offers-section .offers-header h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.offers-section .offers-header p {
    margin: 0;
    color: #666;
}


/* CONTENEDOR HORIZONTAL */

.offers-section .offers-carousel {
    width: 100%;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    gap: 20px;

    overflow-x: auto !important;
    overflow-y: hidden;

    padding: 5px 2px 18px;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}


/* TARJETA */

/* =========================
   CARRUSEL OFERTAS COMPACTO
========================= */

.offers-section .offers-carousel .offer-card {
    display: block;

    flex: 0 0 220px !important;

    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;

    background: #ffffff;

    border: 1px solid #e5e5e5;
    border-radius: 10px;

    overflow: hidden;

    scroll-snap-align: start;
}


/* FOTO MÁS BAJA */

.offers-section .offer-card .offer-image {
    position: relative;

    width: 100% !important;
    height: 115px !important;

    min-height: 115px;
    max-height: 115px;

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}


.offers-section .offer-card .offer-image img {
    width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;

    padding: 7px;
}


/* INFORMACIÓN */

.offers-section .offer-card .offer-info {
    padding: 10px 12px 12px;
}


.offers-section .offer-card .offer-info h3 {
    margin: 0 0 8px;

    font-size: 16px;
    line-height: 1.2;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* PRECIO POR KILO */

.offer-price-kg {
    font-size: 20px;
    font-weight: 800;

    color: #111;

    margin-bottom: 3px;
}


.offer-price-kg span {
    font-size: 12px;
    font-weight: normal;

    color: #666;
}


/* PRECIO CAJA */

.offer-box-price {
    font-size: 13px;
    color: #555;
}


.offer-box-price strong {
    color: #004D95;
    font-size: 15px;
}

/* CELULAR */

@media (max-width: 600px) {

    .offers-section .offers-carousel .offer-card {
        flex-basis: 240px !important;

        width: 240px !important;
        min-width: 240px !important;
        max-width: 240px !important;
    }

    .offers-section .offer-card .offer-image {
        height: 160px !important;

        min-height: 160px;
        max-height: 160px;
    }

    .offers-section .offer-card .offer-image img {
        max-height: 160px !important;
    }

}

/* =========================================================
   BANNER PUBLICITARIO
========================================================= */

.promo-banners {
    width: 100%;
    margin: 0 0 40px;
}

.promo-banner {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
}

.promo-banner a {
    display: block;
}

.promo-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
}


/* Si hay más de un banner */

.promo-banner + .promo-banner {
    margin-top: 20px;
}


@media (max-width: 600px) {

    .promo-banners {
        margin-bottom: 30px;
    }

    .promo-banner {
        border-radius: 8px;
    }

    .promo-banner img {
        max-height: 180px;
    }

}


.site-header {
    width: 100%;
    font-family: Arial, sans-serif;
}


/* CONTENEDOR GENERAL */

.header-container {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
}


/* CABECERA NARANJA */

.header-main {
    background: linear-gradient(
        90deg,
        #f36c13 0%,
        #ff7b17 100%
    );

    padding: 18px 0;
}


.header-main .header-container {
    display: flex;
    align-items: center;
    gap: 35px;
}


/* LOGO */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 250px;

    color: white;
    text-decoration: none;
}


.brand-logo img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}


.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}


.brand-text span {
    font-size: 15px;
    font-weight: 600;
}


.brand-text strong {
    font-size: 22px;
    font-weight: 800;
}


/* BUSCADOR */

.search-box {
    flex: 1;

    height: 52px;

    display: flex;
    align-items: center;

    background: white;

    border-radius: 30px;

    overflow: hidden;

    box-shadow:
        0 3px 10px rgba(0,0,0,.12);
}


.search-box input {
    flex: 1;

    height: 100%;

    border: none;
    outline: none;

    padding: 0 24px;

    font-size: 16px;

    color: #444;
}


.search-box input::placeholder {
    color: #777;
}


.search-box button {
    width: 65px;
    height: 100%;

    border: none;
    background: transparent;

    font-size: 21px;

    cursor: pointer;
}


/* CUENTA Y CARRITO */

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}


.header-action {
    display: flex;
    align-items: center;
    gap: 10px;

    color: white;
    text-decoration: none;

    transition: .2s;
}


.header-action:hover {
    opacity: .8;
}


.action-icon {
    font-size: 27px;
}


.action-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}


.action-text small {
    font-size: 13px;
    opacity: .9;
}


.action-text strong {
    font-size: 16px;
}


/* MENÚ INFERIOR */

.category-nav {
    background: #004D95;

    box-shadow:
        0 2px 6px rgba(0,0,0,.15);
}


.nav-container {
    display: flex;
    align-items: center;

    min-height: 58px;
}


.category-nav a {
    color: white;

    text-decoration: none;

    font-size: 16px;
    font-weight: 600;

    padding: 20px 24px;

    transition:
        background .2s,
        color .2s;
}


.category-nav a:hover {
    background: #333;
    color: #ff7a16;
}


.category-nav .offers-link {
    color: #ffc107;
}


/* RESPONSIVE */

@media (max-width: 950px) {

    .header-main .header-container {
        flex-wrap: wrap;
    }

    .brand {
        min-width: auto;
    }

    .search-box {
        order: 3;
        flex-basis: 100%;
    }

    .header-actions {
        margin-left: auto;
    }

}


@media (max-width: 650px) {

    .header-container {
        width: calc(100% - 24px);
    }

    .brand-text span {
        display: none;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .action-text {
        display: none;
    }

    .nav-container {
        overflow-x: auto;
    }

    .category-nav a {
        white-space: nowrap;
        padding: 16px 18px;
    }

}

/* =====================================================
   HEADER LA INSUPERABLE
===================================================== */

.main-header {
    width: 100%;
    background: white;
}


/* =============================
   CABECERA NARANJA
============================= */

.header-top {
    background: linear-gradient(
        135deg,
        #f26513 0%,
        #ff7818 55%,
        #f56512 100%
    );

    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.header-inner {
    max-width: 1280px;
    min-height: 90px;

    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    gap: 35px;
}


/* =============================
   MARCA
============================= */

.header-brand {
    min-width: 245px;

    color: white;
    text-decoration: none;

    display: flex;
    align-items: center;
}

.brand-name {
    display: flex;
    flex-direction: column;

    line-height: 1.05;
}

.brand-name span {
    font-size: 17px;
    font-weight: 500;
}

.brand-name strong {
    font-size: 25px;
    font-weight: 800;
    margin-top: 4px;
}


/* =============================
   BUSCADOR
============================= */

.header-search {
    flex: 1;

    height: 50px;

    display: flex;
    align-items: center;

    background: white;

    border-radius: 30px;

    overflow: hidden;

    box-shadow: 0 3px 10px rgba(0,0,0,.12);
}

.header-search input {
    flex: 1;

    height: 100%;

    border: none;
    outline: none;

    padding: 0 25px;

    font-size: 16px;

    color: #444;
}

.header-search input::placeholder {
    color: #777;
}

.header-search button {
    height: 42px;

    margin-right: 4px;
    padding: 0 30px;

    border: none;
    border-radius: 24px;

    background: #f15a0b;

    color: white;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition: .2s;
}

.header-search button:hover {
    background: #d94c00;
}


/* =============================
   CUENTA Y CARRITO
============================= */

.header-user {
    display: flex;
    align-items: center;

    gap: 20px;
}

.account-link,
.cart-link {
    display: flex;
    align-items: center;

    gap: 9px;

    color: white;

    text-decoration: none;
}

.account-link span:last-child,
.cart-link span:last-child {
    display: flex;
    flex-direction: column;
}

.account-link small,
.cart-link small {
    font-size: 13px;
    color: rgba(255,255,255,.9);
}

.account-link strong,
.cart-link strong {
    font-size: 15px;
    color: white;
}

.header-icon {
    font-size: 27px;
}

.header-divider {
    width: 1px;
    height: 40px;

    background: rgba(255,255,255,.5);
}


/* =============================
   MENÚ CATEGORÍAS
============================= */

.category-menu {
    background: #004D95 !important;

    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.category-inner {
    max-width: 1280px;

    margin: 0 auto;

    display: flex;
    align-items: center;

    min-height: 58px;
}

.category-inner a {
    height: 58px;

    padding: 0 27px;

    display: flex;
    align-items: center;
    gap: 8px;

    color: white;

    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    transition: .2s;
}

.category-inner a:hover {
    background: #003B73;
    color: white;
}

.category-inner a.active {
    background: #f56b13;
    color: white;
}

.category-inner .offers {
    color: #ffc107;
}


/* =============================
   ZONA DE DESPACHO
============================= */

.delivery-zone {
    margin-left: auto;

    padding: 0 20px;

    color: white;

    font-size: 14px;
    font-weight: 600;
}


/* =============================
   RESPONSIVE
============================= */

@media (max-width: 1000px) {

    .header-inner {
        flex-wrap: wrap;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .header-search {
        order: 3;
        flex-basis: 100%;
    }

    .header-user {
        margin-left: auto;
    }

    .category-inner {
        overflow-x: auto;
    }

    .category-inner a {
        white-space: nowrap;
    }

    .delivery-zone {
        display: none;
    }
}


@media (max-width: 600px) {

    .header-inner {
        gap: 15px;
    }

    .brand-name span {
        font-size: 13px;
    }

    .brand-name strong {
        font-size: 19px;
    }

    .header-brand {
        min-width: auto;
    }

    .account-link span:last-child,
    .cart-link span:last-child {
        display: none;
    }

    .header-divider {
        display: none;
    }

    .header-search button {
        padding: 0 18px;
    }
}

.header-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* LOGO CABECERA - TAMAÑO FORZADO */
.main-header .header-brand .header-logo {
    width: 65px !important;
    height: 65px !important;
    max-width: 65px !important;
    max-height: 65px !important;

    object-fit: contain !important;

    display: block;
    flex-shrink: 0;
}


/* =========================================
   ETIQUETA ROJA OFERTA - CARRUSEL
========================================= */

.offers-carousel .offer-card .offer-image {
    position: relative !important;
}

.offers-carousel .offer-card .offer-label {
    position: absolute !important;

    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    bottom: auto !important;

    display: inline-block !important;

    width: auto !important;
    height: auto !important;

    background-color: #e60000 !important;
    color: #ffffff !important;

    padding: 6px 10px !important;

    border-radius: 6px !important;
    border: none !important;

    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    z-index: 20 !important;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
}

/* =========================================
   BANNER INFERIOR
========================================= */

.bottom-banner {
    width: 100%;
    padding: 30px 20px;
    background: #ffffff;
    box-sizing: border-box;
}

.bottom-banner-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.bottom-banner-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
}

/* =========================================
   BOTÓN FLOTANTE WHATSAPP
========================================= */

.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 25px;

    width: 64px;
    height: 64px;

    background: #25D366;
    color: white;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.30);

    z-index: 9999;

    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.whatsapp-float svg {
    width: 29px;
    height: 29px;
    display: block;
}

.whatsapp-float:hover {
    transform: scale(1.08);

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}


/* CELULARES */

@media (max-width: 600px) {

    .whatsapp-float {
        width: 56px;
        height: 56px;

        right: 16px;
        bottom: 16px;
    }

    .whatsapp-float svg {
        width: 33px;
        height: 33px;
    }

}


/* =====================================================
   TARJETAS DE OPCIONES DE PAGO
===================================================== */

.cart-payment-section {
    margin-top: 35px;
}


.cart-payment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 22px;
}


/* TARJETA COMPLETA */

.payment-option-card {
    display: block;

    min-height: 330px;

    padding: 26px;

    background: #ffffff;

    border: 3px solid #d8d8d8;
    border-radius: 14px;

    box-sizing: border-box;

    cursor: pointer;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.06);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}


/* HOVER */

.payment-option-card:hover {
    border-color: #999;

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.10);

    transform: translateY(-2px);
}


/* TARJETA SELECCIONADA */

.payment-option-card.selected {
    border: 4px solid #237a36;

    background: #f6fff8;

    box-shadow:
        0 8px 24px rgba(35, 122, 54, 0.18);
}


/* CABECERA DE TARJETA */

.payment-option-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    padding-bottom: 18px;

    border-bottom: 1px solid #e5e5e5;
}


.payment-option-select {
    display: flex;
    align-items: center;
    gap: 12px;
}


.payment-option-select input[type="radio"] {
    width: 22px;
    height: 22px;

    cursor: pointer;

    accent-color: #237a36;
}


.payment-radio-title {
    font-size: 22px;
    font-weight: 700;
}


/* SUBTÍTULO */

.payment-option-subtitle {
    margin: 15px 0 20px;

    color: #666;

    font-size: 14px;
}


/* CONTENIDO */

.payment-option-body {
    width: 100%;
}


/* TOTAL */

.payment-total {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-top: 18px;
    padding-top: 18px;

    border-top: 2px solid #e5e5e5;
}


.payment-total strong {
    font-size: 27px;
}


/* TOTAL PAGO ANTICIPADO */

.payment-option-prepaid .payment-total strong {
    color: #237a36;
}


/* BADGE DESCUENTO */

.discount-badge {
    flex-shrink: 0;

    padding: 6px 11px;

    background: #237a36;
    color: #fff;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 700;
}


/* AHORRO */

.saving-row {
    margin-top: 16px;

    padding: 11px 13px;

    background: #e8f6eb;

    color: #237a36;

    border-radius: 8px;

    font-size: 14px;
}


/* CONTRA ENTREGA */

.delivery-payment-space {
    margin-top: 16px;

    padding: 11px 13px;

    background: #f1f1f1;

    color: #555;

    border-radius: 8px;

    font-size: 14px;
}


/* TEXTO FINAL */

.payment-option-note {
    margin: 18px 0 0;

    color: #555;

    font-size: 14px;

    line-height: 1.5;
}


/* =====================================================
   OPCIÓN SELECCIONADA
===================================================== */

.selected-payment-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 30px;

    margin-top: 28px;

    padding: 22px 26px;

    background: #f5f9fd;

    border: 2px solid #004d95;
    border-radius: 12px;
}


.selected-payment-summary > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


.selected-payment-label {
    font-size: 13px;

    color: #666;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


#selectedPaymentName {
    font-size: 21px;
}


.selected-payment-total {
    display: flex;
    flex-direction: column;

    gap: 4px;

    text-align: right;
}


.selected-payment-total span {
    color: #666;
}


.selected-payment-total strong {
    font-size: 28px;
}


/* =====================================================
   BLOQUE AMARILLO
===================================================== */

.cart-wide-warning {
    width: 100%;

    margin-top: 30px;

    padding: 26px 30px;

    box-sizing: border-box;

    background: #fff8e1;

    border: 1px solid #ecd47b;
    border-radius: 12px;
}


.cart-wide-warning-title {
    margin-bottom: 20px;

    font-size: 19px;
}


.cart-warning-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 40px;
}


.cart-warning-columns h3 {
    margin-top: 0;
}


.cart-warning-columns p {
    line-height: 1.6;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 800px) {

    .cart-payment-options {
        grid-template-columns: 1fr;
    }


    .payment-option-card {
        min-height: auto;
    }


    .cart-warning-columns {
        grid-template-columns: 1fr;

        gap: 15px;
    }


    .selected-payment-summary {
        flex-direction: column;
        align-items: stretch;
    }


    .selected-payment-total {
        text-align: left;
    }

}


/* =====================================================
   TÉRMINOS Y CONDICIONES
===================================================== */

.terms-acceptance {
    width: 100%;
    box-sizing: border-box;

    margin-top: 25px;

    padding: 20px 24px;

    background: #ffffff;

    border: 1px solid #dcdcdc;
    border-radius: 10px;
}


.terms-checkbox-label {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    cursor: pointer;

    font-size: 16px;
    line-height: 1.5;
}


.terms-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;

    margin-top: 2px;

    flex-shrink: 0;

    accent-color: #237a36;

    cursor: pointer;
}


.terms-link {
    font-weight: 700;

    color: #004d95;

    text-decoration: underline;
}


.terms-help {
    margin: 10px 0 0 32px;

    color: #777;

    font-size: 13px;
}


/* BOTÓN DESACTIVADO */

.cart-checkout-button.disabled {
    opacity: 0.55;

    cursor: not-allowed;

    pointer-events: none;
}


/* =====================================================
   TÉRMINOS Y CONDICIONES
===================================================== */

.terms-page {
    max-width: 950px;
    margin: 0 auto 50px;
}

.terms-section {
    padding: 22px 0;
    border-bottom: 1px solid #e5e5e5;
}

.terms-section h2 {
    margin: 0 0 14px;
    font-size: 21px;
    color: #004d95;
}

.terms-section p {
    margin: 10px 0;
    line-height: 1.7;
    color: #333;
}

.terms-back {
    margin-top: 30px;
    text-align: center;
}

/* =====================================================
   PAGO POR TRANSFERENCIA
===================================================== */

.transfer-page {
    max-width: 850px;
    margin: 0 auto 50px;
}

.transfer-card {
    margin-bottom: 24px;
    padding: 24px;

    background: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 12px;
}

.transfer-card h2 {
    margin-top: 0;
}

.transfer-total-box {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 18px;
    padding: 18px 20px;

    background: #f5f9fd;

    border: 2px solid #004d95;
    border-radius: 10px;
}

.transfer-total-box span {
    font-size: 16px;
}

.transfer-total-box strong {
    font-size: 28px;
    color: #004d95;
}

.transfer-bank-data {
    margin-top: 18px;
}

.transfer-bank-data p {
    margin: 10px 0;
    line-height: 1.5;
}

.transfer-confirm-form {
    margin-top: 25px;
}

.transfer-confirm-form .button {
    width: 100%;
    border: 0;
    text-align: center;
}

.transfer-note {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
}

/* =========================================================
   PANEL LA INSUPERABLE
========================================================= */

.dashboard-page {
    max-width: 1400px;
    margin: 0 auto 60px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.dashboard-header h1 {
    margin: 4px 0 8px;
    font-size: 32px;
}

.dashboard-header p {
    margin: 0;
    color: #666;
}

.dashboard-eyebrow {
    color: #004d95;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* TARJETAS */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 35px;
}

.dashboard-stat-card {
    display: flex;
    flex-direction: column;
    min-height: 150px;
    padding: 22px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-top: 4px solid #004d95;
    border-radius: 12px;
    text-decoration: none;
    color: #222;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.08);
}

.dashboard-stat-warning {
    border-top-color: #d99a00;
}

.dashboard-stat-danger {
    border-top-color: #c83d3d;
}

.dashboard-stat-success {
    border-top-color: #278447;
}

.dashboard-stat-label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.dashboard-stat-number {
    margin: 10px 0;
    font-size: 38px;
    line-height: 1;
    color: #111;
}

.dashboard-stat-link {
    margin-top: auto;
    color: #004d95;
    font-size: 13px;
    font-weight: 600;
}


/* SECCIÓN */

.dashboard-section {
    padding: 25px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
}

.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-section-header h2 {
    margin: 0 0 5px;
}

.dashboard-section-header p {
    margin: 0;
    color: #777;
}

.dashboard-section-header a {
    color: #004d95;
    font-weight: 600;
    text-decoration: none;
}


/* TABLA */

.dashboard-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th {
    padding: 13px 12px;
    background: #f6f7f9;
    border-bottom: 1px solid #ddd;
    text-align: left;
    white-space: nowrap;
    font-size: 13px;
    color: #555;
}

.dashboard-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    font-size: 14px;
}

.dashboard-table tbody tr:hover {
    background: #fafafa;
}


/* ESTADOS */

.dashboard-badge {
    display: inline-block;
    padding: 6px 9px;
    background: #eee;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-warning {
    background: #fff3cd;
    color: #805d00;
}

.badge-danger {
    background: #fde1e1;
    color: #a62626;
}

.badge-success {
    background: #dff3e5;
    color: #1e6a38;
}

.badge-info {
    background: #e1effc;
    color: #004d95;
}

.dashboard-view-order {
    display: inline-block;
    padding: 7px 11px;
    background: #004d95;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-view-order:hover {
    opacity: 0.9;
}


/* SIN PEDIDOS */

.dashboard-empty {
    padding: 50px 20px;
    text-align: center;
}

.dashboard-empty h3 {
    margin-bottom: 8px;
}

.dashboard-empty p {
    color: #777;
}


/* RESPONSIVE */

@media (max-width: 950px) {

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 650px) {

    .dashboard-header {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-header-actions .button {
        display: block;
        width: 100%;
        text-align: center;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

}


/* =========================================================
   DETALLE PEDIDO - PANEL
========================================================= */

.order-admin-status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.order-admin-status-card {
    padding: 18px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.order-admin-status-card span {
    display: block;
    margin-bottom: 7px;
    color: #777;
    font-size: 13px;
}

.order-admin-status-card strong {
    font-size: 18px;
}

.order-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 22px;
    align-items: start;
}

.order-admin-section {
    margin-bottom: 20px;
}

.order-admin-section h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 20px;
}

.order-admin-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.order-admin-info span {
    display: block;
    margin-bottom: 5px;
    color: #777;
    font-size: 13px;
}

.order-address {
    margin: 0;
    line-height: 1.7;
}

.dashboard-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.dashboard-select {
    width: 100%;
    padding: 11px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 7px;
    background: #fff;
}

.dashboard-full-button {
    width: 100%;
    border: 0;
    text-align: center;
}

.order-payment-info p {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.order-payment-info span {
    color: #666;
}

.admin-payment-alert,
.admin-payment-pending,
.admin-payment-success {
    margin: 18px 0;
    padding: 15px;
    border-radius: 8px;
}

.admin-payment-alert {
    background: #fdeaea;
    border: 1px solid #efbaba;
}

.admin-payment-pending {
    background: #fff7dd;
    border: 1px solid #eedc9c;
}

.admin-payment-success {
    background: #e6f5ea;
    border: 1px solid #b9dfc3;
}

.admin-payment-alert p,
.admin-payment-pending p,
.admin-payment-success p {
    margin: 7px 0 0;
    line-height: 1.5;
}

.order-final-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #222;
}

@media (max-width: 1000px) {

    .order-admin-status-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .order-admin-layout {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    .order-admin-status-grid,
    .order-admin-info {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   PESOS REALES
========================================================= */

.actual-weight-field {
    display: flex;
    align-items: center;
    gap: 6px;
}

.actual-weight-field input {
    width: 110px;
    padding: 9px 10px;

    border: 1px solid #ccc;
    border-radius: 6px;

    font-size: 14px;
}

.actual-weight-field span {
    color: #666;
    font-size: 13px;
}

.actual-weight-actions {
    display: flex;
    justify-content: flex-end;

    margin-top: 20px;
}


/* =========================================================
   DIFERENCIAS Y SALDO FINAL DEL PEDIDO
========================================================= */

.payment-difference-box,
.payment-balance-box {
    margin-top: 18px;
    padding: 18px;
    border-radius: 10px;
}

.payment-difference-box span,
.payment-balance-box span {
    display: block;
    margin-bottom: 5px;

    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.payment-difference-box strong,
.payment-balance-box strong {
    display: block;

    font-size: 27px;
}

.payment-difference-box p,
.payment-balance-box p {
    margin: 8px 0 0;
    line-height: 1.5;
}


/* Diferencia adicional */

.payment-difference-pay {
    background: #fff3cd;
    border: 1px solid #e1c45e;
}

.payment-difference-pay strong {
    color: #805d00;
}


/* Diferencia a favor */

.payment-difference-refund {
    background: #fdeaea;
    border: 1px solid #efbaba;
}

.payment-difference-refund strong {
    color: #a62626;
}


/* Sin diferencia */

.payment-difference-ok {
    background: #e6f5ea;
    border: 1px solid #b9dfc3;
}

.payment-difference-ok strong {
    color: #1e6a38;
}


/* Monto pagado */

.payment-account-summary {
    margin-top: 18px;
    padding-top: 15px;

    border-top: 1px solid #ddd;
}


/* Falta cobrar */

.payment-balance-due {
    background: #fff3cd;
    border: 2px solid #d99a00;
}

.payment-balance-due strong {
    color: #805d00;
}


/* Devolver */

.payment-balance-refund {
    background: #fdeaea;
    border: 2px solid #c83d3d;
}

.payment-balance-refund strong {
    color: #a62626;
}


/* Todo pagado */

.payment-balance-ok {
    background: #e6f5ea;
    border: 2px solid #278447;
}

.payment-balance-ok strong {
    color: #1e6a38;
}

/* =========================================================
   SALDOS - MI CUENTA
========================================================= */

.customer-order-balance {
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 9px;
}

.customer-order-balance span {
    display: block;
    margin-bottom: 5px;

    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.customer-order-balance strong {
    display: block;

    font-size: 24px;
}

.customer-order-balance p {
    margin: 7px 0 0;
    line-height: 1.5;
}


/* Saldo por pagar */

.customer-order-balance-due {
    background: #fff3cd;
    border: 1px solid #ddbd55;
}

.customer-order-balance-due strong {
    color: #805d00;
}


/* Saldo a favor */

.customer-order-balance-refund {
    background: #fdeaea;
    border: 1px solid #efbaba;
}

.customer-order-balance-refund strong {
    color: #a62626;
}


/* Pedido pagado */

.customer-order-balance-ok {
    background: #e6f5ea;
    border: 1px solid #b9dfc3;
}

.customer-order-balance-ok strong {
    color: #1e6a38;
}


/* Información general */

.customer-order-info {
    margin-top: 15px;
    padding: 14px 16px;

    background: #f6f6f6;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.customer-order-info p {
    margin: 6px 0 0;
}

/* =========================================================
   SEGUIMIENTO DEL PEDIDO
========================================================= */

.order-tracking {
    display: flex;
    align-items: flex-start;

    width: 100%;

    margin: 22px 0 26px;

    overflow-x: auto;

    padding-bottom: 5px;
}

.tracking-step {
    position: relative;

    flex: 1;

    min-width: 125px;

    text-align: center;
}

/* Línea entre etapas */

.tracking-step:not(:last-child)::after {
    content: "";

    position: absolute;

    top: 17px;
    left: 55%;

    width: 90%;
    height: 3px;

    background: #ddd;

    z-index: 0;
}

.tracking-step-done:not(:last-child)::after {
    background: #218838;
}


/* Círculos */

.tracking-icon {
    position: relative;

    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    margin: 0 auto 8px;

    border-radius: 50%;

    background: #eee;
    border: 2px solid #ccc;

    font-size: 17px;
    font-weight: 700;
}


/* Completado */

.tracking-step-done .tracking-icon {
    background: #218838;
    border-color: #218838;
    color: #fff;
}


/* Actual */

.tracking-step-current .tracking-icon {
    background: #00579b;
    border-color: #00579b;
    color: #fff;
}


/* Pendiente */

.tracking-step-pending .tracking-icon {
    background: #fff;
    border-color: #ccc;
    color: #aaa;
}


/* Cancelado */

.tracking-step-cancelled .tracking-icon {
    background: #c62828;
    border-color: #c62828;
    color: #fff;
}


/* Textos */

.tracking-content strong {
    display: block;

    font-size: 13px;
}

.tracking-content span {
    display: block;

    margin-top: 3px;

    font-size: 11px;
    color: #777;
}

.tracking-step-current .tracking-content strong {
    color: #00579b;
}

.tracking-step-done .tracking-content strong {
    color: #218838;
}


/* Móvil */

@media (max-width: 700px) {

    .order-tracking {
        justify-content: flex-start;
    }

    .tracking-step {
        flex: 0 0 125px;
    }

}

/* =========================================================
   SEGUIMIENTO DEL PEDIDO
========================================================= */

.order-tracking {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin: 22px 0 26px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.tracking-step {
    position: relative;
    flex: 1;
    min-width: 125px;
    text-align: center;
}

.tracking-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 17px;
    left: 55%;
    width: 90%;
    height: 3px;
    background: #ddd;
    z-index: 0;
}

.tracking-step-done:not(:last-child)::after {
    background: #218838;
}

.tracking-icon {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    margin: 0 auto 8px;

    border-radius: 50%;

    background: #eee;
    border: 2px solid #ccc;

    font-size: 17px;
    font-weight: 700;
}

.tracking-step-done .tracking-icon {
    background: #218838;
    border-color: #218838;
    color: #fff;
}

.tracking-step-current .tracking-icon {
    background: #00579b;
    border-color: #00579b;
    color: #fff;
}

.tracking-step-pending .tracking-icon {
    background: #fff;
    border-color: #ccc;
    color: #aaa;
}

.tracking-step-cancelled .tracking-icon {
    background: #c62828;
    border-color: #c62828;
    color: #fff;
}

.tracking-content strong {
    display: block;
    font-size: 13px;
}

.tracking-content span {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: #777;
}

.tracking-step-current .tracking-content strong {
    color: #00579b;
}

.tracking-step-done .tracking-content strong {
    color: #218838;
}

@media (max-width: 700px) {

    .order-tracking {
        justify-content: flex-start;
    }

    .tracking-step {
        flex: 0 0 125px;
    }
}

/* =========================================================
   OFERTAS DESTACADAS
========================================================= */

.offers-section {
    margin-top: 32px;
    margin-bottom: 40px;
}

.offers-header {
    margin-bottom: 18px;
}

.offers-header h2 {
    margin: 0 0 6px;
    font-size: 30px;
}

.offers-header p {
    margin: 0;
    color: #666;
}


/* =========================================================
   CONTENEDOR GENERAL DEL CARRUSEL
========================================================= */

.offers-carousel-shell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
}


/* =========================================================
   ZONA VISIBLE DEL CARRUSEL
========================================================= */

.offers-carousel-wrapper {
    overflow: hidden;
    width: 100%;
}


/* =========================================================
   FILA DE TARJETAS
========================================================= */

.offers-carousel {
    display: flex;
    gap: 16px;

    overflow-x: auto;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    scrollbar-width: none;

    padding: 4px 2px 8px;
}

.offers-carousel::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   TARJETA DE OFERTA
========================================================= */

.offer-card {
    flex: 0 0 calc((100% - 48px) / 4);

    scroll-snap-align: start;

    background: #fff;

    border: 1px solid #e0e0e0;
    border-radius: 12px;

    overflow: hidden;

    box-sizing: border-box;
}


/* =========================================================
   IMAGEN
========================================================= */

.offer-image {
    position: relative;

    height: 145px;

    overflow: hidden;
}

.offer-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
}


/* =========================================================
   ETIQUETA OFERTA
========================================================= */

.offer-label {
    position: absolute;

    top: 10px;
    left: 10px;

    background: #e60000;
    color: white;

    font-weight: 700;
    font-size: 13px;

    padding: 6px 10px;

    border-radius: 7px;
}


/* =========================================================
   INFORMACIÓN DE LA TARJETA
========================================================= */

.offer-info {
    padding: 14px;
}

.offer-info h3 {
    margin: 0 0 10px;

    font-size: 18px;
    line-height: 1.2;
}

.offer-info h3 a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   PRECIO
========================================================= */

.offer-price-kg {
    font-size: 25px;
    font-weight: 700;

    margin: 8px 0;
}

.offer-price-kg span {
    font-size: 13px;
    font-weight: 400;
    color: #555;
}


/* =========================================================
   TEXTO DESCUENTO
========================================================= */

.offer-card .discount-text {
    margin: 8px 0;

    font-size: 14px;
}


/* =========================================================
   PRECIO CAJA
========================================================= */

.offer-box-price {
    margin: 8px 0 12px;

    font-size: 14px;
}

.offer-box-price strong {
    color: #005baa;
}


/* =========================================================
   BOTÓN
========================================================= */

.offer-card .button {
    width: 100%;

    display: block;

    box-sizing: border-box;

    text-align: center;

    padding: 10px 12px;
}


/* =========================================================
   FLECHAS DEL CARRUSEL
========================================================= */

.carousel-arrow {
    flex: 0 0 52px;

    width: 52px;
    height: 52px;

    border: none;
    border-radius: 50%;

    background: #005baa;
    color: white;

    font-size: 42px;
    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.carousel-arrow:hover {
    transform: scale(1.08);
}

.carousel-arrow:active {
    transform: scale(0.96);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .offer-card {
        flex: 0 0 calc((100% - 32px) / 3);
    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 700px) {

    .offers-carousel-shell {
        gap: 7px;
    }

    .carousel-arrow {
        flex: 0 0 38px;

        width: 38px;
        height: 38px;

        font-size: 30px;
    }

    .offer-card {
        flex: 0 0 calc((100% - 16px) / 2);
    }

    .offer-image {
        height: 120px;
    }

    .offer-info {
        padding: 11px;
    }

    .offer-info h3 {
        font-size: 16px;
    }

    .offer-price-kg {
        font-size: 21px;
    }

}


/* =========================================================
   MÓVIL PEQUEÑO
========================================================= */

@media (max-width: 480px) {

    .offer-card {
        flex: 0 0 85%;
    }

}

/* =========================================================
   BANNER SUPERIOR COMPACTO
========================================================= */

.promo-banners {
    width: 100%;
    margin: 0 auto 25px;
}

.promo-banner {
    width: 100%;
    height: 100px;
    overflow: hidden;
    border-radius: 10px;
}

.promo-banner a {
    display: block;
    width: 100%;
    height: 100%;
}

.promo-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* =========================================================
   HEADER MÓVIL - AJUSTE DEFINITIVO
========================================================= */

@media (max-width: 600px) {

    .main-header,
    .header-top,
    .category-menu {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .header-inner {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        padding: 14px 16px;
        gap: 12px;
        box-sizing: border-box;

        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .header-brand {
        min-width: 0;
        flex: 1 1 auto;
        gap: 8px;
    }

    .main-header .header-brand .header-logo {
        width: 54px !important;
        height: 54px !important;
        max-width: 54px !important;
        max-height: 54px !important;
    }

    .brand-name {
        min-width: 0;
    }

    .brand-name span {
        font-size: 13px;
    }

    .brand-name strong {
        font-size: 20px;
        white-space: nowrap;
    }

    .header-user {
        flex: 0 0 auto;
        margin-left: auto;
        gap: 12px;
    }

    .account-link span:last-child,
    .cart-link span:last-child,
    .header-divider {
        display: none;
    }

    .header-search {
        order: 3;

        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        min-width: 0;

        height: 50px;

        box-sizing: border-box;
    }

    .header-search input {
        flex: 1 1 0;
        width: 0;
        min-width: 0;

        padding: 0 14px;

        font-size: 16px;

        box-sizing: border-box;
    }

    .header-search button {
        flex: 0 0 auto;

        height: 42px;
        padding: 0 16px;

        margin-right: 4px;

        font-size: 15px;
    }

    .category-inner {
        width: 100%;
        max-width: 100%;

        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));

        overflow: hidden;
    }

    .category-inner a {
        width: 100%;
        min-width: 0;

        height: 48px;
        padding: 0 5px;

        display: flex;
        justify-content: center;
        align-items: center;

        white-space: normal;

        text-align: center;
        font-size: 14px;

        box-sizing: border-box;
    }

    .delivery-zone {
        display: none;
    }
}
@media (max-width: 768px) {
    .promo-banners {
        display: none !important;
    }
}

/* =========================================================
   OFERTAS - AJUSTE MÓVIL
========================================================= */

@media (max-width: 768px) {

    .offers-section {
        margin-top: 24px;
        margin-bottom: 30px;
    }

    .offers-header {
        displat: none;
    }

    .offers-header h2 {
        font-size: 24px;
        line-height: 1.1;
        margin-bottom: 4px;
    }

    .offers-header p {
        font-size: 15px;
        line-height: 1.3;
    }

    .offers-carousel-shell {
        gap: 6px;
    }

    .carousel-arrow {
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        font-size: 26px;
    }

    .offer-card {
        flex: 0 0 64% !important;
    }

    .offer-image {
        height: 105px;
    }

    .offer-info {
        padding: 10px;
    }

    .offer-info h3 {
        font-size: 15px;
        margin-bottom: 7px;
    }

    .offer-price-kg {
        font-size: 19px;
        margin: 6px 0;
    }

    .offer-card .discount-text,
    .offer-box-price {
        font-size: 13px;
    }

    .offer-card .button {
        padding: 8px 10px;
        font-size: 13px;
    }
}
/* OCULTAR TITULO DE OFERTAS SOLO EN MOVILES */
@media (max-width: 768px) {
    .offers-header {
        display: none !important;
    }
}
/* MENU CATEGORIAS - UNA SOLA FILA EN MOVIL */
@media (max-width: 768px) {
    .category-inner {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }

    .category-inner a {
        padding: 0 2px !important;
        font-size: 12px !important;
        height: 46px !important;
        white-space: nowrap !important;
    }
}
/* =========================================================
   TARJETA OFERTAS COMPACTA - SOLO MOVIL
========================================================= */

@media (max-width: 768px) {

    .offer-card {
        flex: 0 0 58% !important;
    }

    .offer-image {
        height: 115px !important;
    }

    .offer-info {
        padding: 10px !important;
    }

    .offer-info h3 {
        font-size: 16px !important;
        margin: 0 0 8px !important;
        line-height: 1.2;
    }

    .offer-price-kg {
        color: #e60000 !important;
        font-size: 28px !important;
        font-weight: 800 !important;
        margin: 6px 0 10px !important;
        line-height: 1;
    }

    .offer-price-kg span {
        font-size: 14px !important;
        color: #333 !important;
        font-weight: 400 !important;
    }

    .offer-card .discount-text,
    .offer-box-price {
        display: none !important;
    }

  

    .offer-card .button {
        margin-top: 6px;
        padding: 9px 8px !important;
        font-size: 14px !important;
    }
}
/* PRECIO NORMAL COMPACTO - SOLO MOVIL */
@media (max-width: 768px) {

    .offer-card .product-normal-price {
        display: block !important;
        margin: 4px 0 2px !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
        color: #333 !important;
    }

    .offer-card .product-normal-price del {
        color: #333 !important;
        font-size: 12px !important;
    }

}
/* =========================================================
   CATALOGO - TITULO SIMPLIFICADO SOLO EN MOVIL
========================================================= */

.catalog-title-mobile {
    display: none;
}

@media (max-width: 768px) {

    .catalog-title-desktop,
    .catalog-description {
        display: none !important;
    }

    .catalog-title-mobile {
        display: block !important;
        margin: 0 0 16px !important;
        font-size: 32px !important;
        line-height: 1.1 !important;
        font-weight: 800 !important;
    }
}
/* =========================================================
   CATALOGO - TARJETAS COMPACTAS SOLO EN MOVIL
========================================================= */

@media (max-width: 768px) {

    .product-card {
        border-radius: 12px;
    }

    .product-card .product-image {
        height: 60px !important;
    }

    .product-card .product-card-content {
        padding: 14px !important;
    }

    .product-card .product-card-content h2 {
        margin: 0 0 8px !important;
        font-size: 21px !important;
        line-height: 1.15 !important;
    }

    .product-card .product-description {
        display: none !important;
    }

    .product-card .product-normal-price {
        margin: 2px 0 6px !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    .product-card .product-normal-price del {
        font-size: 13px !important;
    }

    .product-card .product-price {
        margin: 4px 0 5px !important;
        font-size: 28px !important;
        line-height: 1 !important;
        font-weight: 800 !important;
    }

    .product-card .product-price span {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .product-card .discount-text {
        margin: 4px 0 !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    .product-card .product-weight {
        margin: 5px 0 !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    .product-card .product-estimated {
        margin: 5px 0 10px !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    .product-card .product-estimated strong {
        font-size: 15px !important;
    }

    .product-card .button {
        padding: 10px 14px !important;
        font-size: 14px !important;
    }
}
/* =========================================================
   IMAGENES CATALOGO UNIFORMES - SOLO MOVIL
========================================================= */

@media (max-width: 768px) {

    .product-card .product-image {
        height: 150px !important;
        overflow: hidden !important;
        background: #fff !important;
    }

    .product-card .product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        padding: 0 !important;
        display: block !important;
    }
}
