* {
    box-sizing: border-box;
}

:root {
    --bg-dark: #2C3E50;
}

html {
    font-size: 16px;
}

h1 {
    color: var(--bg-dark);
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

.menu {
    background-color: var(--bg-dark); 
    width: 100%;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
    position: sticky; 
    top: 0;
    z-index: 100;
}

.nav-links {
    display: flex;            
    justify-content: center;   
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(1rem, 5vw, 3.75rem);
    padding: 0 1rem;
}

.nav-links a {
    text-decoration: none;   
    color: #ffffff;           
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: clamp(1rem, 4vw, 2rem);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #3498DB;
}

footer {
    background-color: var(--bg-dark);
    text-align: center;
    /* padding: 2rem 1rem; */
    padding: 0.375rem 0;
    margin-top: 0;
    color: #ffffff; 
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.3;
}

/* Mobile devices (up to 480px) */
@media (max-width: 480px) {
    .nav-links {
        gap: 0.75rem;
    }
    
    .title-section {
        padding: 1rem;
    }
}

/* Tablets (481px to 768px) */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
}

/* Large screens (769px and above) */
@media (min-width: 769px) {
    .title-section {
        background-attachment: fixed;
    }
}

.slider-header {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    pointer-events: none;
}

.slider-container {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
}

.slide img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: white;
}

.main-title {
    text-align: center;
    font-size: 3.5rem;
    padding: 2rem 0;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .servers {
        grid-template-columns: 1fr;
    }

    .slider-button {
        padding: 0.5rem;
        font-size: 1rem;
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
}

.team-section {
    display: flex;
    gap: 0;
    max-width: 1200px;
    margin: 3rem auto;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.team-section-mexico, .team-section-brazil {
    background-color: #ffffff;
    padding: 2rem;
    flex: 1;
    border-left: 4px solid #667eea;
}

.team-section-brazil {
    border-left: 4px solid #764ba2;
}

.team-section h2 {
    color: #2C3E50;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.75rem;
}

.team-section h3 {
    color: #667eea;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.team-section p {
    color: #555;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .team-section {
        flex-direction: column;
        margin: 2rem 1rem;
    }

    .team-section-mexico,
    .team-section-brazil {
        border-left: none;
        border-top: 4px solid #667eea;
    }

    .team-section-brazil {
        border-top: 4px solid #764ba2;
    }
}

.contact {
    background-color: #ffffff;
    color: #2C3E50;
    padding: 3rem 2rem;
    margin: 3rem auto;
    border-radius: 0.5rem;
    max-width: 1000px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

.contact h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
    color: #2C3E50;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
}

.contact p {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #555;
}

.contact a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact a:hover {
    color: #764ba2;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem;
    }

    .contact h1 {
        font-size: 1.5rem;
    }

    .contact p {
        font-size: 0.95rem;
    }
}

/* 404 Error Page Styles */
.error-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    padding: 2rem;
    margin: 0;
}

.error-content {
    text-align: center;
    max-width: 600px;
    background-color: #ffffff;
    padding: 3rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

.error-code {
    font-size: 5rem;
    color: #667eea;
    margin: 0;
    font-weight: bold;
    line-height: 1;
}

.error-title {
    font-size: 2rem;
    color: #2C3E50;
    margin: 1rem 0 1.5rem 0;
    font-weight: 600;
}

.error-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
}

.btn-primary {
    background-color: #667eea;
    color: white;
}

.btn-primary:hover {
    background-color: #764ba2;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #2C3E50;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #e8e8e8;
    border-color: #667eea;
}

@media (max-width: 768px) {
    .error-container {
        min-height: calc(100vh - 100px);
        padding: 1rem;
    }

    .error-content {
        padding: 2rem 1.5rem;
    }

    .error-code {
        font-size: 3.5rem;
    }

    .error-title {
        font-size: 1.5rem;
    }

    .error-description,
    .error-message {
        font-size: 0.9rem;
    }

    .error-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}