/* --- CONFIGURACIÓN BASE SCI-FI --- */
body {
    background-color: #0b0f19 !important;
    color: #cbd5e1 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    box-sizing: border-box;
}

/* --- ENVOLTURA UNIVERSAL: CENTRA TODO EL CONTENIDO --- */
.page-wrapper {
    padding: 20px !important;         /* Espaciado interno en los lados */
    margin-top: 30px !important;      /* ¡NUEVO! Genera el espacio perfecto abajo de la Navbar */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: start !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* Tarjeta contenedora modular (Aplica a Index, Privacy y Delete) */
.container-custom {
    width: 100% !important;
    background-color: #111827 !important;
    padding: 40px !important;
    border-radius: 8px !important;
    border: 1px solid #1f2937 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
    box-sizing: border-box;
    margin-left: auto !important;  /* Refuerzo de centrado nativo */
    margin-right: auto !important; /* Refuerzo de centrado nativo */
}

/* --- BARRA DE NAVEGACIÓN HORIZONTAL SUPERIOR --- */
.core-navbar {
    background-color: #111827 !important;
    border-bottom: 1px solid #1f2937 !important;
    padding: 15px 30px !important;
}

.core-navbar .nav-link {
    color: #94a3b8 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    transition: color 0.2s ease-in-out !important;
}

.core-navbar .nav-link:hover {
    color: #38bdf8 !important;
}

.core-navbar .navbar-brand {
    font-size: 1.1rem !important;
    letter-spacing: 1px !important;
}

/* --- REJILLA Y TARJETAS DEL HUB (INDEX) --- */
.project-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2) !important;
    transform: translateY(-4px);
}

.project-img-wrapper {
    position: relative;
    height: 180px;
    background: #0f172a;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.project-card:hover .project-img {
    opacity: 0.9;
}

.project-logo {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: #1f2937;
    border: 2px solid #38bdf8;
    border-radius: 4px;
    padding: 4px;
}

.project-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    color: #38bdf8 !important;
    font-size: 1.25rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

.project-desc {
    color: #94a3b8 !important;
    font-size: 0.9rem !important;
    margin-bottom: 20px !important;
    flex-grow: 1;
}

/* --- ELEMENTOS HTML --- */
h1 { color: #38bdf8 !important; font-size: 2rem !important; }
h4 { color: #38bdf8 !important; margin-top: 25px !important; margin-bottom: 10px !important; }
section { margin-bottom: 35px !important; }
ul.list-group { padding-left: 15px !important; list-style: none !important; }
.list-group-item { background: transparent !important; color: #cbd5e1 !important; border: none !important; padding: 8px 0 !important; }
.card.bg-dark { background-color: #1a2235 !important; border: 1px solid #2e3b56 !important; padding: 20px !important; border-radius: 6px !important; }
a { color: #38bdf8 !important; text-decoration: none !important; }
a:hover { text-decoration: underline !important; }

/* --- COMPONENTES DE FORMULARIO --- */
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; color: #38bdf8; font-size: 0.85rem; text-transform: uppercase; }
input[type="email"], input[type="text"] {
    width: 100% !important;
    padding: 12px 16px !important;
    background-color: #1f2937 !important;
    border: 1px solid #374151 !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    box-sizing: border-box !important;
}
input[type="email"]:focus, input[type="text"]:focus {
    outline: none !important;
    border-color: #ef4444 !important;
    background-color: #111827 !important;
}
.btn-outline-danger {
    display: inline-block !important;
    padding: 10px 20px !important;
    color: #ef4444 !important;
    border: 1px solid #ef4444 !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    width: 100%;
    cursor: pointer;
}
/* --- FORZAR NAVBAR ULTRA-HORIZONTAL (ESTILO COMANDO) --- */
.core-navbar .navbar-nav {
    display: flex !important;
    flex-direction: row !important; /* Fuerza a que se alineen en fila, NO en lista */
    flex-wrap: wrap !important;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
    list-style: none !important;
}

.core-navbar .nav-item {
    display: flex !important;
    align-items: center !important;
}

/* --- FORZAR NAVBAR ULTRA-HORIZONTAL Y CENTRADA --- */
.core-navbar .navbar-nav {
    display: flex !important;
    flex-direction: row !important; /* Mantiene la alineación en fila */
    justify-content: center !important; /* ¡NUEVO! Centra los enlaces horizontalmente */
    align-items: center !important;
    flex-wrap: wrap !important;
    width: 100% !important; /* Obliga al contenedor a usar todo el ancho para poder centrar */
    padding-left: 0 !important;
    margin-bottom: 0 !important;
    list-style: none !important;
}

.core-navbar .nav-item {
    display: flex !important;
    align-items: center !important;
}

/* Separador "|" automático entre cada enlace */
.core-navbar .nav-item:not(:last-child)::after {
    content: "|" !important;
    color: #1f2937 !important; /* Gris oscuro tecnológico */
    margin: 0 20px !important; /* Un poco más de espacio a los lados para que respire */
    font-size: 0.9rem !important;
    pointer-events: none !important;
}

/* Evitar que Bootstrap colapse el menú en móviles */
.core-navbar .collapse:not(.show) {
    display: flex !important;
    width: 100% !important;
}

.core-navbar .navbar-toggler {
    display: none !important;
}