/* Tipografía y colores modernos */
body {
    font-family: 'Inter', Arial, sans-serif;
    background: #f4f5f7;
    margin: 0;
    color: #333;
}

header {
    background: linear-gradient(90deg, #0b63d6, #3a9ff1);
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}
header h1 {
    font-weight: 700;
}
header p {
    font-size: 1.2rem;
    margin-top: 10px;
}

.navbar {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

main.container {
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    padding: 35px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

h2 {
    margin-top: 40px;
    color: #0b63d6;
    border-bottom: 2px solid #0b63d6;
    padding-bottom: 5px;
}

h3 {
    margin-top: 25px;
    color: #1a1a1a;
}

p, ul {
    line-height: 1.7;
    font-size: 1.05rem;
    color: #555;
}

ul {
    margin-left: 25px;
}

.highlight {
    background: #e8f0fe;
    border-left: 5px solid #0b63d6;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    color: #0b3c91;
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
}
th, td {
    padding: 12px;
    text-align: center;
}
th {
    background: #0b63d6;
    color: #fff;
}
tr:nth-child(even) {
    background: #f2f4f7;
}
tr:hover {
    background: #dbe9ff;
    transition: 0.3s;
}

.btn-primary {
    background: #0b63d6;
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.3s;
}
.btn-primary:hover {
    background: #0954a0;
}

#articulos-aleatorios {
    background: #f1f3f6;
    padding: 20px;
    border-radius: 10px;
}
#articulos-aleatorios h5 {
    color: #0b63d6;
    margin-bottom: 15px;
}
#articulos-aleatorios ul li {
    margin-bottom: 10px;
}
  .optimizador-container {
            background: white;
            padding: 20px;
            margin-top: 20px;
            border-radius: 8px;
            margin: 50px ;
        }
     
        pre {
            background: #f8f8fe;
            padding: 10px;
            border-radius: 5px;
        }
        canvas {
            border: 1px solid #000;
            margin-top: 10px;
            width: 100% !important;
            height: auto !important;
             max-width: 100%;
            display: block;

            

        }
        button, .btn {
            min-width: 44px;
            min-height: 44px;
            padding: 10px 15px;
            margin: 5px 0;
        }

/* nuevo */


.card {
  border: none;
  border-radius: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.btn-warning {
  border-radius: 30px;
  font-weight: 600;
}

/* Navbar transparente al inicio */
#mainNav {
  transition: all 0.3s ease-in-out;
  background: transparent;
}

/* Cuando haces scroll cambia */
#mainNav.navbar-scrolled {
  background: #212529 !important; /* fondo oscuro */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}


/* Contenedor de artículos aleatorios */
#articulos-aleatorios h5 {
    color: #0b63d6;
    font-size: 1.5rem;
}

#articulos-aleatorios .card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

#articulos-aleatorios .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

#articulos-aleatorios .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

#articulos-aleatorios .btn {
    border-radius: 30px;
    font-weight: 600;
}
