/* styles.css */
/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    padding: 20px;
    background: #f9f9f9;
    color: #333;
}

.header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.header img {
    width: 160px;
    height: 103px;
    margin-right: 15px;
}
.header .title {
    font-size: 1.5rem;
    font-weight: bold;
}

h1 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}


/* Centrar todo el contenido y limitar anchura */
.container {
  max-width: 800px;
  margin: 0 auto;
}



/* FORMULARIO MÁS COMPACTO */
.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;            /* menos espacio entre elementos */
    margin-bottom: 20px;
    align-items: center;
}

.search-form label {
    font-weight: bold;
    white-space: nowrap;
    margin-right: 4px;
}

.search-form input[type="text"] {
    flex: 0 0 auto;
    width: 150px;        /* ancho fijo más pequeño */
    padding: 8px;        
    font-size: 1rem;   
    border: 1px solid #ccc;
    border-radius: 4px;
}



.search-form button {
    padding: 8px 16px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    background: #007BFF;
    color: #fff;
    cursor: pointer;
}
.search-form button:hover {
    background: #0056b3;
}





.error {
    display: flex;
    align-items: center;
    background: #fee;
    color: #a00;
    border: 1px solid #f99;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.error .icon {
    font-size: 1.2rem;
    margin-right: 8px;
}



/* Card de resultado */
/* TARJETAS MÁS COMPACTAS */
.result-card {
    display: flex;
    align-items: center;
    max-width: 700px;    /* restringe el ancho */
    padding: 8px;        /* menos acolchado */
    margin-bottom: 10px; /* menos separación */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.result-card img {
    width: 100px;
    height: 100px;
    margin-right: 10px;  /* menos margen */
}

.result-card img.minimg {
    width: 100px;
    height: 50px;
    margin-right: 10px; 
}

/* responsivo para móvil */
/* En móvil, forzar que la etiqueta y campo NIE y el botón ocupen línea completa */

@media (max-width: 600px) {


    .result-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .result-card img {
        margin-bottom: 8px;
    }
}


