
/* =====================================================
   IT GIRL USA — CATÁLOGO DE MARCAS
   Archivo: css/catalogo.css
   Diseño editorial | Responsive | Mobile first
===================================================== */


/* =====================================================
   1. VARIABLES Y BASE
===================================================== */

.catalogo {
    --fondo: #faf8f5;
    --crema: #f0e9e0;
    --beige: #e5d7ca;
    --nude: #d4bfae;
    --texto: #302923;
    --texto-suave: #81766c;
    --borde: #e8e0d7;
    --blanco: #ffffff;

    width: 100%;
    color: var(--texto);
    background: var(--fondo);
    overflow: hidden;
}

.catalogo,
.catalogo * {
    box-sizing: border-box;
}

.catalogo img {
    display: block;
    max-width: 100%;
}

.catalogo a {
    color: inherit;
    text-decoration: none;
}

.catalogo button,
.catalogo select {
    font: inherit;
}

.catalogo section {
    scroll-margin-top: 90px;
}


/* =====================================================
   2. HERO DE LA MARCA
===================================================== */

.marca-hero {
    position: relative;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    width: min(1440px, calc(100% - 64px));
    min-height: 480px;
    margin: 24px auto 0;
    background: var(--crema);
    overflow: hidden;
}

.marca-hero-contenido {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(32px, 5vw, 76px);
}

.marca-eyebrow,
.catalogo-eyebrow {
    display: block;
    margin-bottom: 18px;
    color: var(--texto-suave);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    line-height: 1.6;
}

.marca-hero h1 {
    max-width: 100%;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 4.2vw, 64px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
}

.marca-hero-contenido > p {
    max-width: 350px;
    margin: 22px 0 28px;
    color: var(--texto-suave);
    font-size: 14px;
    line-height: 1.9;
}

.marca-hero-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--texto);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.13em;
    transition: gap 0.25s ease;
}

.marca-hero-boton:hover {
    gap: 29px;
}

.marca-hero-boton span {
    font-size: 17px;
}

.marca-hero-imagen {
    position: relative;
    min-width: 0;
    min-height: 480px;
    background: var(--beige);
}

.marca-hero-imagen img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/*
.marca-hero-etiqueta {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    padding: 10px 14px;
    color: var(--texto);
    background: rgba(255, 255, 255, 0.88);
    font-size: 9px;
    letter-spacing: 0.15em;
}*/


/* =====================================================
   3. ENCABEZADO DE PRODUCTOS
===================================================== */

.catalogo-productos {
    width: min(1320px, calc(100% - 64px));
    margin: 0 auto;
    padding: 85px 0 95px;
}

.catalogo-encabezado {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.catalogo-encabezado .catalogo-eyebrow {
    margin-bottom: 12px;
}

.catalogo-encabezado h2,
.otras-marcas-encabezado h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 400;
    line-height: 1.2;
}

.catalogo-encabezado h2 span {
    color: var(--texto-suave);
}

.catalogo-encabezado p {
    margin: 12px 0 0;
    color: var(--texto-suave);
    font-size: 13px;
    line-height: 1.7;
}


/* =====================================================
   4. FILTROS Y ORDENAMIENTO
===================================================== */

.catalogo-controles {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.control-grupo {
    display: block;
    min-width: 0;
}

.catalogo-controles select {
    width: 100%;
    min-width: 190px;
    min-height: 44px;
    padding: 11px 34px 11px 13px;
    border: 1px solid var(--borde);
    border-radius: 0;
    outline: none;
    color: var(--texto);
    background-color: var(--blanco);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

.catalogo-controles select:focus-visible {
    outline: 2px solid var(--nude);
    outline-offset: 3px;
}

.catalogo .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* =====================================================
   5. CUADRÍCULA DE PRODUCTOS
===================================================== */

.productos-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px 22px;
}

.productos-grid:empty {
    display: none;
}

.producto-card {
    min-width: 0;
    background: transparent;
}

.producto-card-imagen {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f0ebe5;
}

.producto-card-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.producto-card:hover .producto-card-imagen img {
    transform: scale(1.035);
}

.producto-card h3 {
    margin: 14px 0 5px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.producto-card p {
    margin: 0 0 8px;
    color: var(--texto-suave);
    font-size: 11px;
    line-height: 1.6;
}

.producto-precio {
    color: var(--texto);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}


/* =====================================================
   6. MENSAJES DE CARGA Y CATÁLOGO VACÍO
===================================================== */

.catalogo-mensaje {
    margin: 30px 0 0;
    padding: 24px;
    color: var(--texto-suave);
    background: var(--blanco);
    text-align: center;
    font-size: 13px;
    line-height: 1.8;
}

.catalogo-mensaje[hidden] {
    display: none;
}


/* =====================================================
   7. BANNER EDITORIAL
===================================================== */

.catalogo-editorial {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    width: min(1320px, calc(100% - 64px));
    min-height: 390px;
    margin: 0 auto 95px;
    background: #eee6dc;
}

.editorial-contenido {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(30px, 5vw, 70px);
}

.editorial-contenido > span {
    margin-bottom: 20px;
    color: var(--texto-suave);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.editorial-contenido h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3vw, 43px);
    font-weight: 400;
    line-height: 1.2;
}

.editorial-contenido p {
    max-width: 390px;
    margin: 20px 0 26px;
    color: var(--texto-suave);
    font-size: 13px;
    line-height: 1.9;
}

.editorial-contenido a {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--texto);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.editorial-contenido a span {
    font-size: 16px;
}

.editorial-imagen {
    position: relative;
    min-width: 0;
    min-height: 390px;
    overflow: hidden;
    background: var(--beige);
}

.editorial-imagen img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =====================================================
   8. EXPLORA OTRAS MARCAS
===================================================== */

.otras-marcas {
    width: min(1320px, calc(100% - 64px));
    margin: 0 auto;
    padding: 0 0 100px;
}

.otras-marcas-encabezado {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.otras-marcas-encabezado .catalogo-eyebrow {
    margin-bottom: 12px;
}

.otras-marcas-encabezado > p {
    margin: 0 0 5px;
    color: var(--texto-suave);
    font-size: 12px;
    line-height: 1.8;
}

.otras-marcas-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.otra-marca-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 150px;
    padding: 24px;
    border: 1px solid var(--borde);
    color: var(--texto);
    background: var(--crema);
    text-align: center;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.otra-marca-card:hover {
    background: #e8dbce;
    transform: translateY(-3px);
}

.otra-marca-card h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(18px, 2vw, 25px);
    font-weight: 400;
    line-height: 1.4;
    overflow-wrap: anywhere;
}


/* =====================================================
   9. TABLET
===================================================== */

@media (max-width: 1024px) {

    .marca-hero {
        grid-template-columns: 0.9fr 1.1fr;
        min-height: 400px;
        width: calc(100% - 40px);
    }

    .marca-hero-contenido {
        padding: 32px;
    }

    .marca-hero-imagen {
        min-height: 400px;
    }

    .catalogo-productos,
    .catalogo-editorial,
    .otras-marcas {
        width: calc(100% - 40px);
    }

    .catalogo-productos {
        padding: 65px 0 75px;
    }

    .productos-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 30px 18px;
    }

    .catalogo-editorial {
        min-height: 340px;
        margin-bottom: 75px;
    }

    .editorial-imagen {
        min-height: 340px;
    }

    .otras-marcas {
        padding-bottom: 75px;
    }
}


