/* Fuentes oficiales PNP */
@font-face {
  font-family: 'Myriad Pro';
  src: url('fonts/MyriadPro-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Myriad Pro';
  src: url('fonts/MyriadPro-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

/* Variables de color institucional */
:root {
  --pnp-green: #1B3B1A;
  --pnp-gold: #D4AF37;
  --pnp-light: #F3F4F6;
  --pnp-dark: #111827;
}

/* Reset básico y tipografía */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Myriad Pro', sans-serif;
  background: url('bannerpnp.jpg') no-repeat center center fixed;
  background-size: cover;
  color: var(--pnp-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

main {
  flex: 1;
}

/* NAVBAR */
.nav-pnp {
  background-color: rgba(27, 59, 26, 0.95);
  color: var(--pnp-gold);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  padding: 1rem 0;
  text-align: center;
}

.nav-pnp img {
  width: 64px;
  height: auto;
  margin-bottom: 0.5rem;
}

.nav-pnp h1 {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-pnp p {
  font-size: 1rem;
}

/* CONSULTA CARD */
.card-pnp {
  background-color: rgba(83, 140, 79, 0.95);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  margin: auto;
}

.card-pnp h2 {
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--pnp-dark);
  margin-bottom: 0.5rem;
}

.card-pnp p {
  color: #555;
  font-size: 0.95rem;
}

input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  margin-top: 0.25rem;
  transition: border-color 0.3s;
}

input[type="text"]:focus {
  border-color: var(--pnp-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.btn-pnp {
  background-color: var(--pnp-gold);
  color: var(--pnp-dark); /* color oscuro para mejor contraste */
  font-weight: bold;
  border: none;
  padding: 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  width: 100%;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.btn-pnp:hover {
  background-color: #c59c2c; /* un tono más oscuro del dorado */
}


#errorMessage {
  color: #D14343;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

#loadingSpinner {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

/* LOGOS INSTITUCIONALES */
.logos-institucionales {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.logos-institucionales img {
  height: auto;
  max-width: 120px;
}

/* FOOTER */
.footer-pnp {
  background-color: rgba(27, 59, 26, 0.95);
  color: var(--pnp-gold);
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .nav-pnp h1 {
    font-size: 1.25rem;
  }

  .nav-pnp p {
    font-size: 0.875rem;
  }

  .card-pnp {
    padding: 1.5rem;
  }

  .logos-institucionales img {
    max-width: 80px;
  }
}

/* style.css */

body {
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  background-color: #ffffff;
}

.custom-box {
  border: 2px solid #ccc;
  position: relative;
  background-color: white;
}

.custom-box h2 {
  font-size: 1.25rem;
  font-weight: bold;
}

button {
  transition: background 0.3s ease;
}

button:hover {
  filter: brightness(0.95);
}

/* Logo al costado del título */
.custom-box img {
  display: inline-block;
  vertical-align: middle;
}
