:root {
    --dark-blue: #050c26;
    --white: #ffffff;
    --intense-red: #e11142;
    --blue-black: #000c26;
    --almost-black: #050c27;
    --vibrant-red: #e91143;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-blue);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.main-nav {
    position: fixed;
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 12, 38, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo {
    margin: 0 1rem;
    padding: 0;
    height: 120px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    width: auto;
    padding: 0.5rem;
}

.nav-links {
    height: 120px;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--intense-red);
}

.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: var(--dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.hero-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url('../images/hero-bg.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    opacity: 0.4 !important;
    z-index: 1 !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(5, 12, 38, 0.9) 0%,
        rgba(5, 12, 38, 0.5) 50%,
        rgba(5, 12, 38, 0.9) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 3;
    padding: 2rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--intense-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        height: 120px;
        display: flex;
        align-items: center;
        padding: 0 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Separadores de secciones */
.section-divider {
    position: relative;
    height: 40px;
    overflow: hidden;
    background: var(--dark-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.section-divider::before {
    content: none;
}

.section-divider::after {
    content: '';
    display: flex;
    gap: 20px;
    height: 8px;
    width: 100%;
    max-width: 1200px;
    background-image: 
        linear-gradient(to right, 
            var(--intense-red) 8px, 
            transparent 8px, 
            transparent 28px
        );
    background-size: 36px 8px;
    background-repeat: repeat-x;
    opacity: 0.5;
}

/* Estilos para las secciones */
section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-blue);
    z-index: -1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--intense-red);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--white), var(--intense-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sección de Juegos */
.games-section {
    padding: 6rem 2rem;
    background-color: var(--blue-black);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: var(--almost-black);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
}

.game-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-info {
    padding: 1.5rem;
}

.game-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--intense-red);
    color: var(--white);
    border: none;
    border-radius: 4px;
    margin-top: 1rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.game-button:hover {
    transform: translateY(-2px);
    background-color: var(--vibrant-red);
}

/* Sección Sobre Nosotros */
.about-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--dark-blue), var(--blue-black));
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--white);
    border-left: 4px solid var(--intense-red);
    padding-left: 1.5rem;
}

.about-history h3,
.about-mission h3 {
    color: var(--intense-red);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.team-highlights {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.team-highlights h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--intense-red);
    font-size: 1.5rem;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--intense-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 2rem;
}

.value-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.value-card i {
    font-size: 2rem;
    color: var(--intense-red);
    margin-bottom: 1rem;
}

.value-card h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Actualización de estilos para la sección Sobre Mí */
.developer-profile {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.developer-profile h3 {
    color: var(--intense-red);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skill-category h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--intense-red);
    padding-bottom: 0.5rem;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    padding: 0.5rem 0;
    color: var(--white);
    opacity: 0.9;
}

.skill-category li::before {
    content: '▹';
    color: var(--intense-red);
    margin-right: 0.5rem;
}

/* Ajuste de responsividad */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Sección de Noticias */
.news-section {
    padding: 6rem 2rem;
    background-color: var(--blue-black);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background: var(--almost-black);
    border-radius: 8px;
    overflow: hidden;
}

/* Sección de Contacto */
.contact-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--blue-black), var(--dark-blue));
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 4px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-icon {
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--intense-red);
    transform: translateY(-3px);
}

/* Footer Styles */
.main-footer {
    background-color: var(--blue-black);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-section h4 {
    color: var(--intense-red);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    color: var(--white);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-cta {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--intense-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.footer-cta:hover {
    transform: translateY(-2px);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--intense-red);
    transform: translateY(-2px);
}

.footer-subscribe {
    display: flex;
    gap: 1rem;
}

.footer-subscribe input {
    flex: 1;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--white);
}

.footer-subscribe button {
    padding: 0.8rem 1.5rem;
    background-color: var(--intense-red);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.footer-subscribe button:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--intense-red);
}

.copyright {
    color: var(--white);
    opacity: 0.6;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-sections {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-subscribe {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Banner de Cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--blue-black);
    padding: 1rem;
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 0 1rem;
}

.cookie-content p {
    margin: 0;
}

.cookie-content a {
    color: var(--intense-red);
    text-decoration: none;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-button {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.cookie-button.accept {
    background-color: var(--intense-red);
    color: var(--white);
}

.cookie-button.reject {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

.cookie-button:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .games-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-stats {
        grid-template-columns: 1fr;
    }
}

.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 20%, var(--intense-red) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--vibrant-red) 0%, transparent 50%);
    opacity: 0.1;
    transform: translateZ(0);
}

/* Estilos para el modal */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--blue-black);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.game-modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 2rem;
}

.game-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.game-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.game-info-section {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.game-features {
    list-style: none;
    padding: 0;
}

.game-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-features li:last-child {
    border-bottom: none;
}

/* Estilo unificado para todos los botones */
.submit-button,
.game-button,
.cta-button,
.footer-cta {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--intense-red);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.submit-button:hover,
.game-button:hover,
.cta-button:hover,
.footer-cta:hover {
    transform: translateY(-2px);
    background-color: var(--vibrant-red);
}

/* Ajustes específicos para el botón de enviar del formulario */
.contact-form .submit-button {
    width: auto;
    margin-top: 1rem;
    align-self: flex-start;
}

/* Estado de carga y éxito */
.submit-button.loading {
    background-color: var(--dark-blue);
    cursor: wait;
}

.submit-button.success {
    background-color: #28a745;
} 