@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@300&display=swap');

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

body,
button,
input {
    font-family: 'calsans-regular', Arial, sans-serif;
    font-weight: 300;
    background-color: #090909;
    color: #fff;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
header {
    background-color: #090909;
    color: #fff;
    padding: 0 10px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #fff;
    width: 100%;
    height: 80px;
}
h1 {
    font-size: 1.3em;
    font-family: "Geologica", sans-serif;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 10px 10px;
}
.header-content {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    height: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    height: 100%;
}

.header-left button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.header-left button img {
    height: 250px;
    width: auto;
    object-fit: contain;
}

/* BANNER */
.banner-promos {
    width: 100%;
    height: 100px;
    background-color: #090909;
    border-bottom: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-titulo {
    color: #fff;
    font-size: 3em;
    font-weight: 700;
    letter-spacing: 4px;
}

.btn-volver {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.0em;
    font-family: "Geologica", sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 8px 16px;
    text-decoration: underline;
    text-align: left;
}

.titulo-promos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    font-size: 1.0em;
    font-family: "Geologica", sans-serif;
    justify-content: space-around;
    gap: 30px;
}

/* GRILLA ESTILO INSTAGRAM */
.promos-lista {
    flex: 1 1 auto;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    padding: 0;
}

/* TARJETA — solo imagen clickeable */
.promo-card {
    position: relative;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    overflow: hidden;
    background: #1a1a1a;
}

.promo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.promo-card:hover img {
    opacity: 0.8;
}

/* MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay.open {
    display: flex;
}

.modal-card {
    background: #090909;
    border: 2px solid #fff;
    border-radius: 14px;
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #090909;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    font-family: 'calsans-regular', Arial, sans-serif;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #fff;
    color: #000;
}

.modal-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.link-directo {
    padding: 14px 16px;
    border-top: 2px solid #fff;
}

.link-directo button {
    width: 100%;
    background: #090909;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 8px;
    padding: 12px 0;
    font-family: 'calsans-regular', Arial, sans-serif;
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.link-directo button:hover {
    background-color: #fff;
    color: #000;
}

/* FOOTER */
footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    border-top: 2px solid #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    width: 100%;
}

footer .social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

footer button {
    font-family: 'calsans-regular', Arial, sans-serif;
    font-weight: 300;
    background: #222;
    color: #fff;
    border: 2px solid #fff;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s;
}

footer button:hover {
    background-color: #fff;
    color: #000;
}

footer p {
    font-size: 0.9em;
    color: #aaa;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-left button img {
        height: 250px;
    }

    .promos-lista {
        gap: 2px;
    }

    footer {
        padding: 24px 12px;
    }

    footer button {
        font-size: 0.95em;
        padding: 8px 14px;
    }
}