/* Instituto Petrolero — Plataforma propia — ETAPA 1
   Colores del Instituto: azul petróleo #0E4553 y naranja/dorado #E79A28,
   con mucho blanco. Letra grande, botones grandes, diseño simple y claro.
   Sin imágenes externas: solo CSS y colores. */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #222;
  background: #f4f8f9;
}

body.tam-grande { font-size: 21px; }
body.tam-muy-grande { font-size: 24px; }

.encabezado {
  background: #0E4553;
  color: #fff;
  padding: 14px 20px;
}

.encabezado-interior {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.marca { font-size: 1.3em; font-weight: bold; }

.marca-ip {
  display: inline-block;
  background: #E79A28;
  color: #0E4553;
  border-radius: 8px;
  padding: 2px 10px;
  margin-right: 8px;
}

.navegacion { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.contenido {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

h1 { color: #0E4553; font-size: 1.7em; }
h2 { color: #0E4553; font-size: 1.3em; margin-top: 34px; }

/* Botones grandes: mínimo 56 px de alto, fáciles de tocar. */
.boton {
  display: inline-block;
  min-height: 56px;
  line-height: 56px;
  padding: 0 26px;
  border: none;
  border-radius: 10px;
  background: #E79A28;
  color: #0E4553;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.boton:hover { filter: brightness(1.07); }

.boton-azul { background: #0E4553; color: #fff; }
.boton-claro { background: #fff; color: #0E4553; min-height: 44px; line-height: 44px; padding: 0 16px; }
.boton-chico { min-height: 44px; line-height: 44px; padding: 0 16px; font-size: 0.9em; }

.tamano-letra { display: inline-flex; gap: 4px; }
.tamano-letra button {
  min-width: 48px;
  min-height: 44px;
  border: 2px solid #fff;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

/* Tarjetas blancas para cursos, datos y avisos. */
.tarjeta {
  background: #fff;
  border: 1px solid #d5e2e6;
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
}

.tarjeta h2, .tarjeta h3 { margin-top: 0; }

.etiqueta {
  display: inline-block;
  background: #E79A28;
  color: #0E4553;
  font-weight: bold;
  border-radius: 20px;
  padding: 2px 14px;
  font-size: 0.85em;
}

.etiqueta-gris { background: #d5e2e6; color: #0E4553; }

.cuadricula { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) {
  .cuadricula { grid-template-columns: 1fr; }
}

/* Formularios simples, un campo por renglón. */
.campo { margin: 16px 0; }
.campo label { display: block; font-weight: bold; margin-bottom: 6px; color: #0E4553; }
.campo input[type="text"],
.campo input[type="email"],
.campo input[type="password"],
.campo input[type="number"],
.campo select,
.campo textarea {
  width: 100%;
  padding: 14px;
  font-size: 1em;
  border: 2px solid #b9cdd3;
  border-radius: 10px;
}
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none;
  border-color: #E79A28;
}

.aviso-error {
  background: #fdecea;
  border: 1px solid #e57373;
  color: #8d1a1a;
  border-radius: 10px;
  padding: 14px 18px;
}

.aviso-exito {
  background: #e6f4ea;
  border: 1px solid #66bb6a;
  color: #1b5e20;
  border-radius: 10px;
  padding: 14px 18px;
}

.aviso-info {
  background: #fff8e1;
  border: 1px solid #E79A28;
  color: #5d4037;
  border-radius: 10px;
  padding: 14px 18px;
}

.clave-provisoria {
  font-size: 1.8em;
  font-weight: bold;
  letter-spacing: 2px;
  background: #0E4553;
  color: #fff;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  word-break: break-all;
}

.tabla { width: 100%; border-collapse: collapse; }
.tabla th, .tabla td { border-bottom: 1px solid #d5e2e6; padding: 10px 8px; text-align: left; }
.tabla th { color: #0E4553; }

.pie {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px 30px;
  color: #5a6d73;
  font-size: 0.9em;
  text-align: center;
}
