
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #0c234a;
}

/* HEADER */

.header {
    width: 100%;
    background: #ffffff;
    padding: 16px 14px 12px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

/* BOTONES DE ICONOS */

.icon-btn {
    position: relative;
    border: none;
    background: transparent;
    color: #0c234a;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 34px;
    flex-shrink: 0;
}

.icon-btn svg {
    width: 23px;
    height: 23px;
    stroke-width: 1.9;
}

/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #0c234a;
    font-size: 21px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -1px;
    white-space: nowrap;
}

.logo svg {
    width: 31px;
    height: 31px;
    color: #f5b400;
    stroke-width: 2;
}

.logo b {
    color: #f5b400;
}

/* ACCIONES */

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #f5b400;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* BUSCADOR */

.search-box {
    width: 100%;
    height: 39px;
    background: #f6f7fb;
    border: 1px solid #dfe4ef;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 13px;
}

.search-box svg {
    width: 17px;
    height: 17px;
    color: #0c234a;
    flex-shrink: 0;
}

.search-box input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: #0c234a;
}

.search-box input::placeholder {
    color: #8791a3;
}

/* COMPUTADORAS */

@media (min-width: 768px) {
    .header {
        padding: 18px 5%;
    }

    .header-top {
        max-width: 1200px;
        margin: 0 auto 16px;
    }

    .search-box {
        max-width: 1200px;
        margin: auto;
        height: 45px;
    }
}


















/* BANNER PRINCIPAL */

.banner-section {
    width: 100%;
    padding: 0 5px;
    margin-top: 8px;
}

.banner-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    border-radius: 15px;
    -webkit-overflow-scrolling: touch;
}

.banner-slider::-webkit-scrollbar {
    display: none;
}

.banner-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 2.25 / 1;
    overflow: hidden;
    scroll-snap-align: start;
    background: #10264a;
}

/* Imagen de fondo */

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Texto encima de la imagen */

.banner-content {
    position: absolute;
    top: 50%;
    left: 7%;
    transform: translateY(-50%);
    color: white;
    width: 48%;
    z-index: 2;
}

.banner-content h2 {
    font-size: clamp(16px, 5vw, 26px);
    font-weight: 800;
    font-style: italic;
    line-height: 1.05;
    margin-bottom: 7px;
}

.banner-content h2 span {
    color: #ffbf00;
}

.banner-content p {
    font-size: clamp(8px, 2.2vw, 12px);
    margin-bottom: 12px;
    opacity: 0.95;
}

/* Botón amarillo */

.banner-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 15px;
    background: #ffc400;
    color: #071d3b;
    text-decoration: none;
    border-radius: 30px;
    font-size: clamp(10px, 2.5vw, 13px);
    font-weight: bold;
    white-space: nowrap;
    transition: 0.2s;
}

.banner-button:hover {
    background: #ffdb55;
    transform: scale(1.03);
}

/* Puntitos indicadores */

.banner-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.dot {
    width: 7px;
    height: 7px;
    background: #d1d5df;
    border: none;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #0c234a;
    transform: scale(1.2);
}

/* Escritorio */

