/* ============================== */
/* 1. Reset básico y estilos globales */
/* ============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: #D9DDDB;
  overflow: hidden; /* oculta scroll global */
}

/* ============================== */
/* 2. Sección Hero */
/* ============================== */
:root {
  --bg-gradient: rgba(217,221,219,0.7);
}

/* ============================== */
/* 2. Sección Hero (con animación horizontal) */
/* ============================== */
.hero {
  position: relative;
  height: 100vh; /* ocupa exactamente el viewport */
  background: linear-gradient(var(--bg-gradient), var(--bg-gradient)),
              url('../img/Regional.png') repeat-x top;
  background-size: cover;
  background-position: top center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  animation: slideBackground 60s linear infinite;
  overflow: hidden; /* evita desbordes */
}



/* Overlay semitransparente */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  pointer-events: none;
}

/* Animación horizontal del fondo */
@keyframes slideBackground {
  0%   { background-position: 0 top; }
  100% { background-position: 100% top; }
}

/* Contenido centrado */
.content {
  position: relative;
  z-index: 1;
  max-width: 450px;
  max-height: 90vh; /* nunca más grande que la pantalla */
  padding: 10px;
  overflow: auto;   /* scroll interno si el texto es demasiado */
}

@media (max-width: 767px) {
  .content {
    margin: -50px auto 0 auto;
  }
}


.info-text {
  font-size: clamp(0.8rem, 1vw, 1rem);
  color: rgb(31, 27, 63);
  margin: 5px auto;
}

/* ============================== */
/* 3. Inputs y botones */
/* ============================== */
.input-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

label {
  font-size: 0.8rem;
  color: rgb(31, 27, 63);
}

.numeric-input {
  width: clamp(200px, 30%, 260px);
  height: 45px;
  font-size: 2rem;
  text-align: center;
  border: 2px solid #3c3c3b;
  border-radius: 5px;
  background: transparent;
  color: #3c3c3b;
  outline: none;
  transition: border-color 0.3s ease;
}

.numeric-input:focus {
  border-color: #3c3c3b;
}

/* Eliminar flechas en todos los navegadores */
.numeric-input::-webkit-inner-spin-button,
.numeric-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.numeric-input {
  -moz-appearance: textfield;
  appearance: textfield;
}

.generate-btn {
  padding: 10px 20px;
  font-size: 1rem;
  color: #fff;
  background: #009640;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.generate-btn:hover {
  background: #3c3c3b;
}



/* ============================== */
/* 5. Firma y certificados */
/* ============================== */

.certificate-container {
  position: relative; /* crea un nuevo contexto */
  z-index: 1;         /* se coloca delante de .developer-role */
}

.developer-role {
  position: fixed;
  bottom: 20px;
  left: 7px;  
  padding: 5px 40px;
  z-index: 0;
}

/* En smartphone: centrado abajo */
@media (max-width: 767px) {
  .developer-role {
    left: 50%;             /* mueve el punto de referencia al centro */
    transform: translateX(-50%); /* corrige el ancho para centrar */
    bottom: 15px;          /* un poco más abajo si quieres */
  }
}


.certificate-container {
  margin: -100px auto 0 auto;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.6);
  color: #3c3c3b;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: justify;
  overflow: auto;
}

/* Para pantallas pequeñas (smartphones) */
@media (max-width: 767px) {
  .certificate-container {
    margin: -50px auto 0 auto;
  }
}

.certificate-title {
  font-size: 1.1rem;
  margin-bottom: 15px;
  text-align: center;
}

.certificate-text {
  margin-bottom: 12px;
  line-height: 1.4;
  font-size: 10px; /* base: móvil */
}

/* Para pantallas grandes (ej. PC) */
@media (min-width: 1024px) {
  .certificate-text {
    font-size: 13px;
  }
}

.table-container {
  max-height: 70vh;
  overflow-y: auto;
  border-radius: 5px;
}


/* para CELULARES */
@media (max-width: 767px) {
.container {
    flex-grow: 1;
    margin: 0 auto;
    position: relative;
    width: 96%;
}

.title.is-3 {
    font-size: 1.5rem;
}

.table thead td, .table thead th {
    border-width: 0 0 2px;
    color: #363636;
    font-size: 12px;
}

.table td, .table th {
    border: 1px solid #dbdbdb;
    border-width: 0 0 1px;
    padding: .5em .75em;
    vertical-align: top;
    font-size: 10px;
}

footer {
    display: block;
    font-size: 10px;
}
}