* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Merriweather Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    overflow-x: hidden;
}

.masthead {
    position: relative;
    background-color: #6ab32d;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 10rem;
    padding-bottom: calc(10rem - 4.5rem);
    overflow: hidden;
}

.masthead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(106, 179, 45, 0.9) 0%, rgba(90, 150, 35, 0.9) 100%);
    z-index: 1;
}

.masthead .container {
    position: relative;
    z-index: 2;
}

#stars-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.logo-principal {
    max-width: 200px;
    width: 100%;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.sitio-internacional {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    font-weight: 400;
    text-align: center;
}

.countries-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.country-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
}

.country-link:hover {
    transform: translateY(-5px);
    text-decoration: none;
}

.country-link:focus,
.country-link:active {
    text-decoration: none;
    outline: none;
}

.country-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 220px;
    margin: 0 auto;
    text-align: center;
}

.country-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    transform: scale(1.08);
    background: rgba(255, 255, 255, 1);
}

.country-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 1rem;
    display: block;
}

.country-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #6ab32d;
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-family: 'Merriweather', serif;
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .masthead {
        padding-top: 3rem;
        padding-bottom: 3rem;
        height: auto !important;
        min-height: 100vh;
    }

    .logo-principal {
        max-width: 150px;
        margin-bottom: 1rem;
    }

    .sitio-internacional {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .country-card {
        padding: 1.5rem 1rem;
        margin: 0 auto;
        max-width: 240px;
    }

    .country-logo {
        width: 100px;
        height: 100px;
    }

    .country-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .logo-principal {
        max-width: 130px;
    }

    .sitio-internacional {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .countries-row {
        gap: 1rem;
    }

    .country-card {
        padding: 1.25rem 1rem;
        max-width: 160px;
    }

    .country-logo {
        width: 80px;
        height: 80px;
    }

    .country-name {
        font-size: 1rem;
    }
}