@media (min-width: 768px) {
    .banner-section {
        max-width: 1200px;
        margin: 15px auto 0;
        padding: 0 15px;
    }

    .banner-slide {
        aspect-ratio: 3 / 1;
    }

    .banner-content h2 {
        font-size: 42px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .banner-button {
        font-size: 15px;
        padding: 12px 22px;
    }
}










/*esto es  para el siguiente section */

/* CATEGORÍAS DESLIZABLES */

.categorias-section {
    width: 100%;
    padding: 12px 8px;
    margin-top: 10px;
}

.categorias-slider {
    display: flex;
    align-items: stretch;
    gap: 8px;

    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
    padding-bottom: 4px;
}

.categorias-slider::-webkit-scrollbar {
    display: none;
}

/* TARJETA DE CATEGORÍA */

.categoria-item {
    flex: 0 0 66px;
    min-height: 66px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;

    background: #f5f6fa;
    border-radius: 12px;
    text-decoration: none;
    color: #10254d;

    scroll-snap-align: start;
    transition: background 0.2s, transform 0.2s;
}

.categoria-item svg {
    width: 25px;
    height: 25px;
    stroke-width: 1.7;
}

.categoria-item span {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.categoria-item:hover {
    background: #e9edf6;
    transform: translateY(-2px);
}

.categoria-item:active {
    transform: scale(0.96);
}

/* COMPUTADORAS */

@media (min-width: 768px) {

    .categorias-section {
        max-width: 1200px;
        margin: 15px auto 0;
        padding: 12px 15px;
    }

    .categorias-slider {
        gap: 12px;
    }

    .categoria-item {
        flex-basis: 100px;
        min-height: 90px;
        border-radius: 15px;
    }

    .categoria-item svg {
        width: 30px;
        height: 30px;
    }

    .categoria-item span {
        font-size: 12px;
    }
}









/*esto es para las ofertas*/



/* ==============================
   OFERTAS DESTACADAS
============================== */

.ofertas-section {
    width: 100%;
    padding: 12px 8px 20px;
    margin: 10px auto 0;
}

.ofertas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ofertas-header h2 {
    font-size: 17px;
    font-weight: 800;
    color: #111b34;
}

.ofertas-ver-mas {
    text-decoration: none;
    color: #10254d;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.ofertas-ver-mas span {
    font-size: 17px;
}

/* DESLIZAMIENTO HORIZONTAL */

.ofertas-slider {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.ofertas-slider::-webkit-scrollbar {
    display: none;
}

/* TARJETAS */

.oferta-card {
    position: relative;
    flex: 0 0 calc((100% - 14px) / 3);
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e5e8f0;
    border-radius: 11px;
    overflow: hidden;
    scroll-snap-align: start;
}

.oferta-imagen {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fafbfc;
}

.oferta-imagen a {
    display: block;
    width: 100%;
    height: 100%;
}

.oferta-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* CORAZÓN */

.oferta-favorito {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    border: none;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10254d;
    cursor: pointer;
}

.oferta-favorito svg {
    width: 14px;
    height: 14px;
}

/* PORCENTAJE DE DESCUENTO */

.oferta-badge {
    position: absolute;
    bottom: 3px;
    left: 4px;
    background: #ff3445;
    color: #ffffff;
    border-radius: 5px;
    padding: 3px 5px;
    font-size: 9px;
    font-weight: 700;
}

/* INFORMACIÓN */

.oferta-info {
    position: relative;
    padding: 6px 5px 31px;
    min-height: 102px;
}

.oferta-nombre {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 28px;
    font-size: 10px;
    line-height: 14px;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
}

.oferta-precio {
    font-size: 11px;
    font-weight: 800;
    color: #10254d;
    margin-top: 4px;
}

.oferta-precio-gtq {
    font-size: 9px;
    color: #64748b;
    margin-top: 3px;
}

.oferta-anterior {
    font-size: 9px;
    color: #8a93a5;
    text-decoration: line-through;
    margin-top: 3px;
}

/* BOTÓN CARRITO */

.oferta-carrito {
    position: absolute;
    bottom: 6px;
    right: 5px;
    width: 27px;
    height: 23px;
    background: #10254d;
    color: white;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.oferta-carrito svg {
    width: 15px;
    height: 15px;
}

.sin-ofertas {
    padding: 18px 5px;
    font-size: 13px;
    color: #64748b;
}

/* COMPUTADORAS */

@media (min-width: 768px) {

    .ofertas-section {
        max-width: 1200px;
        padding: 20px 15px;
    }

    .ofertas-header h2 {
        font-size: 24px;
    }

    .ofertas-slider {
        gap: 14px;
    }

    .oferta-card {
        flex: 0 0 190px;
    }

    .oferta-nombre {
        font-size: 13px;
        line-height: 18px;
        min-height: 36px;
    }

    .oferta-precio {
        font-size: 15px;
    }

    .oferta-precio-gtq,
    .oferta-anterior {
        font-size: 11px;
    }
}















/* ==============================
   ANUNCIO SHOPYDAS
============================== */

.shopy-info {
    max-width: 1170px;
    margin: 15px auto 25px;
    padding: 15px;
    background: #f2f5fb;
    border-radius: 15px;

    display: flex;
    align-items: center;
    gap: 12px;
}

.shopy-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10254d;
}

.shopy-info-icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 1.7;
}

.shopy-info-texto {
    flex: 1;
    min-width: 0;
}

.shopy-info-texto h3 {
    font-size: 13px;
    font-weight: 800;
    color: #10254d;
    margin: 0 0 4px;
}

.shopy-info-texto p {
    font-size: 11px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.shopy-info-extra {
    color: #e8a900;
}

.shopy-info-extra svg {
    width: 26px;
    height: 26px;
}

/* ==============================
   NAVEGACIÓN INFERIOR
============================== */

.shopy-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-around;

    background: #ffffff;
    border-top: 1px solid #e5eaf2;
    border-radius: 18px 18px 0 0;

    box-shadow: 0 -3px 18px rgba(0,0,0,0.04);

    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    box-sizing: content-box;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    text-decoration: none;
    color: #10254d;
    font-size: 10px;
    font-weight: 500;
}

.nav-icon {
    width: 42px;
    height: 30px;
    border-radius: 11px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: background 0.2s;
}

.nav-icon svg {
    width: 21px;
    height: 21px;
    stroke-width: 1.8;
}

/* SECCIÓN ACTIVA */

.nav-item.active .nav-icon {
    background: #10254d;
    color: #ffffff;
}

.nav-item.active {
    font-weight: 700;
}

/* ESPACIO PARA NO TAPAR CONTENIDO */

body {
    padding-bottom: calc(85px + env(safe-area-inset-bottom));
}

/* COMPUTADORAS */

@media (min-width: 768px) {

    .shopy-info {
        padding: 20px 25px;
    }

    .shopy-info-texto h3 {
        font-size: 17px;
    }

    .shopy-info-texto p {
        font-size: 13px;
    }

    .shopy-bottom-nav {
        display: none;
    }

    body {
        padding-bottom: 0;
    }
}

/* TELÉFONOS */

@media (max-width: 767px) {

    .shopy-info {
        margin: 12px 8px 20px;
        padding: 12px;
    }

    .shopy-info-icon svg {
        width: 26px;
        height: 26px;
    }

    .shopy-info-texto h3 {
        font-size: 12px;
    }

    .shopy-info-texto p {
        font-size: 10px;
    }
}
