* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --amarillo: #FFDB00;
    --negro: #1a1a1a;
    --gris-texto: #2D2D2D;
    --gris-claro: #f5f5f5;
    --fondo-beige: #f0ede6;
}

body {
    font-family: 'Robot', sans-serif;
    color: var(--negro);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #fff;
}

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

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.navbar-hidden {
    transform: translateY(-100%);
}

.nav-top-bar {
    display: none;
    background: #2D2D2D;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-rd-desktop {
    display: block;
}

.logo-rd-mobile {
    display: none;
}

.logo {
    height: 40px;
    width: auto;
}

.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--amarillo);
    color: var(--negro);
    padding: 10px 24px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 200, 0, 0.3);
}

.btn-pill svg {
    width: 20px;
    height: 20px;
}

.btn-text-short {
    display: none;
}

/* ── Collection layout ─────────────────────────────────────────── */

/* Banner */
.collection-banner {
    width: 100%;
    line-height: 0;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Intro text */
.collection-intro {
    text-align: center;
    padding: 40px 40px 28px;
    background: #fff;
}

.collection-title {
    font-weight: 300;
    font-style: Light;
    font-size: 42px;
    line-height: 58px;
    letter-spacing: 0px;
    text-align: center;
    vertical-align: middle;
}

.collection-title strong {
    font-weight: 900;
}

.collection-subtitle {
    font-weight: 400;
    font-size: 18px;
    line-height: 30px;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Image groups */
.collection-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 30px;
}

.image-group {
    display: grid;
    gap: 4px;
}

.image-group.group-3 {
    grid-template-columns: repeat(3, 1fr);
}

.image-group.group-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Cards */
.collection-card {
    position: relative;
    overflow: hidden;
    line-height: 0;
    padding: 5px;
}

.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}


/* .image-group.group-2 .collection-card {
    max-height: 70vh;
}

.image-group.group-2 .collection-card img {
    height: 100%;
    max-height: 70vh;
    object-fit: cover;
    object-position: top center;
} */


.collection-card:hover img {
    transform: scale(1.03);
}

/* Error */
.error-msg {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #888;
}

.footer {
    background: #1a1a1a;
    color: white;
    padding: 15px 60px;
}

.footer-content {
    margin: 0 auto;
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.footer-label {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
    line-height: 1.5;
}

.footer-tiendas {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-tienda {
    display: flex;
    gap: 8px;
    align-items: baseline;
}

.footer-tienda-nombre {
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.footer-tienda-telefono {
    font-size: 15px;
    color: #ccc;
}

.footer-center {
    display: flex;
    justify-content: center;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-iconos {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .collection-intro {
        padding: 28px 20px 20px;
    }

    .collection-title {
        font-size: 20px;
    }

    .collection-subtitle {
        font-size: 13px;
    }

    .image-group.group-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .image-group.group-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-top-bar {
        display: flex;
    }

    .logo-rd-desktop {
        display: none;
    }

    .logo-rd-mobile {
        display: block;
        height: 36px;
        filter: none;
        max-width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: left;
        align-items: flex-start;
    }

    .footer {
        padding: 30px 20px;
    }

    .footer-left,
    .footer-right,
    .footer-center {
        width: 100%;
        text-align: left;
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .footer-tiendas {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .footer-tienda {
        justify-content: flex-start;
    }

    .footer-iconos {
        justify-content: flex-start;
    }

    .btn-text-full {
        display: none;
    }

    .btn-text-short {
        display: inline;
    }

    .nav-container {
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .collection-title {
        font-size: 17px;
    }

    .collection-subtitle {
        font-size: 12px;
    }
}
/* Grid base */
.collection-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.image-group {
    display: grid;
    gap: 20px;
}

.group-2 {
    grid-template-columns: repeat(2, 1fr);
}

.group-3 {
    grid-template-columns: repeat(3, 1fr);
}

.collection-card {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.collection-card:hover {
    transform: scale(1.02);
}

.collection-card a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.collection-banner {
    width: 100%;
    margin-bottom: 20px;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .group-2, .group-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
    }
    
    .collection-grid {
        padding: 5px;
        gap: 0px;
    }

    .collection-card img {
        height: 200px;
    }
}

@media (min-width: 769px) {
    .group-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}