/* =====================================================
   10. MÓVIL
===================================================== */

@media (max-width: 640px) {

    /* Hero */

    .marca-hero {
        grid-template-columns: 1fr;
        width: 100%;
        min-height: 0;
        margin-top: 0;
    }

    .marca-hero-imagen {
        grid-row: 1;
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .marca-hero-contenido {
        grid-row: 2;
        padding: 30px 24px 36px;
    }

    .marca-eyebrow {
        margin-bottom: 13px;
        font-size: 9px;
    }

    .marca-hero h1 {
        font-size: clamp(32px, 9vw, 46px);
    }

    .marca-hero-contenido > p {
        margin: 14px 0 20px;
        font-size: 12px;
    }

    .marca-hero-etiqueta {
        top: 12px;
        right: 12px;
        bottom: auto;
        padding: 8px 10px;
        font-size: 8px;
    }

    /* Ancho de las secciones */

    .catalogo-productos,
    .catalogo-editorial,
    .otras-marcas {
        width: calc(100% - 32px);
    }

    .catalogo-productos {
        padding: 50px 0 58px;
    }

    /* Título de productos */

    .catalogo-encabezado {
        margin-bottom: 23px;
    }

    .catalogo-encabezado h2,
    .otras-marcas-encabezado h2 {
        font-size: 28px;
    }

    .catalogo-encabezado p {
        font-size: 12px;
    }

    /* Filtros */

    .catalogo-controles {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
        margin-bottom: 22px;
    }

    .catalogo-controles select {
        min-width: 0;
        min-height: 42px;
        padding: 10px 7px;
        font-size: 10px;
    }

    /* Productos */

    .productos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 12px;
    }

    .producto-card h3 {
        margin-top: 10px;
        font-size: 12px;
    }

    .producto-card p {
        font-size: 10px;
    }

    .producto-precio {
        font-size: 12px;
    }

    /* Banner editorial */

    .catalogo-editorial {
        grid-template-columns: 1fr;
        min-height: 0;
        margin-bottom: 58px;
    }

    .editorial-contenido {
        padding: 30px 24px 34px;
    }

    .editorial-contenido h2 {
        font-size: 31px;
    }

    .editorial-contenido p {
        margin: 16px 0 22px;
        font-size: 12px;
    }

    .editorial-imagen {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    /* Otras marcas */

    .otras-marcas-encabezado {
        display: block;
        margin-bottom: 22px;
    }

    .otras-marcas-encabezado > p {
        margin-top: 12px;
    }

    .otras-marcas-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .otra-marca-card {
        min-height: 105px;
        padding: 16px 10px;
    }

    .otra-marca-card h3 {
        font-size: 17px;
    }

    .otras-marcas {
        padding-bottom: 58px;
    }
}


/* =====================================================
   11. MÓVILES MUY PEQUEÑOS
===================================================== */

@media (max-width: 360px) {

    .catalogo-productos,
    .catalogo-editorial,
    .otras-marcas {
        width: calc(100% - 24px);
    }

    .marca-hero h1 {
        font-size: 30px;
    }

    .catalogo-controles {
        grid-template-columns: 1fr;
    }

    .catalogo-controles select {
        width: 100%;
        font-size: 12px;
    }

    .productos-grid {
        gap: 22px 10px;
    }

    .producto-card h3 {
        font-size: 11px;
    }

    .otra-marca-card h3 {
        font-size: 15px;
    }
}


/* =====================================================
   12. ACCESIBILIDAD Y MOVIMIENTO REDUCIDO
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .catalogo *,
    .catalogo *::before,
    .catalogo *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

