/* =========================================================
   OBSERVATORIO PENAL MX - PORTILLA CONSULTORES
   Estilo visual institucional (Versión Portilla 2025)
   ========================================================= */

/* Paleta de colores Portilla */
:root {
  --azul-portilla: #1A2A40;        /* azul petróleo principal */
  --gris-fondo: #f4f5f7;           /* fondo neutro */
  --gris-texto: #2c2c2c;           /* texto general */
  --dorado-acento: #CDA434;        /* detalles dorados */
  --azul-claro: #2E4668;
  --blanco: #ffffff;
  --sombra: rgba(0,0,0,0.1);
  --fuente: "Montserrat", Arial, sans-serif;
}

/* Reset general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--gris-fondo);
  font-family: var(--fuente);
  color: var(--gris-texto);
  line-height: 1.6;
  padding: 40px;
}

/* ------------------- ENCABEZADOS ------------------- */
h1 {
  color: var(--azul-portilla);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  border-left: 5px solid var(--dorado-acento);
  padding-left: 10px;
}

h2 {
  color: var(--dorado-acento);
  font-size: 22px;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 10px;
}

h3 {
  color: var(--azul-claro);
  font-size: 18px;
  margin-top: 15px;
  font-weight: 500;
}

/* ------------------- NAVBAR ------------------- */
nav {
  background: var(--azul-portilla);
  color: var(--blanco);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 12px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--sombra);
  margin-bottom: 35px;
}

nav a {
  color: var(--blanco);
  text-decoration: none;
  margin-right: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

nav a:hover {
  color: var(--dorado-acento);
  transform: translateY(-1px);
}

/* ------------------- CONTENEDORES ------------------- */
.box, section, .card {
  background: var(--blanco);
  border-radius: 12px;
  box-shadow: 0 5px 15px var(--sombra);
  padding: 25px;
  margin-bottom: 25px;
  border-top: 3px solid var(--dorado-acento);
}

.card h2 {
  margin-top: 0;
}

/* ------------------- FORMULARIOS ------------------- */
form {
  margin-top: 20px;
}

input[type="text"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
  font-family: var(--fuente);
  margin-top: 8px;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

/* ------------------- BOTONES ------------------- */
button,
input[type="submit"],
a.boton {
  background: var(--azul-portilla);
  color: var(--blanco);
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover,
a.boton:hover,
input[type="submit"]:hover {
  background: var(--azul-claro);
  transform: translateY(-2px);
}

/* ------------------- TABLAS ------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  box-shadow: 0 3px 10px var(--sombra);
  border-radius: 8px;
  overflow: hidden;
}

th {
  background: var(--azul-portilla);
  color: var(--blanco);
  text-align: left;
  padding: 10px;
  font-weight: 600;
}

td {
  background: var(--blanco);
  padding: 10px;
  border-bottom: 1px solid #eee;
}

tr:hover td {
  background: #f2f5f8;
}

/* ------------------- LINKS ------------------- */
a {
  color: var(--azul-portilla);
  text-decoration: none;
}

a:hover {
  color: var(--dorado-acento);
  text-decoration: underline;
}

p {
  margin-bottom: 10px;
}

/* ------------------- FOOTER ------------------- */
footer {
  text-align: center;
  margin-top: 40px;
  color: #666;
  font-size: 14px;
  border-top: 2px solid var(--dorado-acento);
  padding-top: 15px;
}

/* ------------------- CERTIFICADO ------------------- */
.certificado-container {
  text-align: center;
  padding: 40px;
  border-radius: 10px;
  background: var(--blanco);
  box-shadow: 0 6px 20px var(--sombra);
}

.certificado-logo {
  width: 120px;
  margin-bottom: 20px;
}

.certificado-titulo {
  font-size: 24px;
  color: var(--azul-portilla);
  margin-bottom: 10px;
  font-weight: 700;
}

.certificado-nombre {
  font-size: 22px;
  color: #000;
  font-weight: bold;
  margin-bottom: 5px;
}

.certificado-firma {
  width: 160px;
  margin-top: 40px;
}

/* ------------------- RESPONSIVO ------------------- */
@media (max-width: 768px) {
  body {
    padding: 20px;
  }
  nav {
    flex-direction: column;
    align-items: flex-start;
  }
  nav a {
    margin-bottom: 8px;
  }
  .certificado-container {
    padding: 20px;
  }
}
