/* --- VARIABLES DE COLOR (Paleta Sugerida) --- */
:root {
    --color-primary: rgb(46, 60, 113); /* Azul Oscuro (Fondo Principal) */
    --color-secondary: #00FFFF; /* Cian Eléctrico (Énfasis/CTA) */
    --color-text: #FFFFFF; /* Texto Claro */
    --color-text-secondary: #CCCCCC; /* Texto Secundario/Párrafos */
    --color-dark-bg: rgba(29, 40, 79, 0.5); /* Fondo de sección alternativa */
}

/* --- ESTILOS BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--color-primary);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--color-secondary);
    line-height: 1.2;
}

/* --- COMPENSACIÓN DE SCROLL --- */
section {
    scroll-margin-top: 80px;
}

/* --- CLASE PARA TEXTO DESTACADO --- */
.text-large {
    font-size: 1.5rem !important;
    font-weight: bold;
    color: var(--color-secondary) !important;

    /* Lógica de ajuste y escalado */
    display: block;        /* Permite que el margen y el centrado funcionen */
    width: 100%;           /* Ocupa todo el ancho del contenedor */
    text-align: center;    /* Centra el texto */
    word-break: break-all; /* ROMPE el email si es más ancho que la pantalla */
    margin-top: 15px;
}

/* --- BOTONES (CTAs) --- */
.btn-cta, .btn-cta-large, .btn-secondary, .btn-contact {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1rem;
}

.btn-cta, .btn-cta-large {
    background-color: #5cc87f;
    color: var(--color-primary);
}

.btn-cta:hover, .btn-cta-large:hover {
    background-color: #FF9833;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    background: transparent;
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.botones-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

/* --- CABECERA --- */
.main-header {
    position: relative;
    width: 100%;
    background-color: var(--color-primary);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-img {
    height: 100%;
    width: auto;
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
    width: 100%;
}

.main-nav a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--color-secondary);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-secondary);
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    width: 100%;
    min-height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 40px 0 !important;
    padding-top: 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/bg_header.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px; /* MISMO ANCHO QUE LOS BANNERS */
    margin: 0 auto;    /* CENTRA EL BLOQUE EN LA PANTALLA */
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-text-content {
    flex: 1;
    max-width: 60%;
    text-align: left;
    padding-right: 30px;
}

.hero-text-content h1 {
    font-size: 2.8rem;
    color: var(--color-text);
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-text-content .subtitle {
    font-size: 1.6rem;
    color: var(--color-secondary);
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-text-content .description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-image-absolute-container {
    position: absolute;
    bottom: -50px;
    right: 5%;
    z-index: 1;
    width: 40%;
    max-width: 500px;
    pointer-events: none;
}

.hero-image-absolute-container img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

/* --- SECCIÓN DE MÓDULOS DE CONTENIDO --- */
.content-modules {
    padding: 60px 0;
    background-color: var(--color-primary);
}

.module-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    padding: 30px;
    background-color: var(--color-dark-bg);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.module-block:last-child {
    margin-bottom: 0;
}

.module-text-content {
    flex: 1;
    min-width: 300px;
}

.module-text-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--color-secondary);
}

.module-text-content p {
    color: var(--color-text-secondary);
    margin-bottom: 25px;
    line-height: 1.7;
}

.title-group {
    display: flex;
    align-items: baseline;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.steam-status {
    font-size: 1.3rem;
    color: var(--color-secondary);
    font-weight: bold;
    margin: 0;
}

.module-image-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.module-image-container img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.reverse-layout {
    flex-direction: row-reverse;
}

/* --- SECCIÓN DE CONTACTO --- */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #162f50, #0f2542);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.contact-grid {
    display: flex;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.contact-image-col {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 300px;
}

/* --- CONTROL DE TAMAÑO DE LA IMAGEN DEL PERSONAJE --- */
.module-character-img img {
    width: 580px; /* Prueba con este valor y ajústalo según necesites */
    height: auto; /* Mantiene la proporción para que no se deforme */
    display: block;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6));
}



