/* Reset & basic typography */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: 'Courier New', Courier, monospace, Helvetica, sans-serif;
    line-height: 1.5;
    scroll-behavior: smooth;
    font-size: small;
}

body {
    background: #000000;
    color: #0d8b01;
    padding: 1rem;
}

/* Layout */
header {
    background: #222;
    color: #fff;
    padding: 1rem;
    text-align: center;
    text-shadow: 1px 3px 1px rgba(255, 251, 251, 0.5);
}

header h3 {
    margin-bottom: 0.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* Main content */
main {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

section {
    flex: 2 1 60%;
    background: #000000;   
    padding: 1rem;
    border-radius: 4px;
}


aside {
    position: relative;
    flex: 1 1 22%;
    min-width: 240px;
    max-width: 340px;
    padding: 1rem;
    border-radius: 4px;
    text-shadow: 1px 3px 1px rgba(247, 245, 245, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    min-height: 320px;
}

#sketch {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

aside > * {
    position: relative;
    z-index: 1;
}

aside nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

aside nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

#sketch,
#sketchB {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
}

aside nav a {
    color: #fff;
}

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(13, 139, 1, 0) 0%, rgba(13, 139, 1, 1) 50%, rgba(13, 139, 1, 0) 100%);
    background-size: 200% 100%;
    margin: 1.5rem 0;
    animation: hrGlow 3s linear infinite;
}

@keyframes hrGlow {
    0%, 100% {
        background-position: 0% 0;
    }

    50% {
        background-position: 100% 0;
    }
}

/* Make images inside asides scale responsively */
aside img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px 20px 20px 10px;
    margin-top: 0;
}

@media (min-width: 769px) {
    /* Mantener espacio extra en desktop, pero no en móvil */
    aside img {
        margin-top: 100px;
    }
}

/* Footer */
footer {
    background: #111;
    color: #eee;
    padding: 2.5rem 1rem 1.5rem;
    margin-top: 2rem;
}

.footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* Make the donate block more prominent */
.footer__donate {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.footer__donate ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0;
    margin: 0;
    justify-content: flex-start;
}

.footer__donate li {
    list-style: none;
}

/* Footer responsive */
@media (max-width: 600px) {
    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__donate ul {
        justify-content: center;
    }
}

.footer__donate a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.footer__donate a .icon {
    width: 200px;
    height: 200px;
    max-width: 200px;
    max-height: 200px;
    margin-right: 1rem;
    object-fit: contain;
}

.footer__info {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    text-align: left;
}

.footer__brand h4,
.footer__links h4,
.footer__info h4 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer__brand p,
.footer__info p {
    line-height: 1.5;
    color: #ccc;
}

.footer__links ul,
.footer__donate ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links li,
.footer__donate li {
    margin-bottom: 0.4rem;
}

.footer__links a,
.footer__donate a,
.footer__info a {
    color: #f0f0f0;
    text-decoration: none;
}

.footer__links a:hover,
.footer__donate a:hover,
.footer__info a:hover {
    text-decoration: underline;
}

.footer__donate a .icon {
    display: inline-block;
    width: 100px;
    height: 100px;
    margin-right: 1rem;
    vertical-align: middle;
    object-fit: contain;
    fill: currentColor;
}

.footer__hint {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: #bbb;
}
/* Responsive */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    main {
        flex-direction: column;
        gap: 1rem; /* menos separación en móvil */
    }

    aside,
    section {
        flex: 1 1 100%;
    }

    /* Permitir que el aside sea más alto solo si lo necesita, sin generar espacio extra */
    aside {
        min-width: 0;
        min-height: auto;
        padding-bottom: 1rem;
    }

    footer {
        padding: 1.5rem 1rem 1rem;
    }
}