* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f7f7;
    color: #222;
}


.container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}


/* =========================
   ENCABEZADO
   ========================= */

.site-header {
    padding: 50px 0 30px;
}


.site-header h1 {
    margin: 0 0 10px;
}


.site-header p {
    margin: 0;
    color: #666;
}


/* =========================
   COLECCIONES
   ========================= */

.collections-section {
    padding-bottom: 50px;
}


.section-heading {
    margin-bottom: 20px;
}


.section-heading h2 {
    margin: 0;
}


/* =========================
   GRID
   ========================= */

.collections-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(220px, 1fr)
    );
    gap: 20px;
}


/* =========================
   TARJETA
   ========================= */

.collection-card {
    display: block;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.collection-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}


.collection-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
}


.collection-card h3 {
    margin: 15px 0 8px;
}


.collection-card p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}


/* =========================
   ERROR
   ========================= */

.error-message {
    color: #b00020;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
}


/* =========================
   MÓVIL
   ========================= */

@media (max-width: 600px) {

    .site-header {
        padding: 30px 0 20px;
    }

    .container {
        width: min(
            100% - 24px,
            1200px
        );
    }

    .collections-grid {
        grid-template-columns: 1fr;
    }

}
