/* Variables y Reset */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #f59e0b;
    --text-main: #1f2937;
    --text-light: #4b5563;
    --bg-main: #fafafa;      /* Menos blanco, más suave */
    --bg-alt: #f0fdf4;       /* Tono verdoso/azulado muy suave para secciones alternativas */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary-color: #3b82f6;
    --primary-hover: #60a5fa;
    --secondary-color: #fbbf24;
    --text-main: #f9fafb;
    --text-light: #d1d5db;
    --bg-main: #111827;
    --bg-alt: #1f2937;
    --glass-bg: rgba(31, 41, 55, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

/* Tipografía */
h1, h2, h3 {
    font-family: 'Nunito', sans-serif;
    color: var(--text-main);
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.2; }
h2 { font-size: 2.5rem; font-weight: 700; text-align: center; }
h3 { font-size: 1.5rem; font-weight: 700; }

p { margin-bottom: 1rem; }

/* Botones */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}
.btn-secondary:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Navegación */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.menu-toggle { display: none; }

/* Home / Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 2rem 2rem;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    overflow: hidden;
}

/* Animated Background Blobs */
.blob {
    position: absolute;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
    width: 400px; height: 400px;
    background: #93c5fd;
    border-radius: 50%;
    top: -100px; left: -100px;
}

.blob-2 {
    width: 300px; height: 300px;
    background: #fde047;
    border-radius: 50%;
    bottom: 10%; right: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    padding: 4rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Sections Generales */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bg-light {
    background-color: var(--bg-alt);
    max-width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Filtros Mapas */
.region-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-main);
    border-radius: 9999px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Grid de Ríos */
.rivers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

.river-card {
    padding: 0;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.river-thumbnail {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
}

.river-content {
    padding: 1.5rem;
}

.river-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.river-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.river-region {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: #dbeafe;
    color: var(--primary-hover);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.river-detail {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
.river-detail strong { color: var(--text-main); }

/* Video Rima */
.video-placeholder-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.video-card {
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.video-card:hover {
    transform: scale(1.02);
}

.play-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Área de Juegos */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.game-card {
    padding: 2.5rem;
    text-align: center;
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Tienda */
.store-banner {
    display: flex;
    padding: 4rem;
    text-align: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
    color: #1f2937; /* Force dark text regardless of theme */
    border-radius: 16px;
    margin-bottom: 2rem;
}
.store-banner h2, .store-banner p, .store-banner h3 {
    color: #1f2937;
}

.badge {
    background: #ef4444;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: #111827;
    color: #9ca3af;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-logo {
    height: 40px;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    margin: 0 1rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    h1 { font-size: 2.5rem; }
    .hero-content { padding: 2rem; }
    .hero-buttons { flex-direction: column; }
}
