@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

*, *::before, *::after { box-sizing: border-box; }

body { background-color: #17171b; font-family: 'Roboto', sans-serif; text-align: center; margin: 0; display: flex; flex-direction: column; align-items: center; min-height: 100vh; }
main { width: 100%; display: flex; flex-direction: column; align-items: center; padding-bottom: 20px; }
h1, h2 { font-family: 'Roboto', sans-serif; text-transform: uppercase; text-align: center; color: #fffffff9; margin-top: 0; }
h1 { font-weight: 700; font-size: 2.4rem; margin-bottom: 0.5rem; }
h2 { font-family: 'Lato', sans-serif; font-weight: bold; font-size: 1rem; line-height: 150%; letter-spacing: 2px; margin-bottom: 0.5rem; }
h3 { color: black; }

.glass-effect-card { background-color: #111111; color: #fff; border-radius: 1rem; border: 1px solid gray; box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
.container { padding: 38px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; max-width: 800px; width: 90%; margin: 40px 0 20px; }
.secondary-card { padding: 20px; text-align: left; margin-bottom: 20px; max-width: 600px; width: 90%; }

.wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin: 0;
}

.button { border: none; padding: 12px 24px; border-radius: 24px; font-size: 0.8rem; letter-spacing: 2px; cursor: pointer; transition: all .3s ease; display: inline-block; color: #fffffff2; text-decoration: none; text-align: center; }
.button:hover { transform: scale(1.1); }

.download-button { background-color: #C5EBAA; color: black; }
.download-ads-button { background-color: #F6F193; color: black; }
.telegram-button { background-color: #0088cc; }
.discord-button { background-color: #5865F2; }

.category-card { text-align: center; margin-top: 20px; }
.category-card h3 { text-align: center; margin-bottom: 1rem; }
.category-buttons-container { flex-direction: row; flex-wrap: wrap; gap: 8px 12px; }
.category-button { padding: 0.35em 0.65em; font-size: 0.75em; line-height: 1; border-radius: 0.25rem; background-color: #20c997; color: white; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; margin: 0; flex-grow: 0; width: auto; }

.info-box { font-weight: bold; margin-top: 20px; color: white; text-transform: uppercase; letter-spacing: 2px; }

.image-box {
    width: 100%;
    max-width: 280px;
    height: 400px;
    border-radius: 12px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    background: #333;
    margin-bottom: 1.5rem; /* Espacio debajo de la imagen */
}

/* ========================================================== */
/* ===         CORRECCIÓN: Selector de Espaciado Directo    === */
/* ========================================================== */
.image-box + .button-container {
    margin-bottom: 1.5rem; /* Espacio debajo de los botones de descarga */
}

.image-box img { width: 100%; height: 100%; object-fit: cover; }

.stats-container { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; width: 100%; }
.stat-card { background-color: #17171b; border: 1px solid #444; border-radius: 0.75rem; padding: 0.75rem; display: flex; align-items: center; text-align: left; }
.stat-icon-wrapper { width: 32px; height: 32px; border-radius: 50%; display: flex; justify-content: center; align-items: center; flex-shrink: 0; margin-right: 0.5rem; }
.stat-icon { width: 16px !important; height: 16px !important; filter: invert(1); }
.likes-icon-bg { background-color: #7c3aed; }
.videos-icon-bg { background-color: #f59e0b; }
.photos-icon-bg { background-color: #ec4899; }
.posts-icon-bg { background-color: #10b981; }
.stat-info { display: flex; flex-direction: column; }
.stat-value { color: #ffffff; font-size: 1rem; font-weight: 700; line-height: 1; }
.stat-label { color: #a1a1aa; font-size: 0.7rem; margin-top: 0.25rem; }

.secondary-section { padding: 20px 0; margin-top: 20px; display: flex; flex-direction: column; align-items: center; width: 100%; }
.secondary-card h3 { color: #fff; }
.secondary-card p { color: #fff; }

@media (min-width: 769px) {
    .container .wrapper .button-container .button {
        flex-grow: 1;
        flex-basis: 0;
    }
}

@media (max-width: 768px) {
    .container { margin-top: 20px; padding: 20px 10px 15px; width: 95%; }
    .wrapper { max-width: 280px; width: 100%; margin: 0 auto; }
    
    .button-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .category-buttons-container {
        flex-direction: row;
    }

    .button { margin: 0; width: 100%; }
    h1 { font-size: 2rem; }
    h2 { font-size: 0.9rem; }
}