/* ================= RESET BÁSICO ================= */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100vw;
}

/* ================= HEADER ================= */
header {
    background-color: #2F4F4F;
    font-family: Arial, Helvetica, sans-serif;
    padding: 5px 20px;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ================= TIENDA CARD ================= */
.store-card {
    background-color: #fff;
    color: #000;
    border-radius: 5px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

/* Imagen de la tienda */
.store-card .store-link {
    position: relative;
    width: 100%;
    height: 155px;
    overflow: hidden;
    border-radius: 7px;
    margin-bottom: 10px;
    display: block;
}

.store-card .store-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 7px;
    transition: filter 0.3s ease; /* Para efecto gris al cerrar */
}

/* ================= BADGE ABIERTO/CERRADO ================= */
.store-card .status-badge {
    position: absolute;
    font-family: Arial, Helvetica, sans-serif;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-transform: uppercase;
    z-index: 10;
}

.store-card .status-badge::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.store-card .status-badge.open {
    background: #fff3cd;
    color: #fd7e14;
}

.store-card .status-badge.open::before {
    background: #ffc107;
}

.store-card .status-badge.closed {
    background: #e0e0e0;
    color: #000;
}

.store-card .status-badge.closed::before {
    background: #dc3545;
}

/* ================= IMAGEN GRIS CUANDO ESTÁ CERRADO ================= */
.store-card.closed .store-link img {
    filter: grayscale(70%);
}

/* Contenido de la tienda debajo de la imagen */
.store-card .store-content {
    text-align: left;
    width: 100%;
    padding: 0 5px;
}

.store-card .store-content h2 {
    font-size: 15px;
    margin-bottom: 5px;
    color: #030303;
    font-family: Arial, Helvetica, sans-serif;
}

.store-card .store-content p {
    font-size: 12px;
    margin-top: -2px;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

/* ================= FOOTER ================= */
footer {
    background-color: #2F4F4F;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 0.8rem;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .store-card .store-content h2 {
        font-size: 17px;
    }
    .store-card .store-content p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .store-card .store-content h2 {
        font-size: 17px;
    }
    .store-card .store-content p {
        font-size: 13px;
    }
}

/* ================= CONTADOR DE TIEMPO ================= */
.store-card .status-timer {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    z-index: 10;
}

/* ================= LOGO EN LA IMAGEN ================= */
.store-card .store-logo {
    position: absolute;
    bottom: 10px;
    right: 15px;
    width: 55px;
    height: 55px;
    z-index: 15;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.store-card .store-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ================= TEXTO PRÓXIMAMENTE ================= */
main p {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #2F4F4F;
    margin: 20px 0;
    font-family: Arial, Helvetica, sans-serif;
}
