body {
    background: #1B1A17;
    color: #E5E2DA;
    font-family: "Nunito", sans-serif;
    margin: 0;
}

h1, h2, h3 {
    font-family: "Cormorant Garamond", serif;
    color: #E5E2DA;
}

a { text-decoration: none; }

.placeholder {
    background: #2A2925;
    border: 1px solid #C8A042;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #B7B4AC;
    font-size: 14px;
    text-align: center;
    padding: 10px;
}

/* --- HERO --- */
.hero {
    text-align: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(200,160,66,0.4);
}

.hero-image {
    height: 420px;                 /* probá 380–480px para ajustar */
    background-image: url('../imagenes/hero.jpg');  /* ruta a tu imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(200,160,66,0.4);
    /*border-radius: 12px;             opcional, queda muy elegante */
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);  /* estilo museo */
    margin-bottom: 34px;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
    justify-content: center;   /*centra el logo + texto como grupo */
    /*text-align: left;          pero el texto sigue alineado a la izquierda */
}

img.logo{
    width: 130px;
    height: auto;
    border: 2px solid rgba(214,194,150,0.35); /* dorado suave */
    border-radius: 15px;
    padding: 6px;
    /*background: rgba(255,255,255,0.08);  baja el contraste del fondo blanco del logo */
    box-shadow: 0 0 6px rgba(214,194,150,0.4);
}

.hero-text h1 {
    margin-top: 0;
}


.subtitle {
    color: #B7B4AC;
    max-width: 700px;
    margin: 0 auto 20px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 10px 20px;
    background: #0D2214;
    color: #E5E2DA;
    border-radius: 4px;
}

/* Normalize .btn for <a> and <button> elements so they look/behave the same */
.btn, button.btn, input.btn {
    display: inline-block;
    text-align: center;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    box-shadow: none;
    line-height: normal;
}

.btn:focus {
    outline: 2px solid rgba(200,160,66,0.15);
    outline-offset: 2px;
}

/* Remove the default 'pressed' visual on native buttons */
button.btn:active, input.btn:active, .btn:active {
    transform: none;
    box-shadow: none;
}

.btn {
    transition: background-color 120ms ease, transform 80ms ease;
}

.btn:hover {
    filter: brightness(1.05);
}

.btn.secondary {
    background: #8A6E45;
}

/* --- PRESENTACIÓN --- */
.intro {
    max-width: 800px;
    margin: 60px auto;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);  /* estilo museo */
    padding: 10px;
}

/* --- CATEGORÍAS --- */
.categorias {
    max-width: 1100px;
    margin: 0 auto 80px;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: #3A3935;
    padding-bottom: 20px;
    border: 1px solid #C8A042;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 12px;
}

.card {
    background: #3A3935;
    padding-bottom: 0;
    border: 1px solid #C8A042;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card .card-image,
.card .img {
    height: 140px;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card .card-content {
    padding: 12px;
    text-align: left;
}

.card .card-title {
    margin: 0 0 6px 0;
    font-size: 1rem;
    color: #E5E2DA;
}

@media (max-width: 900px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .cards-grid { grid-template-columns: 1fr; }
    .card .card-image { height: 180px; }
}

/* --- PAGINACIÓN --- */
.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 24px; /* separar de las imágenes */
    margin-bottom: 24px; /* separar del botón inferior */
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    background: #0D2214; /* mismo verde que .btn */
    color: #E5E2DA;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.15);
}

.pagination a.active {
    background: #14361f; /* un poco más claro/oscuro para destacar */
    font-weight: 600;
    border: 1px solid #C8A042; /* mismo color de borde que las cards */
}

.pagination span {
    color: #B7B4AC;
}


/* --- DESTACADO --- */
.destacado {
    max-width: 1100px;
    margin: 0 auto 80px;
}

.destacado-box {
    display: flex;
    gap: 40px;
    align-items: center;
}

.destacado .img {
    width: 60%;
    height: 300px;
}

.destacado .info {
    width: 40%;
}


/* --- IMÁGENES DE CADA CATEGORÍA --- */
.img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.cat-insignias {
    background-image: url('../imagenes/insignias_a2.jpg');
}

.cat-publicaciones {
    background-image: url('../imagenes/publicaciones_a2.jpg');
}

.cat-panuelos {
    background-image: url('../imagenes/panuelos_a1.jpg');
}

.cat-objetos {
    background-image: url('../imagenes/objetos_a2.jpg');
}

.cat-prendas {
    background-image: url('../imagenes/prendas_a1.jpg');
}

.cat-estampillas {
    background-image: url('../imagenes/estampillas_a2.jpg');
}


/* --- FOOTER --- */
.footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(200,160,66,0.4);
    color: #B7B4AC;
    font-size: 16px;
    background: #14130F;
}

.footer-small {
    font-size: 13px;
    margin-top: 6px;
    color: #8F8C85;
}

/* --- IMAGE MODAL / LIGHTBOX --- */
.image-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.75);
    z-index: 99999;
    padding: 20px;
}
.image-modal.open { display: flex; }
.image-modal-content {
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.image-modal-content img {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    border: 6px solid rgba(255,255,255,0.03);
    background: #fff;
}
.image-modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #0D2214;
    color: #E5E2DA;
    border: 1px solid rgba(0,0,0,0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}
.clickable-image { cursor: zoom-in; display:block; }
.image-modal img { cursor: zoom-out; }

/* Constrain item main image within its container to avoid layout shifts */
#item-main-img { max-width: 100%; width: 100%; height: auto; display:block; }

