* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    position: relative;
    background-color: #1a2a2a;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    color: #dddddd;
    line-height: 1.6;
}

header {
    background: url('../img/banner.jpg');
    background-size: cover;
    background-position: center;
}

nav {
    display: inline-block;
    width: 100%;
    height: 40px;
    text-align: right;
    background-color: rgba(0, 0, 0, 0.7);
    padding-right: 10px;
}

nav ul {
    list-style-type: none;
}

nav li {
    display: inline-block;
    margin-right: 15px;
}

nav a {
    font-size: 1.3em;
    color: #ebebeb;
    padding-bottom: 3px;
    text-decoration: none;
}

nav a:hover {
    color: #f78d14;
    border-bottom: 3px solid #2460a7;
}

header h1 {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-size: 2.5em;
    font-weight: normal;
    color: white;
    text-shadow: 3px 3px 5px black;
}

#titulo {
    display: inline-block;
    padding: 10px;
}

#logo, header h1 {
    display: inline-block;
    margin-bottom: 0px;
    height: 140px;
    vertical-align: middle;
}

#logo {
    height: 140px;
    width: auto;
}

.grid-facciones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.faccion-card {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #f78d14;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.faccion-card:hover {
    transform: scale(1.02);
    border-color: #2460a7;
}

.faccion-card h3 {
    color: #f78d14;
    border-bottom: 2px solid #2460a7;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.faccion-card img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 10px;
    background-color: #0a0f0f;
}

.imagen-principal {
    width: 100%;
    height: auto;
    max-width: 1200px;
    max-height: 600px;
    object-fit: contain;
    border-radius: 15px;
    display: block;
    margin: 0 auto;
    background-color: #0a0f0f;
}

.perfil-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #f78d14;
}

.seccion-titulo {
    color: #f78d14;
    font-size: 2em;
    margin: 30px 0 20px 0;
    border-bottom: 3px solid #2460a7;
    padding-bottom: 10px;
    text-shadow: 2px 2px 4px black;
}

.seccion-completa {
    width: 100%;
    float: none;
    margin-right: 0;
    padding: 20px;
}

.titulo-seccion-texto {
    text-align: center;
    margin: 20px 0;
    font-size: 1.5em;
}

.texto-presentacion {
    font-size: 1.1em;
    line-height: 1.6;
}

.stats {
    background: rgba(36, 96, 167, 0.3);
    padding: 5px 10px;
    border-radius: 5px;
    margin: 10px 0;
    font-size: 0.9em;
}

.peligro {
    color: #ff4444;
    font-weight: bold;
}

/* ESTILOS ESPECIALES PARA GRAVEMIND */
.gravemind-audio-container {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(145deg, #0a0f0f, #1a1f1f);
    border-radius: 10px;
    border-left: 4px solid #f78d14;
    border-right: 4px solid #2460a7;
}

.boton-gravemind {
    background: #0a0f0f;
    color: #f78d14;
    border: 2px solid #f78d14;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 10px rgba(247, 141, 20, 0.3);
    transition: all 0.3s;
    width: 100%;
    margin-bottom: 10px;
}

.boton-gravemind:hover {
    background: #f78d14;
    color: #0a0f0f;
    box-shadow: 0 0 20px #f78d14;
}

.texto-odst {
    color: #88ff88;
    font-size: 0.85em;
    margin: 10px 0 5px 0;
    font-style: italic;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px;
    border-radius: 5px;
    border: 1px dashed #2460a7;
    line-height: 1.4;
}

.gravemind-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
}

.texto-corrupto {
    color: #2460a7;
    font-size: 0.7em;
}

.texto-gravemind {
    color: #f78d14;
    font-size: 0.7em;
}

#gravemindAudio {
    width: 100%;
    margin-top: 10px;
}

/* ARMAMENTO */
.armamento-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.armamento-card {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    flex: 1;
    min-width: 250px;
}

.armamento-card.humano h3 {
    color: #2460a7;
}

.armamento-card.covenant h3 {
    color: #f78d14;
}

.armamento-card.forerunner h3 {
    color: #88ff88;
}

.armamento-card ul {
    list-style-type: none;
}

.armamento-card li {
    padding: 3px 0;
}

/* ASIDE */
.aside-perfil {
    width: 100%;
    float: none;
    margin: 20px 0;
    border: 2px solid #f78d14;
    background: #0f1f1f;
    padding: 20px;
    border-radius: 10px;
}

.aside-perfil h1 {
    text-align: center;
    margin-bottom: 20px;
}

.perfil-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.perfil-imagen {
    flex: 0 0 auto;
}

.perfil-datos {
    flex: 1;
    min-width: 250px;
}

.perfil-enlaces a {
    color: #f78d14;
    text-decoration: none;
}

.perfil-enlaces a:hover {
    color: #2460a7;
    text-decoration: underline;
}

/* FOOTER */
footer {
    clear: both;
    background-color: #0a0f0f;
    color: #cccccc;
    text-align: center;
    padding: 20px;
    border-top: 3px solid #f78d14;
    font-size: 0.9em;
    width: 100%;
}

.frase-legendaria {
    color: #f78d14;
    font-style: italic;
    margin: 10px 0;
}

.grito-guerra {
    color: #2460a7;
    font-weight: bold;
    margin-top: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .grid-facciones {
        grid-template-columns: 1fr;
    }
    
    .perfil-img {
        width: 120px;
        height: 120px;
    }
    
    nav {
        height: auto;
        text-align: center;
        padding: 10px;
    }
    
    nav li {
        display: block;
        margin: 5px 0;
    }
    
    header h1 {
        font-size: 1.8em;
    }
}