/* Variables de colores Pokémon */
:root {
    --pokeball-red: #ff0000;
    --pokeball-white: #ffffff;
    --pokeball-black: #222224;
    --pikachu-yellow: #fbd200;
    --squirtle-blue: #0a7abc;
    --bulbasaur-green: #3e9709;
    --charmander-orange: #ff6b00;
    --pokedex-red: #e61515;
    --team-rocket-purple: #3a0088;
    --grass-type: #78c850;
    --water-type: #6890f0;
    --fire-type: #f08030;
    --electric-type: #f8d030;
    --psychic-type: #f85888;
    --fighting-type: #c03028;
    --light-color: #f8f8f8;
    --grey-color: #eaeaea;
    --light-grey: #f5f5f5;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    --card-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    --pokeball-shadow: 0 5px 15px rgba(230, 21, 21, 0.4);
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Flexo-Medium', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--pokeball-black);
    background-color: var(--light-color);
    background-image: url('images/pokeball-pattern.png');
    background-attachment: fixed;
    background-size: 100px;
    background-opacity: 0.05;
}

a {
    text-decoration: none;
    color: var(--squirtle-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--pokedex-red);
}

/* Barra de navegación */
header {
    background-color: var(--pokedex-red);
    box-shadow: var(--pokeball-shadow);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 5px solid var(--pokeball-black);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    max-height: 45px;
    margin-right: 10px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.logo-container h1 {
    color: var(--pokeball-white);
    font-weight: 800;
    text-shadow: 2px 2px 0px var(--pokeball-black);
    font-size: 1.8rem;
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn:hover::after {
    left: 100%;
}

.login-btn {
    background-color: var(--water-type);
    color: white;
    border: 2px solid var(--water-type);
}

.login-btn:hover {
    background-color: var(--squirtle-blue);
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
}

.register-btn {
    background-color: var(--pikachu-yellow);
    border: 2px solid var(--pikachu-yellow);
    color: var(--pokeball-black);
}

.register-btn:hover {
    background-color: var(--electric-type);
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
}

/* Sección de héroe */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/pokemon-cards-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: repeating-linear-gradient(
        45deg,
        var(--pokedex-red),
        var(--pokedex-red) 15px,
        var(--pokeball-black) 15px,
        var(--pokeball-black) 30px
    );
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: repeating-linear-gradient(
        45deg,
        var(--pokedex-red),
        var(--pokedex-red) 15px,
        var(--pokeball-black) 15px,
        var(--pokeball-black) 30px
    );
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 0 var(--pokeball-black);
    font-weight: 800;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 3px var(--pokeball-black);
}

.cta-btn {
    background-color: var(--pikachu-yellow);
    color: var(--pokeball-black);
    font-size: 1.2rem;
    padding: 15px 35px;
    border: 3px solid var(--pokeball-black);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    font-weight: 800;
}

.cta-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Sección de características */
.features {
    padding: 70px 5%;
    text-align: center;
    background-color: var(--light-color);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: var(--pokeball-white);
    border: 8px solid var(--pokeball-black);
    border-radius: 50%;
    box-shadow: 0 0 0 8px var(--pokeball-red), var(--pokeball-shadow);
    z-index: 10;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--pokedex-red);
    text-transform: uppercase;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 80%;
    height: 4px;
    background-color: var(--pokedex-red);
    border-radius: 2px;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: white;
    border-radius: 15px;
    padding: 40px 25px;
    box-shadow: var(--card-shadow);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 5px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card:nth-child(1) {
    border-color: var(--fire-type);
}

.feature-card:nth-child(2) {
    border-color: var(--water-type);
}

.feature-card:nth-child(3) {
    border-color: var(--grass-type);
}

.feature-card:nth-child(4) {
    border-color: var(--electric-type);
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.03);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.feature-card:nth-child(1) .feature-icon {
    color: var(--fire-type);
}

.feature-card:nth-child(2) .feature-icon {
    color: var(--water-type);
}

.feature-card:nth-child(3) .feature-icon {
    color: var(--grass-type);
}

.feature-card:nth-child(4) .feature-icon {
    color: var(--electric-type);
}

.feature-icon::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: currentColor;
    opacity: 0.15;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--pokeball-black);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Sección comunidad */