.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    color: var(--color-text) !important;
    font-size: 2.8rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background: linear-gradient(to right, var(--color-secondary), transparent);
}

.contact-details {
    margin-top: 30px;
}

.contact-details p {
    font-size: 1.2rem;
    color: var(--color-text);
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-details a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.contact-details a:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- FOOTER --- */
footer {
    padding: 30px 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

footer p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 1rem;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .hero-text-content h1 {
        font-size: 2.3rem;
    }

    .hero-text-content .subtitle {
        font-size: 1.4rem;
    }

    .module-block {
        padding: 25px;
    }

    .module-text-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 850px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }

    .hero-text-content {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 40px;
        order: 1;
    }

    .hero-image-absolute-container {
        position: relative;
        bottom: auto;
        right: auto;
        width: 80%;
        max-width: 400px;
        margin-top: 20px;
        order: 2;
    }

    .module-block {
        flex-direction: column-reverse !important; /* Invierte el orden: Imagen arriba, Texto/Botones abajo */
        text-align: center;
        gap: 20px; /* Espacio entre la imagen y el texto para que no se peguen */
        padding: 20px;
    }

    .module-block.reverse-layout {
        flex-direction: column;
    }

    .module-text-content,
    .module-image-container {
        max-width: 100%;
        min-width: auto;
    }

    .module-image-container {
        width: 100%;
        margin-bottom: 10px; /* Separación extra bajo la imagen */
    }

    .botones-container {
        justify-content: center;
    }

    .contact-grid {
        flex-direction: column-reverse;
        text-align: center;
    }

    .contact-image-col,
    .contact-info {
        min-width: auto;
        width: 100%;
    }

    .contact-info h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 600px) {
    /* --- 1. CABECERA (Logo y Menú en la misma línea) --- */
    .nav-content {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        padding: 0 15px !important;
    }

    .logo-img {
        height: 50px !important;
        width: auto !important;
    }

    .main-nav ul {
        flex-direction: row !important;
        gap: 10px !important;
        margin-top: 0 !important;
    }

    .main-nav a {
        font-size: 0.75rem !important;
    }

    /* --- 2. AJUSTE GLOBAL PARA EL EMAIL (Escalado y Centrado) --- */
    /* Esta regla ahora aplica a TODOS los emails de la web */
    .text-large {
        font-size: 1.1rem !important; /* Escala hacia abajo en móvil */
        word-break: break-all !important; /* Evita que el email empuje el borde de la pantalla */
        display: block !important; /* Permite que el centrado funcione correctamente */
        text-align: center !important;
        width: 100% !important;
        margin: 10px auto !important;
    }

    /* --- 3. MÓDULOS DE JUEGO (Imagen arriba, botones abajo) --- */
    .module-block {
        flex-direction: column-reverse !important; /* Imagen arriba, texto y botones abajo */
        text-align: center !important;
        padding: 20px !important;
        gap: 20px !important;
    }

    .module-text-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Centra títulos y párrafos */
        width: 100% !important;
    }

    .module-text-content p {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important; /* Centra el contenido de los párrafos */
    }

    .module-image-container, .module-character-img {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .module-image-container img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* --- 4. BOTONES: UNO ENCIMA DE OTRO --- */
    .botones-container {
        flex-direction: column !important; /* Apila botones verticalmente */
        gap: 12px !important;
        width: 100% !important;
        margin-top: 20px !important;
    }

    .btn-cta, .btn-cta-large, .btn-secondary {
        width: 100% !important; /* Botones a todo lo ancho para fácil pulsación */
        padding: 12px !important;
    }

    /* --- 5. SECCIÓN DE CONTACTO --- */
    .contact-grid {
        flex-direction: column !important;
        text-align: center !important;
    }

    .contact-info h2 {
        font-size: 2rem !important;
    }

    .contact-details p {
        justify-content: center !important; /* Centra el icono y el texto de contacto */
    }

    section {
        scroll-margin-top: 60px !important;
    }

    .content-modules {
        padding: 30px 0 !important;
    }
}

