body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 40px 20px 20px;
}

header h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

header p {
    opacity: 0.85;
    margin-bottom: 10px;

}

.apps {
    max-width: 700px;
    /* antes 1100px */
    margin: 0 auto;
    padding: 40px 20px;
}

a {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 26px;
    border-radius: 22px;
    background: #4CAF50;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.card {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-6px);
}

.card img {
    width: 100%;
    display: block;
}

.card-content {
    padding: 20px;
}

.card-content h2 {
    margin: 0 0 20px;
    font-size: 1.3rem;
}

.card-content p {
    max-width: 640px;
    margin: 0 auto 20px;
}

.actions a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 20px;
    background: #4CAF50;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

/*------Lightbox-------*/
.baseLightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

/* =========================
   CONTADOR DE VISITAS 🐰
   ========================= */
.counter-box {
    margin-top: 18px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.30);
    border-radius: 12px;
    font-size: 0.8rem;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;

    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.counter-title {
    grid-column: 1 / -1;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.counter-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 10px;
    border-radius: 10px;
    text-align: center;
}

.counter-label {
    display: block;
    font-size: 0.7rem;
    opacity: 0.75;
    margin-bottom: 2px;
}

.counter-item b {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;

    font-size: 1.15rem;
    font-weight: 700;
    color: #4CAF50;
}


.counter-new {
    font-size: inherit;
    /* 👈 MISMO tamaño */
    font-weight: 500;
    color: #6ecbff;
    opacity: 0.9;
    white-space: nowrap;
}

.counter-new {
    font-weight: 400;
    opacity: 0.75;
}


/* Footer más apretado */
footer {
    margin-top: 20px;
    padding-bottom: 12px;
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 480px) {
    .counter-box {
        font-size: 0.75rem;
        max-width: 100%;
    }

    .counter-box b {
        font-size: 0.9rem;
    }
}

footer {
    margin-top: 25px;
    font-size: 0.8rem;
    opacity: 0.65;
}
/* Animaciones contador de visitas */
.counter-up {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        color: #6ecbff;
    }
    50% {
        transform: scale(1.15);
        color: #8be9fd;
    }
    100% {
        transform: scale(1);
    }
}