.community {
    background-color: var(--team-rocket-purple);
    background-image: linear-gradient(135deg, var(--team-rocket-purple) 0%, var(--psychic-type) 100%);
    padding: 70px 5%;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.community::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-image: url('images/pokeball-white.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.05;
    top: -100px;
    left: -100px;
}

.community::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-image: url('images/pokeball-white.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.05;
    bottom: -100px;
    right: -100px;
}

.community h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
    font-weight: 800;
}

.community p {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
    opacity: 0.9;
}

.stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    min-width: 200px;
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-10px);
}

.stat::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    border-radius: 20px;
    pointer-events: none;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--pikachu-yellow);
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 1.2rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    background-color: var(--pokeball-black);
    color: white;
    padding: 50px 5% 40px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, 
        var(--fire-type) 0%, 
        var(--fire-type) 25%, 
        var(--water-type) 25%, 
        var(--water-type) 50%, 
        var(--grass-type) 50%, 
        var(--grass-type) 75%, 
        var(--electric-type) 75%, 
        var(--electric-type) 100%);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-img {
    max-height: 40px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--pikachu-yellow);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--pikachu-yellow);
}

.footer-links a:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-icon {
    color: white;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.social-icon:hover {
    color: var(--pokeball-black);
    background-color: var(--pikachu-yellow);
    transform: translateY(-5px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

/* Responsivo */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        align-items: center;
        margin-bottom: 20px;
    }

    .footer-links {
        margin-bottom: 20px;
        justify-content: center;
    }

    .feature-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
    
    .stats {
        flex-direction: column;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .stat {
        width: 100%;
    }
}

@media (max-width: 576px) {
    header {
        flex-direction: column;
        gap: 20px;
        padding: 15px 5% 20px;
    }

    .logo-container h1 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 70px 15px;
    }

    .auth-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .features h2,
    .community h2 {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .cta-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Animaciones adicionales y efectos Pokémon */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-5deg); }
    40% { transform: rotate(5deg); }
    60% { transform: rotate(-3deg); }
    80% { transform: rotate(3deg); }
}

/* Elemento Pokeball decorativo */
.pokeball-element {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(to bottom, var(--pokeball-red) 0%, var(--pokeball-red) 48%, var(--pokeball-black) 48%, var(--pokeball-black) 52%, var(--pokeball-white) 52%, var(--pokeball-white) 100%);
    border-radius: 50%;
    border: 3px solid var(--pokeball-black);
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.pokeball-element::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--pokeball-white);
    border: 3px solid var(--pokeball-black);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* Efecto hover Pokémon en tarjetas */
.pokemon-card-effect {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.pokemon-card-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transition: all 0.6s ease;
}

.pokemon-card-effect:hover::before {
    left: 100%;
}

/* Efecto tipo fuego */
.fire-effect {
    position: relative;
    overflow: hidden;
}

.fire-effect::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(45deg, var(--fire-type), transparent 70%);
    animation: flicker 2s infinite alternate;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fire-effect:hover::after {
    opacity: 1;
}

@keyframes flicker {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(1.1); }
}

/* Fondo Pokémon */
.pokemon-grid-bg {
    position: relative;
}

.pokemon-grid-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px),
        linear-gradient(to right, rgba(255, 255, 255, 0.8) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.05;
    pointer-events: none;
}

/* Tipografía Pokémon-ish */
h1, h2, h3, .btn {
    letter-spacing: 0.5px;
}hero {
        padding: 60px 15px;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
    }

    .auth-buttons {
        width: 100%;
        justify-content: center;
    }
}