/* Variables CSS para colores y tamaños */
:root {
    --primary-color: #ec451b;
    --secondary-color: #f8f32b;
    --dark-color: #1a1a1a;
    --light-color: #f5f5f5;
    --accent-color: #f3190a;
    --text-color: #333;
    --text-light: #fff;
    --card-bg: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Estructura principal */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: var(--primary-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--dark-color);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a:hover {
    color: var(--secondary-color);
}

nav a i {
    font-size: 1rem;
}

/* Sección Hero */
#nombre {
    height: 100vh;
    background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("img/01.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding-top: 70px;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--secondary-color);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.cta-button:hover {
    background-color: transparent;
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Sección Sobre Mí */
#soy {
    padding: 5rem 0;
    background-color: var(--light-color);
    position: relative;
}

.profile-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.profile-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.profile-text h2 span {
    color: var(--dark-color);
}

.profile-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Estilos para la sección "Sobre Mí" con foto */
.profile-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-photo {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.profile-photo:hover {
    transform: scale(1.02);
}

.my-photo {
    width: 100%;
    height: auto;
    display: block;
    border: 5px solid var(--primary-color);
    border-radius: var(--border-radius);
}

.profile-text {
    flex: 2;
    min-width: 300px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .profile-content {
        flex-direction: column;
    }
    
    .profile-photo {
        max-width: 100%;
    }
    
    .profile-text {
        width: 100%;
    }
}

.about-me p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.interests h4, .goals h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
}

.interests ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.interests li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
}

.interests i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.philosophy {
    font-style: italic;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    margin: 2rem 0;
}

.interactive-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.interactive-btn:hover {
    background-color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Sección Habilidades */
#habilidades {
    padding: 5rem 0;
    background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('img/skills.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
}

#habilidades h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

#habilidades h2 span {
    color: var(--secondary-color);
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-card {
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(243, 25, 10, 0.3);
    border-color: rgba(243, 25, 10, 0.3);
}

.skill-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(243, 25, 10, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.skill-icon i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.skill-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tags span {
    background-color: rgba(243, 25, 10, 0.3);
    color: var(--text-light);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Sección Juegos */
#juegos {
    padding: 5rem 0;
    background-color: var(--light-color);
}

#juegos h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

#juegos h2 span {
    color: var(--primary-color);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.game-card {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.game-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: var(--text-light);
    transform: translateY(100px);
    transition: var(--transition);
}

.game-card:hover .game-content {
    transform: translateY(0);
}

.game-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.game-details p {
    margin-bottom: 1rem;
    font-size: 1rem;
    opacity: 0;
    transition: var(--transition);
    transition-delay: 0.1s;
    max-height: 0;
    overflow: hidden;
}

.game-card:hover .game-details p {
    opacity: 1;
    max-height: 200px;
}

.game-rank {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-top: 1rem;
}

.game-rank i {
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    text-align: center;
}

.footer-brand .logo {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

.copyright p {
    margin-bottom: 0.5rem;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    header .container {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .skills-grid, .games-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .interests ul {
        grid-template-columns: 1fr;
    }
}