/* Variables */
:root {
    --color-blue-50: #eff6ff;
    --color-blue-100: #dbeafe;
    --color-blue-200: #bfdbfe;
    --color-blue-300: #93c5fd;
    --color-blue-400: #60a5fa;
    --color-blue-500: #3b82f6;
    --color-blue-600: #2563eb;
    --color-blue-700: #1d4ed8;
    --color-blue-800: #1e40af;
    --color-blue-900: #1e3a8a;

    --color-green-50: #f0fdf4;
    --color-green-100: #dcfce7;
    --color-green-500: #22c55e;
    --color-green-600: #16a34a;
    --color-green-700: #15803d;

    --color-yellow-50: #fefce8;
    --color-yellow-100: #fef9c3;
    --color-yellow-400: #facc15;
    --color-yellow-500: #eab308;
    --color-yellow-700: #a16207;

    --color-red-50: #fef2f2;
    --color-red-100: #fee2e2;
    --color-red-500: #ef4444;
    --color-red-600: #dc2626;
    --color-red-700: #b91c1c;

    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --radius-sm: 0.125rem;
    --radius: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-full: 9999px;
}

/* Reset y estilos base */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, "Geist", sans-serif,
        "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-gray-800);
    background-color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Contenedor principal */
.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
    border-bottom: 1px solid var(--color-blue-100);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--color-blue-600);
    width: 1.5rem;
    height: 1.5rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-blue-900);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-blue-700);
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--color-blue-800);
    background-color: var(--color-blue-50);
}

.nav-link.active {
    color: var(--color-blue-900);
    background-color: var(--color-blue-100);
}

/* Botones */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.primary-button {
    background-color: var(--color-blue-600);
    color: white;
}

.primary-button:hover {
    background-color: var(--color-blue-700);
}

.outline-button {
    background-color: transparent;
    border: 1px solid var(--color-blue-300);
    color: var(--color-blue-700);
}

.outline-button:hover {
    background-color: var(--color-blue-50);
    color: var(--color-blue-800);
}

.button-icon {
    width: 1rem;
    height: 1rem;
}

/* Main content */
.main {
    flex: 1;
}

/* Hero section */
.hero-section {
    width: 100%;
    padding: 3rem 0 6rem;
    background: linear-gradient(to right, rgba(37, 99, 235, 0.2), rgba(59, 130, 246, 0.1), rgba(96, 165, 250, 0.05));
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-blue-900);
}

.hero-description {
    max-width: 600px;
    color: var(--color-blue-800);
    opacity: 0.8;
    font-size: 1.125rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.image {
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: 0 0.5rem 1rem var(--color-blue-200);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        flex-direction: row;
        align-items: center;
    }

    .hero-text {
        flex: 1;
    }

    .hero-image {
        flex: 1;
    }
}

/* Features section */
.features-section {
    width: 100%;
    padding: 6rem 0;
    background-color: white;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.section-description {
    max-width: 900px;
    margin: 0 auto;
    color: var(--color-gray-600);
    font-size: 1.125rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius);
    background-color: white;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: var(--radius-full);
    background-color: rgba(59, 130, 246, 0.1);
    margin-bottom: 1rem;
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--color-blue-600);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-gray-900);
}

.feature-description {
    color: var(--color-gray-600);
    margin-bottom: 1rem;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-blue-600);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.feature-link:hover {
    color: var(--color-blue-800);
}

.link-icon {
    width: 1rem;
    height: 1rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Games section */
.games-section {
    width: 100%;
    padding: 6rem 0;
    background-color: var(--color-blue-50);
}

.games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.game-card {
    background-color: white;
    border-radius: var(--radius);
    border: 1px solid var(--color-blue-200);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.game-header {
    padding: 1rem;
    border-bottom: 1px solid var(--color-blue-100);
}

.game-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-blue-800);
}

.game-content {
    padding: 1.5rem;
}

.game-image-container {
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.game-image {
    width: 100%;
    transition: transform 0.3s;
}

.game-card:hover .game-image {
    transform: scale(1.05);
}

.game-description {
    color: var(--color-blue-700);
    opacity: 0.7;
}

.game-footer {
    padding: 1rem;
}

.section-footer {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* News section */
.news-section {
    width: 100%;
    padding: 6rem 0;
    background: linear-gradient(to bottom, white, var(--color-blue-50));
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-blue-600);
    color: white;
    border-radius: var(--radius);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.badge-icon {
    width: 1rem;
    height: 1rem;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.news-card {
    background-color: white;
    border-radius: var(--radius);
    border: 1px solid var(--color-blue-200);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.news-image-container {
    width: 100%;
    overflow: hidden;
}

.news-image {
    width: 100%;
    transition: transform 0.3s;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-header {
    padding: 1rem;
    border-bottom: 1px solid var(--color-blue-100);
}

.news-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-blue-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-content {
    padding: 1rem;
}

.news-description {
    color: var(--color-blue-700);
    opacity: 0.7;
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-footer {
    padding: 1rem;
    border-top: 1px solid var(--color-blue-100);
}

.news-link {
    color: var(--color-blue-600);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.news-link:hover {
    color: var(--color-blue-800);
    text-decoration: underline;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Footer */
.footer {
    width: 100%;
    border-top: 1px solid var(--color-blue-100);
    background: linear-gradient(to bottom, var(--color-blue-50), white);
    padding: 1.5rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon-small {
    color: var(--color-blue-600);
    width: 1.25rem;
    height: 1.25rem;
}

.footer-logo-text {
    font-weight: 600;
    color: var(--color-blue-900);
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--color-blue-700);
    opacity: 0.7;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--color-blue-600);
    transition: all 0.2s;
}

.footer-link:hover {
    color: var(--color-blue-800);
    text-decoration: underline;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title,
.hero-description,
.hero-buttons {
    animation: fadeIn 0.8s ease-out forwards;
}

.hero-description {
    animation-delay: 0.2s;
}

.hero-buttons {
    animation-delay: 0.4s;
}

.feature-card,
.game-card,
.news-card {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .header-container {
        padding: 0 0.5rem;
    }

    .nav {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.25rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-description {
        font-size: 1rem;
    }
}