
/* ===================================
   SHOPYDAS - CATEGORÍAS
=================================== */

.categorias-contenedor {
    max-width: 1150px;
    margin: 0 auto;
    padding: 30px 18px 75px;
}

/* PORTADA */

.categorias-hero {
    background: linear-gradient(135deg, #10254d, #23477e);
    border-radius: 20px;
    padding: 42px 25px;
    text-align: center;
    color: white;
    margin-bottom: 35px;
}

.categorias-hero-icono {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.12);
    border-radius: 18px;
    margin: 0 auto 18px;
}

.categorias-hero-icono svg {
    width: 30px;
    height: 30px;
    color: #f5b400;
}

.categorias-hero h1 {
    color: white;
    font-size: clamp(26px, 4vw, 36px);
    margin: 0 0 12px;
    font-weight: 800;
}

.categorias-hero p {
    color: #dce5f5;
    font-size: 13px;
    line-height: 1.7;
    max-width: 540px;
    margin: auto;
}

/* INTRODUCCIÓN */

.categorias-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}

.categorias-intro h2 {
    color: #10254d;
    font-size: 23px;
    margin: 0 0 8px;
}

.categorias-intro p {
    color: #64748b;
    font-size: 13px;
    margin: 0;
}

.categorias-total {
    background: #eaf0fa;
    color: #10254d;
    padding: 9px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* BUSCADOR */

.categorias-buscador {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 55px;
    padding: 0 17px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    margin-bottom: 27px;
}

.categorias-buscador:focus-within {
    border-color: #10254d;
}

.categorias-buscador svg {
    width: 20px;
    height: 20px;
    color: #94a3b8;
    flex-shrink: 0;
}

.categorias-buscador input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #1e293b;
    font-size: 14px;
}

/* GRID */

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 19px;
    margin-bottom: 35px;
}

.categoria-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
    background: white;
    border: 1px solid #e5eaf1;
    border-radius: 17px;
    padding: 27px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.categoria-card[hidden],
.categorias-sin-resultados[hidden] {
    display: none !important;
}

.categoria-card:hover {
    transform: translateY(-4px);
    border-color: #cad6e8;
    box-shadow: 0 10px 25px rgba(16,37,77,.07);
}

.categoria-card-icono {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 19px;
}

.categoria-card-icono svg {
    width: 32px;
    height: 32px;
}

.categoria-card-icono.rosa {
    background: #fff0f5;
    color: #db2777;
}

.categoria-card-icono.azul {
    background: #eaf1ff;
    color: #2563eb;
}

.categoria-card-icono.morado {
    background: #f2edff;
    color: #7c3aed;
}

.categoria-card-icono.amarillo {
    background: #fff6dc;
    color: #ca8a04;
}

.categoria-card-icono.verde {
    background: #e7f8ef;
    color: #16a34a;
}

.categoria-card-contenido h3 {
    color: #10254d;
    font-size: 18px;
    margin: 0 0 9px;
    font-weight: 800;
}

.categoria-card-contenido p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 17px;
}

.categoria-card-explorar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #10254d;
    font-size: 12px;
    font-weight: 800;
}

.categoria-card-explorar svg {
    width: 16px;
    height: 16px;
    transition: transform .2s;
}

.categoria-card:hover .categoria-card-explorar svg {
    transform: translateX(4px);
}

/* SIN RESULTADOS */

.categorias-sin-resultados {
    text-align: center;
    background: white;
    border: 1px solid #e5eaf1;
    border-radius: 15px;
    padding: 45px 20px;
    margin-bottom: 30px;
}

.categorias-sin-resultados > svg {
    width: 35px;
    height: 35px;
    color: #94a3b8;
}

.categorias-sin-resultados h3 {
    color: #10254d;
    font-size: 19px;
}

.categorias-sin-resultados p {
    color: #64748b;
    font-size: 13px;
}

/* CATÁLOGO COMPLETO */

.categorias-todos {
    text-align: center;
    background: #f0f4fa;
    border-radius: 17px;
    padding: 36px 22px;
    margin-bottom: 25px;
}

.categorias-todos-icono {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
    color: #10254d;
}

.categorias-todos-icono svg {
    width: 36px;
    height: 36px;
}

.categorias-todos h2 {
    color: #10254d;
    font-size: 22px;
    margin: 0 0 11px;
}

.categorias-todos p {
    color: #64748b;
    font-size: 13px;
    margin: 0 0 22px;
}

.categorias-todos a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #10254d;
    color: white;
    padding: 13px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.categorias-todos a svg {
    width: 17px;
    height: 17px;
}

/* AVISO */

.categorias-aviso {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff9e9;
    border: 1px solid #f4e3ad;
    border-radius: 13px;
    padding: 19px;
}

.categorias-aviso > svg {
    width: 22px;
    height: 22px;
    color: #b88600;
    flex-shrink: 0;
}

.categorias-aviso p {
    color: #6f5b29;
    font-size: 12px;
    line-height: 1.8;
    margin: 0;
}

/* TABLETS */

@media (max-width: 850px) {
    .categorias-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* CELULARES */

@media (max-width: 600px) {

    .categorias-contenedor {
        padding: 17px 12px 55px;
    }

    .categorias-hero {
        padding: 33px 20px;
        border-radius: 15px;
    }

    .categorias-hero h1 {
        font-size: 25px;
    }

    .categorias-hero p {
        font-size: 12px;
    }

    .categorias-intro h2 {
        font-size: 19px;
    }

    .categorias-intro p {
        font-size: 12px;
    }

    .categorias-total {
        font-size: 10px;
        padding: 8px 10px;
    }

    .categorias-buscador {
        height: 49px;
    }

    .categorias-buscador input {
        font-size: 12px;
    }

    .categorias-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .categoria-card {
        padding: 18px 13px;
        border-radius: 13px;
        gap: 15px;
    }

    .categoria-card-icono {
        width: 54px;
        height: 54px;
        border-radius: 15px;
    }

    .categoria-card-icono svg {
        width: 26px;
        height: 26px;
    }

    .categoria-card-contenido h3 {
        font-size: 14px;
    }

    .categoria-card-contenido p {
        font-size: 11px;
        line-height: 1.5;
    }

    .categoria-card-explorar {
        font-size: 10px;
    }

    .categorias-todos h2 {
        font-size: 19px;
    }
}

@media (max-width: 360px) {
    .categorias-grid {
        grid-template-columns: 1fr;
    }
}
