:root {
    --bg-top: #1A1A2E;
    --bg-mid: #16213E;
    --bg-base: #0F3460;
    --accent: #00d2ff; /* Cian brillante */
    --accent-glow: rgba(0, 210, 255, 0.5);
    --text-primary: #FFFFFF;
    --text-secondary: #A0AEC0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 50%, var(--bg-base) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Nav --- */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--accent);
}

.logo img {
    height: 40px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s;
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--accent);
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    backdrop-filter: blur(5px);
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: var(--glass-bg);
}

.btn-small {
    background: var(--accent);
    color: var(--bg-top);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
}

/* --- Hero --- */
.hero {
    padding: 12rem 10% 8rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid var(--accent-glow);
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(90deg, #00d2ff, #9d50bb);
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* --- Visuals --- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

.main-visual {
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

.app-preview {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.glow-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.3;
}

/* --- Game Modes --- */
.game-modes {
    padding: 4rem 10%;
    background: rgba(0, 0, 0, 0.2);
}

.modes-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.mode-item {
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.mode-item img {
    width: 100%;
    height: 450px; /* Mantener la proporción de pantalla de celular */
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
}

.mode-info {
    padding: 1.5rem;
    text-align: center;
}

.mode-item:hover {
    transform: scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.2);
}

/* --- Library --- */
.library {
    padding: 8rem 10%;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mazo-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s, border-color 0.3s;
}

.mazo-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.mazo-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 900;
    width: fit-content;
}

.mazo-badge.csv { background: rgba(255, 255, 255, 0.1); color: var(--text-secondary); }
.mazo-badge.zip { background: rgba(0, 210, 255, 0.2); color: var(--accent); }

.mazo-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.mazo-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-grow: 1;
}

.btn-download {
    text-decoration: none;
    padding: 0.8rem;
    border-radius: 10px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    transition: background 0.3s;
}

.btn-download:hover {
    background: var(--glass-bg);
}

.btn-download.primary {
    background: var(--accent);
    color: var(--bg-top);
    border: none;
}

.btn-download.primary:hover {
    background: #00b8e6;
}

/* --- Features --- */
.features {
    padding: 8rem 10%;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border-radius: 15px;
}

.feature-icon.blue { background: #00d2ff; box-shadow: 0 0 20px rgba(0, 210, 255, 0.4); }
.feature-icon.red { background: #ff4b2b; box-shadow: 0 0 20px rgba(255, 75, 43, 0.4); }
.feature-icon.green { background: #11998e; box-shadow: 0 0 20px rgba(17, 153, 142, 0.4); }

/* --- Footer --- */
footer {
    padding: 4rem 10%;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 10rem;
    }
    .hero-actions { justify-content: center; }
    h1 { font-size: 3rem; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
}
