/* general.css - Estilos globales para todas las páginas */

/* ==========================
   RESET Y NORMALIZACIÓN
   ========================== */
/* Elimina márgenes y paddings predeterminados */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Configuración base para html y body */
html, body {
    height: 100%;
    scroll-behavior: smooth;
}

/* ==========================
   ESTRUCTURA PRINCIPAL
   ========================== */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Montserrat", system-ui, sans-serif;
    background: #000;
    color: #e6f7ff;
}

/* ==========================
   CONTENEDORES GENERALES
   ========================== */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

main {
    flex: 1; /* Ocupa todo el espacio disponible */
    padding: 20px;
}

/* ==========================
   COMPONENTE HEADER/NAVEGACIÓN
   ========================== */
header {
    background-color: #000;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: auto;
}

.logo-text {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #1e90ff;
}

/* Icono hamburguesa para móviles */
.menu-icon {
    display: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

/* ==========================
   COMPONENTE FOOTER
   ========================== */
footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
}

.footer-content p {
    margin-bottom: 10px;
}

.social a {
    margin: 0 10px;
    color: #1e90ff;
    text-decoration: none;
}

.social a:hover {
    text-decoration: underline;
}

/* ==========================
   UTILIDADES
   ========================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }
.visible { display: block; }

.flex { display: flex; }
.grid { display: grid; }

/* ==========================
   ANIMACIONES GLOBALES
   ========================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.slide-up {
    animation: slideUp 0.5s ease forwards;
}

/* ==========================
   DISEÑO RESPONSIVE
   ========================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #000;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .menu-icon {
        display: block;
    }
}