:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-auto {
    position: relative;
    width: 100%;
    margin-bottom: 1em;
}

.banner-auto img {
    width: 100%;
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: bottom left;
}

.banner-auto .div-consulta {
    position: absolute;
    top: 5%;
    right: 10%;
    width: 45%;
    height: 90%;
    min-width: 280px;

    background-color: transparent;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);

    font-weight: bold;
    text-align: center;
    padding: 5px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.banner-auto span {
    display: block;
    color: #8B1E2D;
    margin-bottom: 7px;
    font-size: 20px;
}

.banner-auto a {
    background-color: #8B1E2D;
    color: white;
    padding: 8px;
    border: 3px solid #7A1A27;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.banner-auto a:hover {
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 6px rgba(139, 30, 45, 0.5),
    0 0 12px rgba(139, 30, 45, 0.2);
}

.banner-form-group {
    margin-bottom: 0.2rem;
}

.banner-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 1.5rem;
}

.banner-form-input,
.banner-form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 1.2rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: white;
}

.banner-form-input:focus,
.banner-form-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.banner-div-captcha {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.banner-captcha-input {
    width: 85%;
}

.banner-error-message {
    display: block;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}

/* ============================================
   LEYENDA INFORMATIVA
   ============================================ */
.banner-leyenda-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #fef3c7;
    border-left: 4px solid var(--warning-color);
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.banner-icon-info {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--warning-color);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.banner-leyenda-text {
    font-size: 1.2rem;
    color: #92400e;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   BOTÓN CONSULTAR
   ============================================ */
.banner-btn-consultar {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.banner-btn-consultar:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1541b8 100%);
}

.banner-btn-consultar:active {
    transform: translateY(0);
}

.banner-btn-consultar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   CONTENEDOR DE RESULTADOS
   ============================================ */
.banner-resultados-container {
    padding: 1rem;
    background-color: var(--gray-100);
    border-left: 4px solid var(--success-color);
}

#banner-resultadosContent {
    color: var(--gray-700);
    line-height: 1.6;
}

.contenedor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 0 auto;
    padding: 5px;
}

.columna {
    padding: 10px;
    border-radius: 1rem;
}

#popupCertificado {
    width: 80%;
    height: 70vh;
    max-height: 500px;
    overflow-y: auto;
}

@media (max-height: 400px) {
    #popupCertificado {
        height: 90vh;
    }
}