/* 🔵 General */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    transition: background 0.3s, color 0.3s;
}

/* 🌟 Navbar */
.navbar {
    background: rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease-in-out;
}
.navbar a {
    color: white !important;
    transition: 0.3s;
}
.navbar a:hover {
    color: #ff9800 !important;
    transform: scale(1.1);
}

/* 📌 Botón de modo oscuro */
#toggleDarkMode {
    transition: 0.3s ease-in-out;
}
#toggleDarkMode:hover {
    background: #ff9800;
    color: white;
}

/* 🌙 Modo Oscuro */
.dark-mode {
    background: #121212;
    color: white;
}
.dark-mode .navbar {
    background: rgba(30, 30, 30, 0.9);
}
.dark-mode .card {
    background: #1e1e1e;
    color: white;
}
.dark-mode a {
    color: #ff9800 !important;
}
.dark-mode footer {
    background: #1e1e1e;
    color: white;
}
.dark-mode form {
    background: #1e1e1e;
    color: white;
}

/* 🟡 Botón "Ir Arriba" */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    font-size: 24px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background: #007bff;
    color: white;
    border: none;
    transition: 0.3s ease-in-out;
}
#backToTop:hover {
    background: #ff9800;
}

/* 📌 Tarjetas de artículos */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
}
.card:hover {
    transform: scale(1.03);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

/* 📚 Lista de artículos */
.list-group-item {
    transition: 0.3s ease-in-out;
}
.list-group-item:hover {
    background: #007bff;
    color: white;
    transform: scale(1.02);
}

/* 🎨 Barra de progreso */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 5px;
    background: linear-gradient(90deg, #ff9800, #007bff);
    z-index: 9999;
    transition: width 0.2s;
}
/* 💬 Formulario de contacto */
form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}
.dark-mode form {
    background: #1e1e1e;
    color: white;
}
form .form-control {
    border-radius: 5px;
    border: 1px solid #ccc;
    transition: all 0.3s ease-in-out;
}
form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0px 0px 8px rgba(0, 123, 255, 0.5);
}


/* 🔵 Estructura principal */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 📌 El contenido ocupa todo el espacio disponible */
main {
    flex: 1;
    margin-top: 80px; /* Espacio debajo del navbar */
}

/* 📌 Footer siempre abajo */
footer {
    background: #000;
    color: white;
    text-align: center;
    padding: 15px;
    width: 100%;
    margin-top: auto; /* Lo empuja hacia abajo */
}

.navbar-brand img {
    height: 40px; /* Ajusta el tamaño del logo */
    width: auto;
}
.navbar-brand span {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

h2 {
    margin-top: 1rem;
}
h1{
    margin-top: 2rem;
}