@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');
body { font-family: 'Roboto', Arial, sans-serif; }
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<button class="btn"><i class="fa fa-download"></i> Descargar certificado</button>
.perfil-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 32px;
  max-width: 400px;
  margin: 40px auto;
  font-family: 'Roboto', Arial, sans-serif;
}
/* ------------------------------------- */
.perfil-card h2 {
  color: var(--color-primario);
  margin-bottom: 24px;
  font-weight: 700;
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.perfil-info div {
  margin-bottom: 102px;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--color-primario);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--color-secundario);
}
/* ------------------------------------ */

/* Estilos Generales */
:root {
  --color-primario: #2c3e50;
  --color-secundario: #3498db;
  --color-exito: #27ae60;
  --color-peligro: #e74c3c;
  --color-texto: #333;
  --color-fondo: #f9f9f9;
  --sombra: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--color-texto);
  background-color: var(--color-fondo);
}

a {
  text-decoration: none;
  color: var(--color-secundario);
  transition: color 0.3s;
}

a:hover {
  color: var(--color-primario);
}

/* Estructura Principal */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: var(--color-primario);
  color: white;
  padding: 1rem 0;
  box-shadow: var(--sombra);
}

header nav {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

header nav a {
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

header nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Login */
.login-container {
  max-width: 400px;
  margin: 5rem auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: var(--sombra);
  text-align: center;
}

.login-container h1 {
  color: var(--color-primario);
  margin-bottom: 1.5rem;
}

/* Formularios */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-secundario);
}

/* Botones */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary {
  background-color: var(--color-secundario);
  color: white;
  width: 100%;
}

.btn-primary:hover {
  background-color: #2980b9;
}

/* Alertas */
.alert {
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.error {
  background-color: #fdecea;
  color: var(--color-peligro);
  border-left: 4px solid var(--color-peligro);
}

/* Dashboard */
.cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.dashboard-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}
.nav-btn {
    background: var(--color-primary, #2a7cff);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border: none;
    outline: none;
}
.nav-btn:hover, .nav-btn.active {
    background: #fff;
    color: #222;
    border: 2px solid var(--color-primary, #2a7cff);
}

.curso-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--sombra);
}

.curso-card h3 {
  color: var(--color-primario);
  margin-bottom: 0.5rem;
}

.curso-card p {
  margin-bottom: 0.5rem;
  color: #666;
}

.acciones {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.acciones .btn {
  flex: 1;
  text-align: center;
  background-color: var(--color-exito);
  color: white;
}

.acciones .btn:hover {
  background-color: #219653;
}

/* Responsive */
@media (max-width: 768px) {
  .cursos-grid {
    grid-template-columns: 1fr;
  }
  
  header nav {
    flex-direction: column;
    gap: 0.5rem;
  }
/* Agregar botones */
 .dashboard-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}
.nav-btn {
    background: var(--color-primary, #2a7cff);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.nav-btn:hover, .nav-btn.active {
    background: var(--color-secondary, #0056b3);
}
.dashboard-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem 2.5rem; /* Espaciado izquierdo y derecho */
    background: var(--color-light, #fff);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

}