body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #06030a; /* Negro con matiz violeta profundo */
    color: #e1e1e6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ==========================================================================
   PANTALLA DE CARGA
   ========================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #06030a;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: desvanecerPreloader 0.5s ease 2.5s forwards;
}

.contenedor-corazones {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.corazon-minecraft {
    font-size: 2rem;
    color: #ff0055; 
    text-shadow: 0 0 10px #ff007f;
    opacity: 0;
    transform: translateY(20px);
    animation: subirCorazon 0.4s ease forwards;
}

.corazon-minecraft:nth-child(1) { animation-delay: 0.2s; }
.corazon-minecraft:nth-child(2) { animation-delay: 0.5s; }
.corazon-minecraft:nth-child(3) { animation-delay: 0.8s; }
.corazon-minecraft:nth-child(4) { animation-delay: 1.1s; }
.corazon-minecraft:nth-child(5) { animation-delay: 1.4s; }

.texto-carga {
    font-family: 'Orbitron', sans-serif;
    color: #ff007f;
    letter-spacing: 3px;
    font-size: 1rem;
    text-transform: uppercase;
    animation: parpadeoTexto 1s ease-in-out infinite;
}

@keyframes subirCorazon {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes parpadeoTexto {
    0%, 100% { opacity: 0.4; text-shadow: none; }
    50% { opacity: 1; text-shadow: 0 0 10px #ff007f; }
}
@keyframes desvanecerPreloader {
    to { opacity: 0; visibility: hidden; }
}

/* ==========================================================================
   1. MENÚ DE NAVEGACIÓN FIJO 
   ========================================================================== */
nav {
    background-color: #120a1c; 
    padding: 15px 40px; 
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #ff007f; 
}

.nav-contenedor {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    position: relative; 
}

.nav-logo {
    font-family: 'Orbitron', sans-serif;
    color: #ff007f !important; 
    font-size: 1.8rem;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.6); 
    transition: transform 0.3s ease;
    position: absolute; 
    left: 0;            
}

.nav-logo:hover { transform: scale(1.1); }
.nav-enlaces { width: 100%; text-align: center; }

nav a {
    color: #a2a5b5;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s ease;
}
nav a:hover, nav a.activo { color: #ff007f; }

/* ==========================================================================
  BANNER PRINCIPAL DE PORTADA 
   ========================================================================== */
.hero {
    background-color: #120a1c;
    padding: 90px 20px; 
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
    margin: 0 0 15px 0;
    font-size: 4.8rem;                   
    font-weight: 900;                    
    letter-spacing: 8px;                 
    text-transform: uppercase;           
    text-shadow: 0 0 20px rgba(255, 0, 127, 0.6), 0 0 40px rgba(255, 0, 127, 0.2); 
}

.hero p {
    font-size: 1.2rem;
    color: #cbd0e6;
    letter-spacing: 0.5px;
    line-height: 1.7;           
    max-width: 850px;           
    margin: 0 auto;             
}


table {
    width: 95%;
    max-width: 1100px;
    margin: 30px auto;
    table-layout: fixed; 
}


.tarjeta-dos-columnas {
    background-color: #1c1228; 
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    width: 45%; 
    vertical-align: top;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    box-sizing: border-box;
    height: 490px; 
    position: relative; 
    border: 1px solid rgba(255, 0, 127, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.tarjeta-dos-columnas:hover { transform: translateY(-5px); border-color: rgba(255, 0, 127, 0.5); }
.tarjeta-contenido-dos { height: 370px; }

.tarjeta-dos-columnas h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.7rem; 
    color: #ffffff;
    margin: 20px 0 10px 0;
    letter-spacing: 1px;
}
.tarjeta-dos-columnas p { font-size: 1.05rem; color: #b1b5c4; line-height: 1.5; }


.tarjeta-modulo {
    background-color: #1c1228;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    width: 31%; 
    vertical-align: top;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    box-sizing: border-box;
    height: 640px; 
    position: relative; 
    border: 1px solid rgba(255, 0, 127, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.tarjeta-modulo:hover { transform: translateY(-5px); border-color: rgba(255, 0, 127, 0.4); }
.tarjeta-contenido { height: 540px; overflow: hidden; }

.tarjeta-modulo h2, .tarjeta-modulo h3 {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 1.35rem;
    color: #ffffff;
    margin: 15px 0 10px 0;
}
.tarjeta-modulo p { font-size: 0.95rem; color: #b1b5c4; line-height: 1.45; }


.tarjeta-dos-columnas .img-tarjeta {
    width: 100%;
    max-width: 250px;           
    height: 160px;              
    object-fit: cover;      
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tarjeta-dos-columnas .img-tarjeta:hover { transform: scale(1.05); box-shadow: 0 0 15px #ff007f; }

.tarjeta-modulo .img-tarjeta {
    width: 100%;
    max-width: 240px;           
    height: 340px;              
    object-fit: cover;      
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tarjeta-modulo .img-tarjeta:hover { transform: scale(1.05); box-shadow: 0 0 15px #ff007f; }


.btn-ver {
    display: inline-block;
    background-color: #ff007f; 
    color: #ffffff;
    padding: 10px 28px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    position: absolute;
    bottom: 25px; 
    left: 50%;
    transform: translateX(-50%); 
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 0, 127, 0.3);
}
.btn-ver:hover {
    background-color: #ffffff;
    color: #06030a;
    box-shadow: 0 0 20px #ff007f;
    transform: translateX(-50%) scale(1.05);
}

.btn-regresar {
    position: absolute;
    top: 25px;
    left: 25px;
    background-color: rgba(6, 3, 10, 0.75);
    border: 1px solid #ff007f;
    color: #ff007f;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    border-radius: 4px;
    z-index: 10;
    transition: all 0.3s ease;
}
.btn-regresar:hover {
    background-color: #ff007f;
    color: #ffffff;
    box-shadow: 0 0 12px #ff007f;
}


.contenido-unid {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background-color: #120a1c;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 0, 127, 0.05);
}


footer {
    background-color: #120a1c;
    padding: 30px;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 0, 127, 0.1);
}