/* --- ESTILOS GENERALES Y FONDO --- */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* --- FONDO CON TU IMAGEN --- */
    /* El navegador buscará 'lienzo.png' dentro de la misma carpeta 'static' donde está este CSS */
    background-image: url('lienzo.png');
    background-size: cover;             /* Asegura que la imagen cubra toda la pantalla */
    background-position: center center; /* Centra la imagen */
    background-attachment: fixed;       /* La imagen no se mueve al hacer scroll */

    /* Se mantienen los estilos para centrar la tarjeta flotante */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1em;
    box-sizing: border-box;
}

/* El contenedor .background-container ya no es necesario, se ha eliminado */

/* --- TARJETA CENTRAL FLOTANTE --- */
.search-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2.5em;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    width: 100%;
    max-width: 550px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.logo img {
    max-width: 180px;
    margin-bottom: 1.5em;
}

h1 {
    color: #333;
    margin-bottom: 1.5em;
    font-weight: 600;
}

/* --- FORMULARIO Y ENTRADAS DE TEXTO --- */
form {
    width: 100%;
}

label {
    display: block;
    text-align: left;
    margin-bottom: 0.5em;
    color: #555;
    font-weight: 500;
}

input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 1.5em;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
}

input[type="text"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* --- LAYOUT GENERAL PARA PUBLIC PAGE --- */
.page-container {
  padding: 3em 2em;
  max-width: 900px;
  margin: auto;
  background-color: rgba(255,255,255,0.95);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: fadeIn 0.6s ease-out;
}

.main-header {
  text-align: center;
  margin-bottom: 2em;
}

.main-header img {
  max-width: 140px;
  margin-bottom: 1em;
  transition: opacity 0.3s ease;
}

.logo-hover:hover {
  cursor: pointer;
  opacity: 0.9;
}

.main-header h1 {
  color: #333;
  margin: 0.2em 0;
  font-size: 1.8em;
}

.subtitle {
  color: #6c757d;
  font-size: 1em;
  margin-top: 0.5em;
}

/* --- SECCIONES --- */
.info-section {
  margin-bottom: 2em;
  padding: 1.2em 1.5em;
  background-color: #f9f9f9;
  border-left: 5px solid #007bff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.info-section h2 {
  margin-top: 0;
  color: #007bff;
}

.info-section p {
  color: #444;
  font-size: 0.98em;
}

/* --- FOOTER --- */
footer {
  text-align: center;
  margin-top: 3em;
}

.footer-note {
  font-size: 0.85em;
  color: #aaa;
  margin-top: 1em;
}

/* --- ANIMACIÓN DE ENTRADA --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
  .page-container {
    padding: 2em 1em;
  }

  .info-section {
    padding: 1em;
  }

  .main-header h1 {
    font-size: 1.5em;
  }
}


/* --- GRUPO DE BOTONES (UNO AL LADO DEL OTRO) --- */
.button-group {
    display: flex;
    gap: 1em;
    justify-content: center;
}

.button {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.button:active {
    transform: scale(0.98);
}

/* Estilos específicos para cada botón */
.primary-button {
    background-color: #007bff;
    color: white;
}

.primary-button:hover {
    background-color: #0056b3;
}

.secondary-button {
  background-color: #e2e6ea;
  color: #343a40;
}


.secondary-button:hover {
    background-color: #5a6268;
}

/* --- MENSAJE DE ERROR --- */
.error {
    color: #D8000C;
    background-color: #FFD2D2;
    border: 1px solid #D8000C;
    border-radius: 8px;
    padding: 10px;
    margin-top: 1.5em;
    text-align: center;
}